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
9cfd800a
Commit
9cfd800a
authored
Feb 24, 2012
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some enumeration commas, for consistency
parent
173e29aa
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
15 additions
and
15 deletions
+15
-15
src/backend/access/gist/gistbuild.c
src/backend/access/gist/gistbuild.c
+1
-1
src/backend/commands/async.c
src/backend/commands/async.c
+1
-1
src/backend/commands/tablecmds.c
src/backend/commands/tablecmds.c
+1
-1
src/backend/libpq/hba.c
src/backend/libpq/hba.c
+3
-3
src/backend/utils/adt/float.c
src/backend/utils/adt/float.c
+1
-1
src/backend/utils/adt/numeric.c
src/backend/utils/adt/numeric.c
+1
-1
src/backend/utils/misc/guc.c
src/backend/utils/misc/guc.c
+2
-2
src/bin/pg_basebackup/pg_basebackup.c
src/bin/pg_basebackup/pg_basebackup.c
+1
-1
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dump.c
+1
-1
src/bin/pg_dump/pg_restore.c
src/bin/pg_dump/pg_restore.c
+1
-1
src/test/regress/expected/numeric.out
src/test/regress/expected/numeric.out
+2
-2
No files found.
src/backend/access/gist/gistbuild.c
View file @
9cfd800a
...
@@ -248,7 +248,7 @@ gistValidateBufferingOption(char *value)
...
@@ -248,7 +248,7 @@ gistValidateBufferingOption(char *value)
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_PARAMETER_VALUE
),
(
errcode
(
ERRCODE_INVALID_PARAMETER_VALUE
),
errmsg
(
"invalid value for
\"
buffering
\"
option"
),
errmsg
(
"invalid value for
\"
buffering
\"
option"
),
errdetail
(
"Valid values are
\"
on
\"
,
\"
off
\"
and
\"
auto
\"
."
)));
errdetail
(
"Valid values are
\"
on
\"
,
\"
off
\"
,
and
\"
auto
\"
."
)));
}
}
}
}
...
...
src/backend/commands/async.c
View file @
9cfd800a
...
@@ -739,7 +739,7 @@ AtPrepare_Notify(void)
...
@@ -739,7 +739,7 @@ AtPrepare_Notify(void)
if
(
pendingActions
||
pendingNotifies
)
if
(
pendingActions
||
pendingNotifies
)
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_FEATURE_NOT_SUPPORTED
),
(
errcode
(
ERRCODE_FEATURE_NOT_SUPPORTED
),
errmsg
(
"cannot PREPARE a transaction that has executed LISTEN, UNLISTEN or NOTIFY"
)));
errmsg
(
"cannot PREPARE a transaction that has executed LISTEN, UNLISTEN
,
or NOTIFY"
)));
}
}
/*
/*
...
...
src/backend/commands/tablecmds.c
View file @
9cfd800a
...
@@ -2115,7 +2115,7 @@ renameatt_check(Oid myrelid, Form_pg_class classform, bool recursing)
...
@@ -2115,7 +2115,7 @@ renameatt_check(Oid myrelid, Form_pg_class classform, bool recursing)
relkind
!=
RELKIND_FOREIGN_TABLE
)
relkind
!=
RELKIND_FOREIGN_TABLE
)
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_WRONG_OBJECT_TYPE
),
(
errcode
(
ERRCODE_WRONG_OBJECT_TYPE
),
errmsg
(
"
\"
%s
\"
is not a table, view, composite type, index or foreign table"
,
errmsg
(
"
\"
%s
\"
is not a table, view, composite type, index
,
or foreign table"
,
NameStr
(
classform
->
relname
))));
NameStr
(
classform
->
relname
))));
/*
/*
...
...
src/backend/libpq/hba.c
View file @
9cfd800a
...
@@ -1391,7 +1391,7 @@ parse_hba_auth_opt(char *name, char *val, HbaLine *hbaline, int line_num)
...
@@ -1391,7 +1391,7 @@ parse_hba_auth_opt(char *name, char *val, HbaLine *hbaline, int line_num)
hbaline
->
auth_method
!=
uaGSS
&&
hbaline
->
auth_method
!=
uaGSS
&&
hbaline
->
auth_method
!=
uaSSPI
&&
hbaline
->
auth_method
!=
uaSSPI
&&
hbaline
->
auth_method
!=
uaCert
)
hbaline
->
auth_method
!=
uaCert
)
INVALID_AUTH_OPTION
(
"map"
,
gettext_noop
(
"ident, peer, krb5, gssapi, sspi and cert"
));
INVALID_AUTH_OPTION
(
"map"
,
gettext_noop
(
"ident, peer, krb5, gssapi, sspi
,
and cert"
));
hbaline
->
usermap
=
pstrdup
(
val
);
hbaline
->
usermap
=
pstrdup
(
val
);
}
}
else
if
(
strcmp
(
name
,
"clientcert"
)
==
0
)
else
if
(
strcmp
(
name
,
"clientcert"
)
==
0
)
...
@@ -1510,7 +1510,7 @@ parse_hba_auth_opt(char *name, char *val, HbaLine *hbaline, int line_num)
...
@@ -1510,7 +1510,7 @@ parse_hba_auth_opt(char *name, char *val, HbaLine *hbaline, int line_num)
if
(
hbaline
->
auth_method
!=
uaKrb5
&&
if
(
hbaline
->
auth_method
!=
uaKrb5
&&
hbaline
->
auth_method
!=
uaGSS
&&
hbaline
->
auth_method
!=
uaGSS
&&
hbaline
->
auth_method
!=
uaSSPI
)
hbaline
->
auth_method
!=
uaSSPI
)
INVALID_AUTH_OPTION
(
"krb_realm"
,
gettext_noop
(
"krb5, gssapi and sspi"
));
INVALID_AUTH_OPTION
(
"krb_realm"
,
gettext_noop
(
"krb5, gssapi
,
and sspi"
));
hbaline
->
krb_realm
=
pstrdup
(
val
);
hbaline
->
krb_realm
=
pstrdup
(
val
);
}
}
else
if
(
strcmp
(
name
,
"include_realm"
)
==
0
)
else
if
(
strcmp
(
name
,
"include_realm"
)
==
0
)
...
@@ -1518,7 +1518,7 @@ parse_hba_auth_opt(char *name, char *val, HbaLine *hbaline, int line_num)
...
@@ -1518,7 +1518,7 @@ parse_hba_auth_opt(char *name, char *val, HbaLine *hbaline, int line_num)
if
(
hbaline
->
auth_method
!=
uaKrb5
&&
if
(
hbaline
->
auth_method
!=
uaKrb5
&&
hbaline
->
auth_method
!=
uaGSS
&&
hbaline
->
auth_method
!=
uaGSS
&&
hbaline
->
auth_method
!=
uaSSPI
)
hbaline
->
auth_method
!=
uaSSPI
)
INVALID_AUTH_OPTION
(
"include_realm"
,
gettext_noop
(
"krb5, gssapi and sspi"
));
INVALID_AUTH_OPTION
(
"include_realm"
,
gettext_noop
(
"krb5, gssapi
,
and sspi"
));
if
(
strcmp
(
val
,
"1"
)
==
0
)
if
(
strcmp
(
val
,
"1"
)
==
0
)
hbaline
->
include_realm
=
true
;
hbaline
->
include_realm
=
true
;
else
else
...
...
src/backend/utils/adt/float.c
View file @
9cfd800a
...
@@ -2750,7 +2750,7 @@ width_bucket_float8(PG_FUNCTION_ARGS)
...
@@ -2750,7 +2750,7 @@ width_bucket_float8(PG_FUNCTION_ARGS)
if
(
isnan
(
operand
)
||
isnan
(
bound1
)
||
isnan
(
bound2
))
if
(
isnan
(
operand
)
||
isnan
(
bound1
)
||
isnan
(
bound2
))
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION
),
(
errcode
(
ERRCODE_INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION
),
errmsg
(
"operand, lower bound and upper bound cannot be NaN"
)));
errmsg
(
"operand, lower bound
,
and upper bound cannot be NaN"
)));
/* Note that we allow "operand" to be infinite */
/* Note that we allow "operand" to be infinite */
if
(
isinf
(
bound1
)
||
isinf
(
bound2
))
if
(
isinf
(
bound1
)
||
isinf
(
bound2
))
...
...
src/backend/utils/adt/numeric.c
View file @
9cfd800a
...
@@ -1223,7 +1223,7 @@ width_bucket_numeric(PG_FUNCTION_ARGS)
...
@@ -1223,7 +1223,7 @@ width_bucket_numeric(PG_FUNCTION_ARGS)
NUMERIC_IS_NAN
(
bound2
))
NUMERIC_IS_NAN
(
bound2
))
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION
),
(
errcode
(
ERRCODE_INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION
),
errmsg
(
"operand, lower bound and upper bound cannot be NaN"
)));
errmsg
(
"operand, lower bound
,
and upper bound cannot be NaN"
)));
init_var
(
&
result_var
);
init_var
(
&
result_var
);
init_var
(
&
count_var
);
init_var
(
&
count_var
);
...
...
src/backend/utils/misc/guc.c
View file @
9cfd800a
...
@@ -2240,7 +2240,7 @@ static struct config_int ConfigureNamesInt[] =
...
@@ -2240,7 +2240,7 @@ static struct config_int ConfigureNamesInt[] =
},
},
{
{
{
"autovacuum_analyze_threshold"
,
PGC_SIGHUP
,
AUTOVACUUM
,
{
"autovacuum_analyze_threshold"
,
PGC_SIGHUP
,
AUTOVACUUM
,
gettext_noop
(
"Minimum number of tuple inserts, updates or deletes prior to analyze."
),
gettext_noop
(
"Minimum number of tuple inserts, updates
,
or deletes prior to analyze."
),
NULL
NULL
},
},
&
autovacuum_anl_thresh
,
&
autovacuum_anl_thresh
,
...
@@ -2494,7 +2494,7 @@ static struct config_real ConfigureNamesReal[] =
...
@@ -2494,7 +2494,7 @@ static struct config_real ConfigureNamesReal[] =
},
},
{
{
{
"autovacuum_analyze_scale_factor"
,
PGC_SIGHUP
,
AUTOVACUUM
,
{
"autovacuum_analyze_scale_factor"
,
PGC_SIGHUP
,
AUTOVACUUM
,
gettext_noop
(
"Number of tuple inserts, updates or deletes prior to analyze as a fraction of reltuples."
),
gettext_noop
(
"Number of tuple inserts, updates
,
or deletes prior to analyze as a fraction of reltuples."
),
NULL
NULL
},
},
&
autovacuum_anl_scale
,
&
autovacuum_anl_scale
,
...
...
src/bin/pg_basebackup/pg_basebackup.c
View file @
9cfd800a
...
@@ -1245,7 +1245,7 @@ main(int argc, char **argv)
...
@@ -1245,7 +1245,7 @@ main(int argc, char **argv)
streamwal
=
true
;
streamwal
=
true
;
else
else
{
{
fprintf
(
stderr
,
_
(
"%s: invalid xlog option
\"
%s
\"
, must be empty,
\"
fetch
\"
or
\"
stream
\"\n
"
),
fprintf
(
stderr
,
_
(
"%s: invalid xlog option
\"
%s
\"
, must be empty,
\"
fetch
\"
,
or
\"
stream
\"\n
"
),
progname
,
optarg
);
progname
,
optarg
);
exit
(
1
);
exit
(
1
);
}
}
...
...
src/bin/pg_dump/pg_dump.c
View file @
9cfd800a
...
@@ -817,7 +817,7 @@ help(const char *progname)
...
@@ -817,7 +817,7 @@ help(const char *progname)
printf
(
_
(
" --no-tablespaces do not dump tablespace assignments
\n
"
));
printf
(
_
(
" --no-tablespaces do not dump tablespace assignments
\n
"
));
printf
(
_
(
" --no-unlogged-table-data do not dump unlogged table data
\n
"
));
printf
(
_
(
" --no-unlogged-table-data do not dump unlogged table data
\n
"
));
printf
(
_
(
" --quote-all-identifiers quote all identifiers, even if not key words
\n
"
));
printf
(
_
(
" --quote-all-identifiers quote all identifiers, even if not key words
\n
"
));
printf
(
_
(
" --section=SECTION dump named section (pre-data, data or post-data)
\n
"
));
printf
(
_
(
" --section=SECTION dump named section (pre-data, data
,
or post-data)
\n
"
));
printf
(
_
(
" --serializable-deferrable wait until the dump can run without anomalies
\n
"
));
printf
(
_
(
" --serializable-deferrable wait until the dump can run without anomalies
\n
"
));
printf
(
_
(
" --use-set-session-authorization
\n
"
printf
(
_
(
" --use-set-session-authorization
\n
"
" use SET SESSION AUTHORIZATION commands instead of
\n
"
" use SET SESSION AUTHORIZATION commands instead of
\n
"
...
...
src/bin/pg_dump/pg_restore.c
View file @
9cfd800a
...
@@ -463,7 +463,7 @@ usage(const char *progname)
...
@@ -463,7 +463,7 @@ usage(const char *progname)
" created
\n
"
));
" created
\n
"
));
printf
(
_
(
" --no-security-labels do not restore security labels
\n
"
));
printf
(
_
(
" --no-security-labels do not restore security labels
\n
"
));
printf
(
_
(
" --no-tablespaces do not restore tablespace assignments
\n
"
));
printf
(
_
(
" --no-tablespaces do not restore tablespace assignments
\n
"
));
printf
(
_
(
" --section=SECTION restore named section (pre-data, data or post-data)
\n
"
));
printf
(
_
(
" --section=SECTION restore named section (pre-data, data
,
or post-data)
\n
"
));
printf
(
_
(
" --use-set-session-authorization
\n
"
printf
(
_
(
" --use-set-session-authorization
\n
"
" use SET SESSION AUTHORIZATION commands instead of
\n
"
" use SET SESSION AUTHORIZATION commands instead of
\n
"
" ALTER OWNER commands to set ownership
\n
"
));
" ALTER OWNER commands to set ownership
\n
"
));
...
...
src/test/regress/expected/numeric.out
View file @
9cfd800a
...
@@ -746,9 +746,9 @@ ERROR: count must be greater than zero
...
@@ -746,9 +746,9 @@ ERROR: count must be greater than zero
SELECT width_bucket(3.5::float8, 3.0::float8, 3.0::float8, 888);
SELECT width_bucket(3.5::float8, 3.0::float8, 3.0::float8, 888);
ERROR: lower bound cannot equal upper bound
ERROR: lower bound cannot equal upper bound
SELECT width_bucket('NaN', 3.0, 4.0, 888);
SELECT width_bucket('NaN', 3.0, 4.0, 888);
ERROR: operand, lower bound and upper bound cannot be NaN
ERROR: operand, lower bound
,
and upper bound cannot be NaN
SELECT width_bucket(0::float8, 'NaN', 4.0::float8, 888);
SELECT width_bucket(0::float8, 'NaN', 4.0::float8, 888);
ERROR: operand, lower bound and upper bound cannot be NaN
ERROR: operand, lower bound
,
and upper bound cannot be NaN
-- normal operation
-- normal operation
CREATE TABLE width_bucket_test (operand_num numeric, operand_f8 float8);
CREATE TABLE width_bucket_test (operand_num numeric, operand_f8 float8);
COPY width_bucket_test (operand_num) FROM stdin;
COPY width_bucket_test (operand_num) FROM stdin;
...
...
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