Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
7438af96
Commit
7438af96
authored
Sep 29, 2003
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More message editing, some suggested by Alvaro Herrera
parent
8b510838
Changes
26
Hide whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
109 additions
and
114 deletions
+109
-114
src/backend/catalog/index.c
src/backend/catalog/index.c
+2
-2
src/backend/catalog/pg_proc.c
src/backend/catalog/pg_proc.c
+2
-2
src/backend/commands/dbcommands.c
src/backend/commands/dbcommands.c
+2
-2
src/backend/commands/functioncmds.c
src/backend/commands/functioncmds.c
+2
-7
src/backend/commands/indexcmds.c
src/backend/commands/indexcmds.c
+2
-2
src/backend/commands/tablecmds.c
src/backend/commands/tablecmds.c
+4
-4
src/backend/commands/typecmds.c
src/backend/commands/typecmds.c
+4
-4
src/backend/commands/user.c
src/backend/commands/user.c
+2
-2
src/backend/commands/vacuum.c
src/backend/commands/vacuum.c
+2
-2
src/backend/parser/parse_coerce.c
src/backend/parser/parse_coerce.c
+2
-2
src/backend/parser/parse_func.c
src/backend/parser/parse_func.c
+2
-2
src/backend/port/sysv_shmem.c
src/backend/port/sysv_shmem.c
+4
-4
src/backend/rewrite/rewriteDefine.c
src/backend/rewrite/rewriteDefine.c
+2
-2
src/backend/storage/freespace/freespace.c
src/backend/storage/freespace/freespace.c
+2
-2
src/backend/storage/page/bufpage.c
src/backend/storage/page/bufpage.c
+2
-2
src/backend/tcop/postgres.c
src/backend/tcop/postgres.c
+33
-33
src/backend/utils/adt/formatting.c
src/backend/utils/adt/formatting.c
+2
-2
src/backend/utils/adt/geo_ops.c
src/backend/utils/adt/geo_ops.c
+8
-8
src/backend/utils/adt/mac.c
src/backend/utils/adt/mac.c
+2
-2
src/backend/utils/adt/nabstime.c
src/backend/utils/adt/nabstime.c
+2
-2
src/backend/utils/adt/network.c
src/backend/utils/adt/network.c
+6
-6
src/backend/utils/adt/numeric.c
src/backend/utils/adt/numeric.c
+4
-4
src/backend/utils/adt/ri_triggers.c
src/backend/utils/adt/ri_triggers.c
+2
-2
src/backend/utils/adt/timestamp.c
src/backend/utils/adt/timestamp.c
+2
-2
src/backend/utils/misc/guc.c
src/backend/utils/misc/guc.c
+11
-11
src/test/regress/expected/domain.out
src/test/regress/expected/domain.out
+1
-1
No files found.
src/backend/catalog/index.c
View file @
7438af96
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.21
8 2003/09/25 06:57:57
petere Exp $
* $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.21
9 2003/09/29 00:05:24
petere Exp $
*
*
*
*
* INTERFACE ROUTINES
* INTERFACE ROUTINES
...
@@ -1656,7 +1656,7 @@ reindex_index(Oid indexId)
...
@@ -1656,7 +1656,7 @@ reindex_index(Oid indexId)
if
(
inplace
&&
IsUnderPostmaster
)
if
(
inplace
&&
IsUnderPostmaster
)
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INSUFFICIENT_PRIVILEGE
),
(
errcode
(
ERRCODE_INSUFFICIENT_PRIVILEGE
),
errmsg
(
"shared index
\"
%s
\"
can only be reindexed in standalone mode"
,
errmsg
(
"shared index
\"
%s
\"
can only be reindexed in stand
-
alone mode"
,
RelationGetRelationName
(
iRel
))));
RelationGetRelationName
(
iRel
))));
/* Fetch info needed for index_build */
/* Fetch info needed for index_build */
...
...
src/backend/catalog/pg_proc.c
View file @
7438af96
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_proc.c,v 1.10
7 2003/09/26 15:27:26
petere Exp $
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_proc.c,v 1.10
8 2003/09/29 00:05:24
petere Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -533,7 +533,7 @@ check_sql_fn_retval(Oid rettype, char fn_typtype, List *queryTreeList)
...
@@ -533,7 +533,7 @@ check_sql_fn_retval(Oid rettype, char fn_typtype, List *queryTreeList)
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_FUNCTION_DEFINITION
),
(
errcode
(
ERRCODE_INVALID_FUNCTION_DEFINITION
),
errmsg
(
"cannot determine result data type"
),
errmsg
(
"cannot determine result data type"
),
errdetail
(
"A function returning
ANYARRAY or ANYELEMENT
must have at least one argument of either type."
)));
errdetail
(
"A function returning
\"
anyarray
\"
or
\"
anyelement
\"
must have at least one argument of either type."
)));
}
}
else
else
ereport
(
ERROR
,
ereport
(
ERROR
,
...
...
src/backend/commands/dbcommands.c
View file @
7438af96
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.12
3 2003/09/25 06:57:58
petere Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.12
4 2003/09/29 00:05:24
petere Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -200,7 +200,7 @@ createdb(const CreatedbStmt *stmt)
...
@@ -200,7 +200,7 @@ createdb(const CreatedbStmt *stmt)
if
(
dbpath
!=
NULL
)
if
(
dbpath
!=
NULL
)
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_FEATURE_NOT_SUPPORTED
),
(
errcode
(
ERRCODE_FEATURE_NOT_SUPPORTED
),
errmsg
(
"cannot use an alternate location on this platform"
)));
errmsg
(
"cannot use an alternat
iv
e location on this platform"
)));
#endif
#endif
/*
/*
...
...
src/backend/commands/functioncmds.c
View file @
7438af96
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/functioncmds.c,v 1.3
6 2003/09/25 06:57:58
petere Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/functioncmds.c,v 1.3
7 2003/09/29 00:05:24
petere Exp $
*
*
* DESCRIPTION
* DESCRIPTION
* These routines take the parse tree and pick out the
* These routines take the parse tree and pick out the
...
@@ -441,13 +441,8 @@ CreateFunction(CreateFunctionStmt *stmt)
...
@@ -441,13 +441,8 @@ CreateFunction(CreateFunctionStmt *stmt)
errmsg
(
"language
\"
%s
\"
does not exist"
,
languageName
),
errmsg
(
"language
\"
%s
\"
does not exist"
,
languageName
),
(
strcmp
(
languageName
,
"plperl"
)
==
0
||
(
strcmp
(
languageName
,
"plperl"
)
==
0
||
strcmp
(
languageName
,
"plperlu"
)
==
0
||
strcmp
(
languageName
,
"plperlu"
)
==
0
||
strcmp
(
languageName
,
"plphp"
)
==
0
||
strcmp
(
languageName
,
"plpgsql"
)
==
0
||
strcmp
(
languageName
,
"plpgsql"
)
==
0
||
strcmp
(
languageName
,
"plpython"
)
==
0
||
strcmp
(
languageName
,
"plpythonu"
)
==
0
||
strcmp
(
languageName
,
"plpythonu"
)
==
0
||
strcmp
(
languageName
,
"plr"
)
==
0
||
strcmp
(
languageName
,
"plruby"
)
==
0
||
strcmp
(
languageName
,
"plsh"
)
==
0
||
strcmp
(
languageName
,
"pltcl"
)
==
0
||
strcmp
(
languageName
,
"pltcl"
)
==
0
||
strcmp
(
languageName
,
"pltclu"
)
==
0
)
?
strcmp
(
languageName
,
"pltclu"
)
==
0
)
?
errhint
(
"You need to use
\"
createlang
\"
to load the language into the database."
)
:
0
));
errhint
(
"You need to use
\"
createlang
\"
to load the language into the database."
)
:
0
));
...
@@ -948,7 +943,7 @@ CreateCast(CreateCastStmt *stmt)
...
@@ -948,7 +943,7 @@ CreateCast(CreateCastStmt *stmt)
typ1align
!=
typ2align
)
typ1align
!=
typ2align
)
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_OBJECT_DEFINITION
),
(
errcode
(
ERRCODE_INVALID_OBJECT_DEFINITION
),
errmsg
(
"source and target datatypes are not physically compatible"
)));
errmsg
(
"source and target data
types are not physically compatible"
)));
}
}
/* convert CoercionContext enum to char value for castcontext */
/* convert CoercionContext enum to char value for castcontext */
...
...
src/backend/commands/indexcmds.c
View file @
7438af96
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/indexcmds.c,v 1.11
1 2003/09/26 15:27:31
petere Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/indexcmds.c,v 1.11
2 2003/09/29 00:05:24
petere Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -648,7 +648,7 @@ ReindexTable(RangeVar *relation, bool force /* currently unused */ )
...
@@ -648,7 +648,7 @@ ReindexTable(RangeVar *relation, bool force /* currently unused */ )
if
(((
Form_pg_class
)
GETSTRUCT
(
tuple
))
->
relisshared
&&
IsUnderPostmaster
)
if
(((
Form_pg_class
)
GETSTRUCT
(
tuple
))
->
relisshared
&&
IsUnderPostmaster
)
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INSUFFICIENT_PRIVILEGE
),
(
errcode
(
ERRCODE_INSUFFICIENT_PRIVILEGE
),
errmsg
(
"shared table
\"
%s
\"
can only be reindexed in standalone mode"
,
errmsg
(
"shared table
\"
%s
\"
can only be reindexed in stand
-
alone mode"
,
relation
->
relname
)));
relation
->
relname
)));
ReleaseSysCache
(
tuple
);
ReleaseSysCache
(
tuple
);
...
...
src/backend/commands/tablecmds.c
View file @
7438af96
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/tablecmds.c,v 1.8
3 2003/09/25 06:57:58
petere Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/tablecmds.c,v 1.8
4 2003/09/29 00:05:25
petere Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -4075,7 +4075,7 @@ AlterTableCreateToastTable(Oid relOid, bool silent)
...
@@ -4075,7 +4075,7 @@ AlterTableCreateToastTable(Oid relOid, bool silent)
if
(
shared_relation
&&
IsUnderPostmaster
)
if
(
shared_relation
&&
IsUnderPostmaster
)
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE
),
(
errcode
(
ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE
),
errmsg
(
"shared
relation
s cannot be toasted after initdb"
)));
errmsg
(
"shared
table
s cannot be toasted after initdb"
)));
/*
/*
* Is it already toasted?
* Is it already toasted?
...
@@ -4090,7 +4090,7 @@ AlterTableCreateToastTable(Oid relOid, bool silent)
...
@@ -4090,7 +4090,7 @@ AlterTableCreateToastTable(Oid relOid, bool silent)
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE
),
(
errcode
(
ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE
),
errmsg
(
"
relation
\"
%s
\"
already has a TOAST table"
,
errmsg
(
"
tables
\"
%s
\"
already has a TOAST table"
,
RelationGetRelationName
(
rel
))));
RelationGetRelationName
(
rel
))));
}
}
...
@@ -4107,7 +4107,7 @@ AlterTableCreateToastTable(Oid relOid, bool silent)
...
@@ -4107,7 +4107,7 @@ AlterTableCreateToastTable(Oid relOid, bool silent)
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE
),
(
errcode
(
ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE
),
errmsg
(
"
relation
\"
%s
\"
does not need a TOAST table"
,
errmsg
(
"
table
\"
%s
\"
does not need a TOAST table"
,
RelationGetRelationName
(
rel
))));
RelationGetRelationName
(
rel
))));
}
}
...
...
src/backend/commands/typecmds.c
View file @
7438af96
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/typecmds.c,v 1.4
6 2003/09/25 06:57:58
petere Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/typecmds.c,v 1.4
7 2003/09/29 00:05:25
petere Exp $
*
*
* DESCRIPTION
* DESCRIPTION
* The "DefineFoo" routines take the parse tree and pick out the
* The "DefineFoo" routines take the parse tree and pick out the
...
@@ -1554,9 +1554,9 @@ AlterDomainAddConstraint(List *names, Node *newConstraint)
...
@@ -1554,9 +1554,9 @@ AlterDomainAddConstraint(List *names, Node *newConstraint)
if
(
!
isNull
&&
!
DatumGetBool
(
conResult
))
if
(
!
isNull
&&
!
DatumGetBool
(
conResult
))
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_CHECK_VIOLATION
),
(
errcode
(
ERRCODE_CHECK_VIOLATION
),
errmsg
(
"
relation
\"
%s
\"
column
\"
%s
\"
contains values that violate the new constraint"
,
errmsg
(
"
column
\"
%s
\"
of table
\"
%s
\"
contains values that violate the new constraint"
,
RelationGetRelationName
(
testrel
),
NameStr
(
tupdesc
->
attrs
[
attnum
-
1
]
->
attname
),
NameStr
(
tupdesc
->
attrs
[
attnum
-
1
]
->
attname
))));
RelationGetRelationName
(
testrel
))));
}
}
ResetExprContext
(
econtext
);
ResetExprContext
(
econtext
);
...
...
src/backend/commands/user.c
View file @
7438af96
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $Header: /cvsroot/pgsql/src/backend/commands/user.c,v 1.12
6 2003/09/25 06:57:59
petere Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/user.c,v 1.12
7 2003/09/29 00:05:25
petere Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -1227,7 +1227,7 @@ CheckPgUserAclNotNull(void)
...
@@ -1227,7 +1227,7 @@ CheckPgUserAclNotNull(void)
if
(
heap_attisnull
(
htup
,
Anum_pg_class_relacl
))
if
(
heap_attisnull
(
htup
,
Anum_pg_class_relacl
))
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INSUFFICIENT_PRIVILEGE
),
(
errcode
(
ERRCODE_INSUFFICIENT_PRIVILEGE
),
errmsg
(
"before using passwords you must revoke p
ermission
s on %s"
,
errmsg
(
"before using passwords you must revoke p
rivilege
s on %s"
,
ShadowRelationName
),
ShadowRelationName
),
errdetail
(
"This restriction is to prevent unprivileged users from reading the passwords."
),
errdetail
(
"This restriction is to prevent unprivileged users from reading the passwords."
),
errhint
(
"Try REVOKE ALL ON
\"
%s
\"
FROM PUBLIC."
,
errhint
(
"Try REVOKE ALL ON
\"
%s
\"
FROM PUBLIC."
,
...
...
src/backend/commands/vacuum.c
View file @
7438af96
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.26
1 2003/09/25 06:57:59
petere Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.26
2 2003/09/29 00:05:25
petere Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -2726,7 +2726,7 @@ vacuum_index(VacPageList vacpagelist, Relation indrel,
...
@@ -2726,7 +2726,7 @@ vacuum_index(VacPageList vacpagelist, Relation indrel,
if
(
stats
->
num_index_tuples
>
num_tuples
+
keep_tuples
||
if
(
stats
->
num_index_tuples
>
num_tuples
+
keep_tuples
||
!
vac_is_partial_index
(
indrel
))
!
vac_is_partial_index
(
indrel
))
ereport
(
WARNING
,
ereport
(
WARNING
,
(
errmsg
(
"index
\"
%s
\"
contains %.0f row versions, but table contains %.0f
tuple
s"
,
(
errmsg
(
"index
\"
%s
\"
contains %.0f row versions, but table contains %.0f
row version
s"
,
RelationGetRelationName
(
indrel
),
RelationGetRelationName
(
indrel
),
stats
->
num_index_tuples
,
num_tuples
+
keep_tuples
),
stats
->
num_index_tuples
,
num_tuples
+
keep_tuples
),
errhint
(
"Rebuild the index with REINDEX."
)));
errhint
(
"Rebuild the index with REINDEX."
)));
...
...
src/backend/parser/parse_coerce.c
View file @
7438af96
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parse_coerce.c,v 2.11
0 2003/09/25 06:58:01
petere Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/parse_coerce.c,v 2.11
1 2003/09/29 00:05:25
petere Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -960,7 +960,7 @@ enforce_generic_type_consistency(Oid *actual_arg_types,
...
@@ -960,7 +960,7 @@ enforce_generic_type_consistency(Oid *actual_arg_types,
if
(
!
OidIsValid
(
array_typelem
))
if
(
!
OidIsValid
(
array_typelem
))
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_DATATYPE_MISMATCH
),
(
errcode
(
ERRCODE_DATATYPE_MISMATCH
),
errmsg
(
"argument declared
\"
anyarray
\"
is not an array but %s"
,
errmsg
(
"argument declared
\"
anyarray
\"
is not an array but
type
%s"
,
format_type_be
(
array_typeid
))));
format_type_be
(
array_typeid
))));
}
}
...
...
src/backend/parser/parse_func.c
View file @
7438af96
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.16
0 2003/09/25 06:58:01
petere Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.16
1 2003/09/29 00:05:25
petere Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -221,7 +221,7 @@ ParseFuncOrColumn(ParseState *pstate, List *funcname, List *fargs,
...
@@ -221,7 +221,7 @@ ParseFuncOrColumn(ParseState *pstate, List *funcname, List *fargs,
else
else
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_FEATURE_NOT_SUPPORTED
),
(
errcode
(
ERRCODE_FEATURE_NOT_SUPPORTED
),
errmsg
(
"cannot pass result of subquery or join
%s
to a function"
,
errmsg
(
"cannot pass result of subquery or join
\"
%s
\"
to a function"
,
relname
)));
relname
)));
toid
=
InvalidOid
;
/* keep compiler quiet */
toid
=
InvalidOid
;
/* keep compiler quiet */
break
;
break
;
...
...
src/backend/port/sysv_shmem.c
View file @
7438af96
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/port/sysv_shmem.c,v 1.1
6 2003/09/26 15:27:3
5 petere Exp $
* $Header: /cvsroot/pgsql/src/backend/port/sysv_shmem.c,v 1.1
7 2003/09/29 00:05:2
5 petere Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -96,9 +96,9 @@ InternalIpcMemoryCreate(IpcMemoryKey memKey, uint32 size)
...
@@ -96,9 +96,9 @@ InternalIpcMemoryCreate(IpcMemoryKey memKey, uint32 size)
(
errno
==
EINVAL
)
?
(
errno
==
EINVAL
)
?
errhint
(
"This error usually means that PostgreSQL's request for a shared memory "
errhint
(
"This error usually means that PostgreSQL's request for a shared memory "
"segment exceeded your kernel's SHMMAX parameter. You can either "
"segment exceeded your kernel's SHMMAX parameter. You can either "
"reduce the request size or reconfigure the kernel with larger SHMMAX. "
"reduce the request size or reconfigure the kernel with larger SHMMAX.
"
"To reduce the request size (currently %u bytes), reduce "
"To reduce the request size (currently %u bytes), reduce "
"PostgreSQL's shared_buffers parameter (currently %d) and/or "
"PostgreSQL's shared_buffers parameter (currently %d) and/or "
"its max_connections parameter (currently %d).
\n
"
"its max_connections parameter (currently %d).
\n
"
"If the request size is already small, it's possible that it is less than "
"If the request size is already small, it's possible that it is less than "
"your kernel's SHMMIN parameter, in which case raising the request size or "
"your kernel's SHMMIN parameter, in which case raising the request size or "
...
...
src/backend/rewrite/rewriteDefine.c
View file @
7438af96
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteDefine.c,v 1.
89 2003/09/26 15:27:36
petere Exp $
* $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteDefine.c,v 1.
90 2003/09/29 00:05:25
petere Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -262,7 +262,7 @@ DefineQueryRewrite(RuleStmt *stmt)
...
@@ -262,7 +262,7 @@ DefineQueryRewrite(RuleStmt *stmt)
if
(
length
(
action
)
>
1
)
if
(
length
(
action
)
>
1
)
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_FEATURE_NOT_SUPPORTED
),
(
errcode
(
ERRCODE_FEATURE_NOT_SUPPORTED
),
errmsg
(
"multiple action
rules on select
are not implemented"
)));
errmsg
(
"multiple action
s for rules on SELECT
are not implemented"
)));
/*
/*
* ... the one action must be a SELECT, ...
* ... the one action must be a SELECT, ...
...
...
src/backend/storage/freespace/freespace.c
View file @
7438af96
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/freespace/freespace.c,v 1.2
2 2003/09/25 06:58:02
petere Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/freespace/freespace.c,v 1.2
3 2003/09/29 00:05:25
petere Exp $
*
*
*
*
* NOTES:
* NOTES:
...
@@ -704,7 +704,7 @@ PrintFreeSpaceMapStatistics(int elevel)
...
@@ -704,7 +704,7 @@ PrintFreeSpaceMapStatistics(int elevel)
ereport
(
elevel
,
ereport
(
elevel
,
(
errmsg
(
"free space map: %d relations, %d pages stored; %.0f total pages needed"
,
(
errmsg
(
"free space map: %d relations, %d pages stored; %.0f total pages needed"
,
numRels
,
storedPages
,
needed
),
numRels
,
storedPages
,
needed
),
errdetail
(
"Allocated FSM size: %d relations + %d pages = %.0f kB shared mem."
,
errdetail
(
"Allocated FSM size: %d relations + %d pages = %.0f kB shared mem
ory
."
,
MaxFSMRelations
,
MaxFSMPages
,
MaxFSMRelations
,
MaxFSMPages
,
(
double
)
FreeSpaceShmemSize
()
/
1024
.
0
)));
(
double
)
FreeSpaceShmemSize
()
/
1024
.
0
)));
}
}
...
...
src/backend/storage/page/bufpage.c
View file @
7438af96
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/page/bufpage.c,v 1.5
5 2003/08/04 02:40:03 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/page/bufpage.c,v 1.5
6 2003/09/29 00:05:25 petere
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -489,7 +489,7 @@ PageIndexTupleDelete(Page page, OffsetNumber offnum)
...
@@ -489,7 +489,7 @@ PageIndexTupleDelete(Page page, OffsetNumber offnum)
offset
!=
MAXALIGN
(
offset
)
||
size
!=
MAXALIGN
(
size
))
offset
!=
MAXALIGN
(
offset
)
||
size
!=
MAXALIGN
(
size
))
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_DATA_CORRUPTED
),
(
errcode
(
ERRCODE_DATA_CORRUPTED
),
errmsg
(
"corrupted item pointer: offset = %u size = %u"
,
errmsg
(
"corrupted item pointer: offset = %u
,
size = %u"
,
offset
,
(
unsigned
int
)
size
)));
offset
,
(
unsigned
int
)
size
)));
/*
/*
...
...
src/backend/tcop/postgres.c
View file @
7438af96
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.36
6 2003/09/27 09:29:31
petere Exp $
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.36
7 2003/09/29 00:05:25
petere Exp $
*
*
* NOTES
* NOTES
* this is the "main" module of the postgres backend and
* this is the "main" module of the postgres backend and
...
@@ -1972,36 +1972,36 @@ ProcessInterrupts(void)
...
@@ -1972,36 +1972,36 @@ ProcessInterrupts(void)
static
void
static
void
usage
(
char
*
progname
)
usage
(
char
*
progname
)
{
{
printf
(
"%s is the PostgreSQL stand-alone backend. It is not
\n
intended to be used by normal users.
\n\n
"
,
progname
);
printf
(
gettext
(
"%s is the PostgreSQL stand-alone backend. It is not
\n
intended to be used by normal users.
\n\n
"
)
,
progname
);
printf
(
"Usage:
\n
%s [OPTION]... [DBNAME]
\n\n
"
,
progname
);
printf
(
gettext
(
"Usage:
\n
%s [OPTION]... [DBNAME]
\n\n
"
)
,
progname
);
printf
(
"Options:
\n
"
);
printf
(
gettext
(
"Options:
\n
"
)
);
#ifdef USE_ASSERT_CHECKING
#ifdef USE_ASSERT_CHECKING
printf
(
" -A 1|0 enable/disable run-time assert checking
\n
"
);
printf
(
gettext
(
" -A 1|0 enable/disable run-time assert checking
\n
"
)
);
#endif
#endif
printf
(
" -B NBUFFERS number of shared buffers
\n
"
);
printf
(
gettext
(
" -B NBUFFERS number of shared buffers
\n
"
)
);
printf
(
" -c NAME=VALUE set run-time parameter
\n
"
);
printf
(
gettext
(
" -c NAME=VALUE set run-time parameter
\n
"
)
);
printf
(
" -d 0-5 debugging level (0 is off)
\n
"
);
printf
(
gettext
(
" -d 0-5 debugging level (0 is off)
\n
"
)
);
printf
(
" -D DATADIR database directory
\n
"
);
printf
(
gettext
(
" -D DATADIR database directory
\n
"
)
);
printf
(
" -e use European date input format (DMY)
\n
"
);
printf
(
gettext
(
" -e use European date input format (DMY)
\n
"
)
);
printf
(
" -E echo query before execution
\n
"
);
printf
(
gettext
(
" -E echo query before execution
\n
"
)
);
printf
(
" -F turn fsync off
\n
"
);
printf
(
gettext
(
" -F turn fsync off
\n
"
)
);
printf
(
" -N do not use newline as interactive query delimiter
\n
"
);
printf
(
gettext
(
" -N do not use newline as interactive query delimiter
\n
"
)
);
printf
(
" -o FILENAME send stdout and stderr to given file
\n
"
);
printf
(
gettext
(
" -o FILENAME send stdout and stderr to given file
\n
"
)
);
printf
(
" -P disable system indexes
\n
"
);
printf
(
gettext
(
" -P disable system indexes
\n
"
)
);
printf
(
" -s show statistics after each query
\n
"
);
printf
(
gettext
(
" -s show statistics after each query
\n
"
)
);
printf
(
" -S SORT-MEM set amount of memory for sorts (in kbytes)
\n
"
);
printf
(
gettext
(
" -S SORT-MEM set amount of memory for sorts (in kbytes)
\n
"
)
);
printf
(
" --help-config show configuration parameters, then exit;
\n
"
printf
(
gettext
(
" --help-config show configuration parameters, then exit;
\n
"
" details: --help-config -h
\n
"
);
" details: --help-config -h
\n
"
)
);
printf
(
" --help show this help, then exit
\n
"
);
printf
(
gettext
(
" --help show this help, then exit
\n
"
)
);
printf
(
" --version output version information, then exit
\n
"
);
printf
(
gettext
(
" --version output version information, then exit
\n
"
)
);
printf
(
"
\n
Developer options:
\n
"
);
printf
(
gettext
(
"
\n
Developer options:
\n
"
)
);
printf
(
" -f s|i|n|m|h forbid use of some plan types
\n
"
);
printf
(
gettext
(
" -f s|i|n|m|h forbid use of some plan types
\n
"
)
);
printf
(
" -i do not execute queries
\n
"
);
printf
(
gettext
(
" -i do not execute queries
\n
"
)
);
printf
(
" -O allow system table structure changes
\n
"
);
printf
(
gettext
(
" -O allow system table structure changes
\n
"
)
);
printf
(
" -t pa|pl|ex show timings after each query
\n
"
);
printf
(
gettext
(
" -t pa|pl|ex show timings after each query
\n
"
)
);
printf
(
" -W NUM wait NUM seconds to allow attach from a debugger
\n
"
);
printf
(
gettext
(
" -W NUM wait NUM seconds to allow attach from a debugger
\n
"
)
);
printf
(
"
\n
Report bugs to <pgsql-bugs@postgresql.org>.
\n
"
);
printf
(
gettext
(
"
\n
Report bugs to <pgsql-bugs@postgresql.org>.
\n
"
)
);
}
}
...
@@ -2475,7 +2475,7 @@ PostgresMain(int argc, char *argv[], const char *username)
...
@@ -2475,7 +2475,7 @@ PostgresMain(int argc, char *argv[], const char *username)
{
{
ereport
(
WARNING
,
ereport
(
WARNING
,
(
errcode
(
ERRCODE_INVALID_PARAMETER_VALUE
),
(
errcode
(
ERRCODE_INVALID_PARAMETER_VALUE
),
errmsg
(
"
query
-level statistics are disabled because parser, planner, or executor statistics are on"
)));
errmsg
(
"
statement
-level statistics are disabled because parser, planner, or executor statistics are on"
)));
SetConfigOption
(
"show_statement_stats"
,
"false"
,
ctx
,
gucsource
);
SetConfigOption
(
"show_statement_stats"
,
"false"
,
ctx
,
gucsource
);
}
}
...
@@ -2564,8 +2564,8 @@ PostgresMain(int argc, char *argv[], const char *username)
...
@@ -2564,8 +2564,8 @@ PostgresMain(int argc, char *argv[], const char *username)
{
{
ereport
(
FATAL
,
ereport
(
FATAL
,
(
errcode
(
ERRCODE_SYNTAX_ERROR
),
(
errcode
(
ERRCODE_SYNTAX_ERROR
),
errmsg
(
"invalid
backend command-line argument
s"
),
errmsg
(
"invalid
command-line arguments for server proces
s"
),
errhint
(
"Try
-? for help."
)));
errhint
(
"Try
\"
%s --help
\"
for more information."
,
argv
[
0
]
)));
}
}
BaseInit
();
BaseInit
();
#ifdef EXECBACKEND
#ifdef EXECBACKEND
...
@@ -2581,7 +2581,7 @@ PostgresMain(int argc, char *argv[], const char *username)
...
@@ -2581,7 +2581,7 @@ PostgresMain(int argc, char *argv[], const char *username)
(
errcode
(
ERRCODE_SYNTAX_ERROR
),
(
errcode
(
ERRCODE_SYNTAX_ERROR
),
errmsg
(
"%s: invalid command-line arguments"
,
errmsg
(
"%s: invalid command-line arguments"
,
argv
[
0
]),
argv
[
0
]),
errhint
(
"Try
-? for help."
)));
errhint
(
"Try
\"
%s --help
\"
for more information."
,
argv
[
0
]
)));
}
}
else
if
(
argc
-
optind
==
1
)
else
if
(
argc
-
optind
==
1
)
dbname
=
argv
[
optind
];
dbname
=
argv
[
optind
];
...
@@ -2662,7 +2662,7 @@ PostgresMain(int argc, char *argv[], const char *username)
...
@@ -2662,7 +2662,7 @@ PostgresMain(int argc, char *argv[], const char *username)
if
(
!
IsUnderPostmaster
)
if
(
!
IsUnderPostmaster
)
{
{
puts
(
"
\n
POSTGRES backend interactive interface "
);
puts
(
"
\n
POSTGRES backend interactive interface "
);
puts
(
"$Revision: 1.36
6 $ $Date: 2003/09/27 09:29:31
$
\n
"
);
puts
(
"$Revision: 1.36
7 $ $Date: 2003/09/29 00:05:25
$
\n
"
);
}
}
/*
/*
...
...
src/backend/utils/adt/formatting.c
View file @
7438af96
/* -----------------------------------------------------------------------
/* -----------------------------------------------------------------------
* formatting.c
* formatting.c
*
*
* $Header: /cvsroot/pgsql/src/backend/utils/adt/formatting.c,v 1.6
8 2003/09/03 14:59:41 tgl
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/formatting.c,v 1.6
9 2003/09/29 00:05:25 petere
Exp $
*
*
*
*
* Portions Copyright (c) 1999-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1999-2003, PostgreSQL Global Development Group
...
@@ -3163,7 +3163,7 @@ do_to_timestamp(text *date_txt, text *fmt,
...
@@ -3163,7 +3163,7 @@ do_to_timestamp(text *date_txt, text *fmt,
if
(
!
tm
->
tm_year
)
if
(
!
tm
->
tm_year
)
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_DATETIME_FORMAT
),
(
errcode
(
ERRCODE_INVALID_DATETIME_FORMAT
),
errmsg
(
"cannot c
onvert yday
without year information"
)));
errmsg
(
"cannot c
alculate day of year
without year information"
)));
y
=
ysum
[
isleap
(
tm
->
tm_year
)];
y
=
ysum
[
isleap
(
tm
->
tm_year
)];
...
...
src/backend/utils/adt/geo_ops.c
View file @
7438af96
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/geo_ops.c,v 1.8
1 2003/09/25 06:58:03
petere Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/geo_ops.c,v 1.8
2 2003/09/29 00:05:25
petere Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -312,7 +312,7 @@ path_encode(bool closed, int npts, Point *pt)
...
@@ -312,7 +312,7 @@ path_encode(bool closed, int npts, Point *pt)
if
(
!
pair_encode
(
pt
->
x
,
pt
->
y
,
cp
))
if
(
!
pair_encode
(
pt
->
x
,
pt
->
y
,
cp
))
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_PARAMETER_VALUE
),
(
errcode
(
ERRCODE_INVALID_PARAMETER_VALUE
),
errmsg
(
"could not format
path
"
)));
errmsg
(
"could not format
\"
path
\"
value
"
)));
cp
+=
strlen
(
cp
);
cp
+=
strlen
(
cp
);
*
cp
++
=
RDELIM
;
*
cp
++
=
RDELIM
;
...
@@ -1386,7 +1386,7 @@ path_recv(PG_FUNCTION_ARGS)
...
@@ -1386,7 +1386,7 @@ path_recv(PG_FUNCTION_ARGS)
if
(
npts
<
0
||
npts
>=
(
int32
)
(
INT_MAX
/
sizeof
(
Point
)))
if
(
npts
<
0
||
npts
>=
(
int32
)
(
INT_MAX
/
sizeof
(
Point
)))
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_BINARY_REPRESENTATION
),
(
errcode
(
ERRCODE_INVALID_BINARY_REPRESENTATION
),
errmsg
(
"invalid number of points in external
path
"
)));
errmsg
(
"invalid number of points in external
\"
path
\"
value
"
)));
size
=
offsetof
(
PATH
,
p
[
0
])
+
sizeof
(
path
->
p
[
0
])
*
npts
;
size
=
offsetof
(
PATH
,
p
[
0
])
+
sizeof
(
path
->
p
[
0
])
*
npts
;
path
=
(
PATH
*
)
palloc
(
size
);
path
=
(
PATH
*
)
palloc
(
size
);
...
@@ -3415,7 +3415,7 @@ poly_recv(PG_FUNCTION_ARGS)
...
@@ -3415,7 +3415,7 @@ poly_recv(PG_FUNCTION_ARGS)
if
(
npts
<
0
||
npts
>=
(
int32
)
((
INT_MAX
-
offsetof
(
POLYGON
,
p
[
0
]))
/
sizeof
(
Point
)))
if
(
npts
<
0
||
npts
>=
(
int32
)
((
INT_MAX
-
offsetof
(
POLYGON
,
p
[
0
]))
/
sizeof
(
Point
)))
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_BINARY_REPRESENTATION
),
(
errcode
(
ERRCODE_INVALID_BINARY_REPRESENTATION
),
errmsg
(
"invalid number of points in external
polygon
"
)));
errmsg
(
"invalid number of points in external
\"
polygon
\"
value
"
)));
size
=
offsetof
(
POLYGON
,
p
[
0
])
+
sizeof
(
poly
->
p
[
0
])
*
npts
;
size
=
offsetof
(
POLYGON
,
p
[
0
])
+
sizeof
(
poly
->
p
[
0
])
*
npts
;
poly
=
(
POLYGON
*
)
palloc0
(
size
);
/* zero any holes */
poly
=
(
POLYGON
*
)
palloc0
(
size
);
/* zero any holes */
...
@@ -4274,7 +4274,7 @@ circle_out(PG_FUNCTION_ARGS)
...
@@ -4274,7 +4274,7 @@ circle_out(PG_FUNCTION_ARGS)
if
(
!
pair_encode
(
circle
->
center
.
x
,
circle
->
center
.
y
,
cp
))
if
(
!
pair_encode
(
circle
->
center
.
x
,
circle
->
center
.
y
,
cp
))
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_PARAMETER_VALUE
),
(
errcode
(
ERRCODE_INVALID_PARAMETER_VALUE
),
errmsg
(
"could not format
circl
e"
)));
errmsg
(
"could not format
\"
circle
\"
valu
e"
)));
cp
+=
strlen
(
cp
);
cp
+=
strlen
(
cp
);
*
cp
++
=
RDELIM
;
*
cp
++
=
RDELIM
;
...
@@ -4282,7 +4282,7 @@ circle_out(PG_FUNCTION_ARGS)
...
@@ -4282,7 +4282,7 @@ circle_out(PG_FUNCTION_ARGS)
if
(
!
single_encode
(
circle
->
radius
,
cp
))
if
(
!
single_encode
(
circle
->
radius
,
cp
))
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_PARAMETER_VALUE
),
(
errcode
(
ERRCODE_INVALID_PARAMETER_VALUE
),
errmsg
(
"could not format
circl
e"
)));
errmsg
(
"could not format
\"
circle
\"
valu
e"
)));
cp
+=
strlen
(
cp
);
cp
+=
strlen
(
cp
);
*
cp
++
=
RDELIM_C
;
*
cp
++
=
RDELIM_C
;
...
@@ -4309,7 +4309,7 @@ circle_recv(PG_FUNCTION_ARGS)
...
@@ -4309,7 +4309,7 @@ circle_recv(PG_FUNCTION_ARGS)
if
(
circle
->
radius
<
0
)
if
(
circle
->
radius
<
0
)
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_BINARY_REPRESENTATION
),
(
errcode
(
ERRCODE_INVALID_BINARY_REPRESENTATION
),
errmsg
(
"invalid radius in external
circl
e"
)));
errmsg
(
"invalid radius in external
\"
circle
\"
valu
e"
)));
PG_RETURN_CIRCLE_P
(
circle
);
PG_RETURN_CIRCLE_P
(
circle
);
}
}
...
@@ -4803,7 +4803,7 @@ circle_poly(PG_FUNCTION_ARGS)
...
@@ -4803,7 +4803,7 @@ circle_poly(PG_FUNCTION_ARGS)
if
(
FPzero
(
circle
->
radius
))
if
(
FPzero
(
circle
->
radius
))
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_FEATURE_NOT_SUPPORTED
),
(
errcode
(
ERRCODE_FEATURE_NOT_SUPPORTED
),
errmsg
(
"cannot convert
zero-size circle
to polygon"
)));
errmsg
(
"cannot convert
circle with radius zero
to polygon"
)));
if
(
npts
<
2
)
if
(
npts
<
2
)
ereport
(
ERROR
,
ereport
(
ERROR
,
...
...
src/backend/utils/adt/mac.c
View file @
7438af96
/*
/*
* PostgreSQL type definitions for MAC addresses.
* PostgreSQL type definitions for MAC addresses.
*
*
* $Header: /cvsroot/pgsql/src/backend/utils/adt/mac.c,v 1.3
1 2003/09/25 06:58:04
petere Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/mac.c,v 1.3
2 2003/09/29 00:05:25
petere Exp $
*/
*/
#include "postgres.h"
#include "postgres.h"
...
@@ -69,7 +69,7 @@ macaddr_in(PG_FUNCTION_ARGS)
...
@@ -69,7 +69,7 @@ macaddr_in(PG_FUNCTION_ARGS)
(
e
<
0
)
||
(
e
>
255
)
||
(
f
<
0
)
||
(
f
>
255
))
(
e
<
0
)
||
(
e
>
255
)
||
(
f
<
0
)
||
(
f
>
255
))
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE
),
(
errcode
(
ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE
),
errmsg
(
"invalid octet value in
macaddr
:
\"
%s
\"
"
,
str
)));
errmsg
(
"invalid octet value in
\"
macaddr
\"
value
:
\"
%s
\"
"
,
str
)));
result
=
(
macaddr
*
)
palloc
(
sizeof
(
macaddr
));
result
=
(
macaddr
*
)
palloc
(
sizeof
(
macaddr
));
...
...
src/backend/utils/adt/nabstime.c
View file @
7438af96
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.11
6 2003/09/25 06:58:04
petere Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.11
7 2003/09/29 00:05:25
petere Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -942,7 +942,7 @@ tintervalrecv(PG_FUNCTION_ARGS)
...
@@ -942,7 +942,7 @@ tintervalrecv(PG_FUNCTION_ARGS)
interval
->
status
==
T_INTERVAL_VALID
))
interval
->
status
==
T_INTERVAL_VALID
))
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_BINARY_REPRESENTATION
),
(
errcode
(
ERRCODE_INVALID_BINARY_REPRESENTATION
),
errmsg
(
"invalid status in external
tinterval
"
)));
errmsg
(
"invalid status in external
\"
tinterval
\"
value
"
)));
interval
->
data
[
0
]
=
pq_getmsgint
(
buf
,
sizeof
(
interval
->
data
[
0
]));
interval
->
data
[
0
]
=
pq_getmsgint
(
buf
,
sizeof
(
interval
->
data
[
0
]));
interval
->
data
[
1
]
=
pq_getmsgint
(
buf
,
sizeof
(
interval
->
data
[
1
]));
interval
->
data
[
1
]
=
pq_getmsgint
(
buf
,
sizeof
(
interval
->
data
[
1
]));
...
...
src/backend/utils/adt/network.c
View file @
7438af96
/*
/*
* PostgreSQL type definitions for the INET and CIDR types.
* PostgreSQL type definitions for the INET and CIDR types.
*
*
* $Header: /cvsroot/pgsql/src/backend/utils/adt/network.c,v 1.4
6 2003/09/25 06:58:04
petere Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/network.c,v 1.4
7 2003/09/29 00:05:25
petere Exp $
*
*
* Jon Postel RIP 16 Oct 1998
* Jon Postel RIP 16 Oct 1998
*/
*/
...
@@ -191,23 +191,23 @@ inet_recv(PG_FUNCTION_ARGS)
...
@@ -191,23 +191,23 @@ inet_recv(PG_FUNCTION_ARGS)
ip_family
(
addr
)
!=
PGSQL_AF_INET6
)
ip_family
(
addr
)
!=
PGSQL_AF_INET6
)
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_BINARY_REPRESENTATION
),
(
errcode
(
ERRCODE_INVALID_BINARY_REPRESENTATION
),
errmsg
(
"invalid
family in external inet
"
)));
errmsg
(
"invalid
address family in external
\"
inet
\"
value
"
)));
bits
=
pq_getmsgbyte
(
buf
);
bits
=
pq_getmsgbyte
(
buf
);
if
(
bits
<
0
||
bits
>
ip_maxbits
(
addr
))
if
(
bits
<
0
||
bits
>
ip_maxbits
(
addr
))
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_BINARY_REPRESENTATION
),
(
errcode
(
ERRCODE_INVALID_BINARY_REPRESENTATION
),
errmsg
(
"invalid bits in external
inet
"
)));
errmsg
(
"invalid bits in external
\"
inet
\"
value
"
)));
ip_bits
(
addr
)
=
bits
;
ip_bits
(
addr
)
=
bits
;
ip_type
(
addr
)
=
pq_getmsgbyte
(
buf
);
ip_type
(
addr
)
=
pq_getmsgbyte
(
buf
);
if
(
ip_type
(
addr
)
!=
0
&&
ip_type
(
addr
)
!=
1
)
if
(
ip_type
(
addr
)
!=
0
&&
ip_type
(
addr
)
!=
1
)
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_BINARY_REPRESENTATION
),
(
errcode
(
ERRCODE_INVALID_BINARY_REPRESENTATION
),
errmsg
(
"invalid type in external
inet
"
)));
errmsg
(
"invalid type in external
\"
inet
\"
value
"
)));
nb
=
pq_getmsgbyte
(
buf
);
nb
=
pq_getmsgbyte
(
buf
);
if
(
nb
!=
ip_addrsize
(
addr
))
if
(
nb
!=
ip_addrsize
(
addr
))
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_BINARY_REPRESENTATION
),
(
errcode
(
ERRCODE_INVALID_BINARY_REPRESENTATION
),
errmsg
(
"invalid length in external
inet
"
)));
errmsg
(
"invalid length in external
\"
inet
\"
value
"
)));
VARATT_SIZEP
(
addr
)
=
VARHDRSZ
VARATT_SIZEP
(
addr
)
=
VARHDRSZ
+
((
char
*
)
ip_addr
(
addr
)
-
(
char
*
)
VARDATA
(
addr
))
+
((
char
*
)
ip_addr
(
addr
)
-
(
char
*
)
VARDATA
(
addr
))
+
ip_addrsize
(
addr
);
+
ip_addrsize
(
addr
);
...
@@ -225,7 +225,7 @@ inet_recv(PG_FUNCTION_ARGS)
...
@@ -225,7 +225,7 @@ inet_recv(PG_FUNCTION_ARGS)
if
(
!
addressOK
(
ip_addr
(
addr
),
bits
,
ip_family
(
addr
)))
if
(
!
addressOK
(
ip_addr
(
addr
),
bits
,
ip_family
(
addr
)))
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_BINARY_REPRESENTATION
),
(
errcode
(
ERRCODE_INVALID_BINARY_REPRESENTATION
),
errmsg
(
"invalid external
cidr
value"
),
errmsg
(
"invalid external
\"
cidr
\"
value"
),
errdetail
(
"Value has bits set to right of mask."
)));
errdetail
(
"Value has bits set to right of mask."
)));
}
}
...
...
src/backend/utils/adt/numeric.c
View file @
7438af96
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
* Copyright (c) 1998-2003, PostgreSQL Global Development Group
* Copyright (c) 1998-2003, PostgreSQL Global Development Group
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/numeric.c,v 1.6
6 2003/09/25 06:58:04
petere Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/numeric.c,v 1.6
7 2003/09/29 00:05:25
petere Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -400,7 +400,7 @@ numeric_recv(PG_FUNCTION_ARGS)
...
@@ -400,7 +400,7 @@ numeric_recv(PG_FUNCTION_ARGS)
if
(
len
<
0
||
len
>
NUMERIC_MAX_PRECISION
+
NUMERIC_MAX_RESULT_SCALE
)
if
(
len
<
0
||
len
>
NUMERIC_MAX_PRECISION
+
NUMERIC_MAX_RESULT_SCALE
)
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_BINARY_REPRESENTATION
),
(
errcode
(
ERRCODE_INVALID_BINARY_REPRESENTATION
),
errmsg
(
"invalid length in external
numeric
"
)));
errmsg
(
"invalid length in external
\"
numeric
\"
value
"
)));
alloc_var
(
&
value
,
len
);
alloc_var
(
&
value
,
len
);
...
@@ -411,7 +411,7 @@ numeric_recv(PG_FUNCTION_ARGS)
...
@@ -411,7 +411,7 @@ numeric_recv(PG_FUNCTION_ARGS)
value
.
sign
==
NUMERIC_NAN
))
value
.
sign
==
NUMERIC_NAN
))
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_BINARY_REPRESENTATION
),
(
errcode
(
ERRCODE_INVALID_BINARY_REPRESENTATION
),
errmsg
(
"invalid sign in external
numeric
"
)));
errmsg
(
"invalid sign in external
\"
numeric
\"
value
"
)));
value
.
dscale
=
(
uint16
)
pq_getmsgint
(
buf
,
sizeof
(
uint16
));
value
.
dscale
=
(
uint16
)
pq_getmsgint
(
buf
,
sizeof
(
uint16
));
for
(
i
=
0
;
i
<
len
;
i
++
)
for
(
i
=
0
;
i
<
len
;
i
++
)
...
@@ -421,7 +421,7 @@ numeric_recv(PG_FUNCTION_ARGS)
...
@@ -421,7 +421,7 @@ numeric_recv(PG_FUNCTION_ARGS)
if
(
d
<
0
||
d
>=
NBASE
)
if
(
d
<
0
||
d
>=
NBASE
)
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_BINARY_REPRESENTATION
),
(
errcode
(
ERRCODE_INVALID_BINARY_REPRESENTATION
),
errmsg
(
"invalid digit in external
numeric
"
)));
errmsg
(
"invalid digit in external
\"
numeric
\"
value
"
)));
value
.
digits
[
i
]
=
d
;
value
.
digits
[
i
]
=
d
;
}
}
...
...
src/backend/utils/adt/ri_triggers.c
View file @
7438af96
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
*
*
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
*
*
* $Header: /cvsroot/pgsql/src/backend/utils/adt/ri_triggers.c,v 1.
59 2003/09/28 02:11:23 tgl
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/ri_triggers.c,v 1.
60 2003/09/29 00:05:25 petere
Exp $
*
*
* ----------
* ----------
*/
*/
...
@@ -2731,7 +2731,7 @@ ri_CheckTrigger(FunctionCallInfo fcinfo, const char *funcname, int tgkind)
...
@@ -2731,7 +2731,7 @@ ri_CheckTrigger(FunctionCallInfo fcinfo, const char *funcname, int tgkind)
errmsg
(
"no target table given for trigger
\"
%s
\"
on table
\"
%s
\"
"
,
errmsg
(
"no target table given for trigger
\"
%s
\"
on table
\"
%s
\"
"
,
trigdata
->
tg_trigger
->
tgname
,
trigdata
->
tg_trigger
->
tgname
,
RelationGetRelationName
(
trigdata
->
tg_relation
)),
RelationGetRelationName
(
trigdata
->
tg_relation
)),
errhint
(
"Remove this
RI
trigger and its mates, then do ALTER TABLE ADD CONSTRAINT."
)));
errhint
(
"Remove this
referential integrity
trigger and its mates, then do ALTER TABLE ADD CONSTRAINT."
)));
}
}
...
...
src/backend/utils/adt/timestamp.c
View file @
7438af96
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/timestamp.c,v 1.9
5 2003/09/25 06:58:04
petere Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/timestamp.c,v 1.9
6 2003/09/29 00:05:25
petere Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -2853,7 +2853,7 @@ isoweek2date(int woy, int *year, int *mon, int *mday)
...
@@ -2853,7 +2853,7 @@ isoweek2date(int woy, int *year, int *mon, int *mday)
if
(
!*
year
)
if
(
!*
year
)
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_PARAMETER_VALUE
),
(
errcode
(
ERRCODE_INVALID_PARAMETER_VALUE
),
errmsg
(
"cannot c
onvert
week number without year information"
)));
errmsg
(
"cannot c
alculate
week number without year information"
)));
/* fourth day of current year */
/* fourth day of current year */
day4
=
date2j
(
*
year
,
1
,
4
);
day4
=
date2j
(
*
year
,
1
,
4
);
...
...
src/backend/utils/misc/guc.c
View file @
7438af96
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
* Written by Peter Eisentraut <peter_e@gmx.net>.
* Written by Peter Eisentraut <peter_e@gmx.net>.
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.16
0 2003/09/26 15:27:37
petere Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.16
1 2003/09/29 00:05:25
petere Exp $
*
*
*--------------------------------------------------------------------
*--------------------------------------------------------------------
*/
*/
...
@@ -423,7 +423,7 @@ static struct config_bool ConfigureNamesBool[] =
...
@@ -423,7 +423,7 @@ static struct config_bool ConfigureNamesBool[] =
{
{
/* Not for general use --- used by SET SESSION AUTHORIZATION */
/* Not for general use --- used by SET SESSION AUTHORIZATION */
{
"is_superuser"
,
PGC_INTERNAL
,
UNGROUPED
,
{
"is_superuser"
,
PGC_INTERNAL
,
UNGROUPED
,
gettext_noop
(
"s
et to indicate current user's privilege status
"
),
gettext_noop
(
"s
hows whether the current user is a superuser
"
),
NULL
,
NULL
,
GUC_REPORT
|
GUC_NO_SHOW_ALL
|
GUC_NO_RESET_ALL
|
GUC_NOT_IN_SAMPLE
|
GUC_DISALLOW_IN_FILE
GUC_REPORT
|
GUC_NO_SHOW_ALL
|
GUC_NO_RESET_ALL
|
GUC_NOT_IN_SAMPLE
|
GUC_DISALLOW_IN_FILE
},
},
...
@@ -473,7 +473,7 @@ static struct config_bool ConfigureNamesBool[] =
...
@@ -473,7 +473,7 @@ static struct config_bool ConfigureNamesBool[] =
{
{
{
"silent_mode"
,
PGC_POSTMASTER
,
LOGGING_WHEN
,
{
"silent_mode"
,
PGC_POSTMASTER
,
LOGGING_WHEN
,
gettext_noop
(
"run the server silently"
),
gettext_noop
(
"run the server silently"
),
gettext_noop
(
"If this
option
is set, the server will automatically run in the "
gettext_noop
(
"If this
parameter
is set, the server will automatically run in the "
"background and any controlling terminals are dissociated."
)
"background and any controlling terminals are dissociated."
)
},
},
&
SilentMode
,
&
SilentMode
,
...
@@ -560,7 +560,7 @@ static struct config_bool ConfigureNamesBool[] =
...
@@ -560,7 +560,7 @@ static struct config_bool ConfigureNamesBool[] =
},
},
{
{
{
"debug_print_plan"
,
PGC_USERSET
,
LOGGING_WHAT
,
{
"debug_print_plan"
,
PGC_USERSET
,
LOGGING_WHAT
,
gettext_noop
(
"print execution plan to
the
server log"
),
gettext_noop
(
"print execution plan to server log"
),
NULL
NULL
},
},
&
Debug_print_plan
,
&
Debug_print_plan
,
...
@@ -760,7 +760,7 @@ static struct config_bool ConfigureNamesBool[] =
...
@@ -760,7 +760,7 @@ static struct config_bool ConfigureNamesBool[] =
gettext_noop
(
"encrypt passwords"
),
gettext_noop
(
"encrypt passwords"
),
gettext_noop
(
"When a password is specified in CREATE USER or "
gettext_noop
(
"When a password is specified in CREATE USER or "
"ALTER USER without writing either ENCRYPTED or UNENCRYPTED, "
"ALTER USER without writing either ENCRYPTED or UNENCRYPTED, "
"this
option
determines whether the password is to be encrypted."
)
"this
parameter
determines whether the password is to be encrypted."
)
},
},
&
Password_encryption
,
&
Password_encryption
,
true
,
NULL
,
NULL
true
,
NULL
,
NULL
...
@@ -890,7 +890,7 @@ static struct config_int ConfigureNamesInt[] =
...
@@ -890,7 +890,7 @@ static struct config_int ConfigureNamesInt[] =
{
"geqo_generations"
,
PGC_USERSET
,
QUERY_TUNING_GEQO
,
{
"geqo_generations"
,
PGC_USERSET
,
QUERY_TUNING_GEQO
,
gettext_noop
(
"GEQO: number of iterations in the algorithm"
),
gettext_noop
(
"GEQO: number of iterations in the algorithm"
),
gettext_noop
(
"The number must be a positive integer. If 0 is "
gettext_noop
(
"The number must be a positive integer. If 0 is "
"specified then effort * log2(poolsize) is used"
)
"specified then effort * log2(poolsize) is used
.
"
)
},
},
&
Geqo_generations
,
&
Geqo_generations
,
0
,
0
,
INT_MAX
,
NULL
,
NULL
0
,
0
,
INT_MAX
,
NULL
,
NULL
...
@@ -909,7 +909,7 @@ static struct config_int ConfigureNamesInt[] =
...
@@ -909,7 +909,7 @@ static struct config_int ConfigureNamesInt[] =
{
{
{
"syslog"
,
PGC_SIGHUP
,
LOGGING_SYSLOG
,
{
"syslog"
,
PGC_SIGHUP
,
LOGGING_SYSLOG
,
gettext_noop
(
"use syslog for logging"
),
gettext_noop
(
"use syslog for logging"
),
gettext_noop
(
"If this
option
is 1, messages go both to syslog "
gettext_noop
(
"If this
parameter
is 1, messages go both to syslog "
"and the standard output. A value of 2 sends output only to syslog. "
"and the standard output. A value of 2 sends output only to syslog. "
"(Some messages will still go to the standard output/error.) The "
"(Some messages will still go to the standard output/error.) The "
"default is 0, which means syslog is off."
)
"default is 0, which means syslog is off."
)
...
@@ -966,7 +966,7 @@ static struct config_int ConfigureNamesInt[] =
...
@@ -966,7 +966,7 @@ static struct config_int ConfigureNamesInt[] =
{
"unix_socket_permissions"
,
PGC_POSTMASTER
,
CONN_AUTH_SETTINGS
,
{
"unix_socket_permissions"
,
PGC_POSTMASTER
,
CONN_AUTH_SETTINGS
,
gettext_noop
(
"access permissions of the Unix-domain socket"
),
gettext_noop
(
"access permissions of the Unix-domain socket"
),
gettext_noop
(
"Unix-domain sockets use the usual Unix file system "
gettext_noop
(
"Unix-domain sockets use the usual Unix file system "
"permission set. The
option
value is expected to be an numeric mode "
"permission set. The
parameter
value is expected to be an numeric mode "
"specification in the form accepted by the chmod and umask system "
"specification in the form accepted by the chmod and umask system "
"calls. (To use the customary octal format the number must start with "
"calls. (To use the customary octal format the number must start with "
"a 0 (zero).)"
)
"a 0 (zero).)"
)
...
@@ -1094,7 +1094,7 @@ static struct config_int ConfigureNamesInt[] =
...
@@ -1094,7 +1094,7 @@ static struct config_int ConfigureNamesInt[] =
{
{
{
"checkpoint_segments"
,
PGC_SIGHUP
,
WAL_CHECKPOINTS
,
{
"checkpoint_segments"
,
PGC_SIGHUP
,
WAL_CHECKPOINTS
,
gettext_noop
(
"maximum distance between automatic WAL checkpoints"
),
gettext_noop
(
"maximum distance
in log segments
between automatic WAL checkpoints"
),
NULL
NULL
},
},
&
CheckPointSegments
,
&
CheckPointSegments
,
...
@@ -1114,7 +1114,7 @@ static struct config_int ConfigureNamesInt[] =
...
@@ -1114,7 +1114,7 @@ static struct config_int ConfigureNamesInt[] =
{
"checkpoint_warning"
,
PGC_SIGHUP
,
WAL_CHECKPOINTS
,
{
"checkpoint_warning"
,
PGC_SIGHUP
,
WAL_CHECKPOINTS
,
gettext_noop
(
"log if filling of checkpoint segments happens more "
gettext_noop
(
"log if filling of checkpoint segments happens more "
"frequently than this (in seconds)"
),
"frequently than this (in seconds)"
),
gettext_noop
(
"
Send a message to the server logs
if checkpoints "
gettext_noop
(
"
Write a message to the server log
if checkpoints "
"caused by the filling of checkpoint segment files happens more "
"caused by the filling of checkpoint segment files happens more "
"frequently than this number of seconds. Zero turns off the warning."
)
"frequently than this number of seconds. Zero turns off the warning."
)
},
},
...
@@ -1348,7 +1348,7 @@ static struct config_string ConfigureNamesString[] =
...
@@ -1348,7 +1348,7 @@ static struct config_string ConfigureNamesString[] =
{
"dynamic_library_path"
,
PGC_SUSET
,
CLIENT_CONN_OTHER
,
{
"dynamic_library_path"
,
PGC_SUSET
,
CLIENT_CONN_OTHER
,
gettext_noop
(
"path for dynamically loadable modules"
),
gettext_noop
(
"path for dynamically loadable modules"
),
gettext_noop
(
"If a dynamically loadable module needs to be opened and "
gettext_noop
(
"If a dynamically loadable module needs to be opened and "
"the specified name does not have a directory component (i.e. the "
"the specified name does not have a directory component (i.e.
,
the "
"name does not contain a slash), the system will search this path for "
"name does not contain a slash), the system will search this path for "
"the specified file."
)
"the specified file."
)
},
},
...
...
src/test/regress/expected/domain.out
View file @
7438af96
...
@@ -247,7 +247,7 @@ create table domcontest (col1 con);
...
@@ -247,7 +247,7 @@ create table domcontest (col1 con);
insert into domcontest values (1);
insert into domcontest values (1);
insert into domcontest values (2);
insert into domcontest values (2);
alter domain con add constraint t check (VALUE < 1); -- fails
alter domain con add constraint t check (VALUE < 1); -- fails
ERROR:
relation "domcontest" column "col1
" contains values that violate the new constraint
ERROR:
column "col1" of table "domcontest
" contains values that violate the new constraint
alter domain con add constraint t check (VALUE < 34);
alter domain con add constraint t check (VALUE < 34);
alter domain con add check (VALUE > 0);
alter domain con add check (VALUE > 0);
insert into domcontest values (-5); -- fails
insert into domcontest values (-5); -- fails
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment