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
2b443063
Commit
2b443063
authored
Jul 02, 2012
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Assorted message style improvements
parent
41f4a0ab
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
26 additions
and
26 deletions
+26
-26
src/backend/access/spgist/spgutils.c
src/backend/access/spgist/spgutils.c
+1
-1
src/backend/access/transam/xlog.c
src/backend/access/transam/xlog.c
+1
-1
src/backend/utils/adt/rangetypes.c
src/backend/utils/adt/rangetypes.c
+1
-1
src/backend/utils/misc/guc.c
src/backend/utils/misc/guc.c
+1
-1
src/backend/utils/time/snapmgr.c
src/backend/utils/time/snapmgr.c
+2
-2
src/bin/pg_basebackup/streamutil.c
src/bin/pg_basebackup/streamutil.c
+1
-1
src/bin/pg_ctl/pg_ctl.c
src/bin/pg_ctl/pg_ctl.c
+1
-1
src/bin/psql/common.c
src/bin/psql/common.c
+3
-3
src/bin/psql/variables.c
src/bin/psql/variables.c
+1
-1
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/fe-connect.c
+8
-8
src/interfaces/libpq/win32.c
src/interfaces/libpq/win32.c
+1
-1
src/pl/plpgsql/src/gram.y
src/pl/plpgsql/src/gram.y
+2
-2
src/test/regress/expected/plpgsql.out
src/test/regress/expected/plpgsql.out
+3
-3
No files found.
src/backend/access/spgist/spgutils.c
View file @
2b443063
...
...
@@ -661,7 +661,7 @@ spgFormInnerTuple(SpGistState *state, bool hasPrefix, Datum prefix,
if
(
size
>
SPGIST_PAGE_CAPACITY
-
sizeof
(
ItemIdData
))
ereport
(
ERROR
,
(
errcode
(
ERRCODE_PROGRAM_LIMIT_EXCEEDED
),
errmsg
(
"SPGiST inner tuple size %lu exceeds maximum %lu"
,
errmsg
(
"SP
-
GiST inner tuple size %lu exceeds maximum %lu"
,
(
unsigned
long
)
size
,
(
unsigned
long
)
(
SPGIST_PAGE_CAPACITY
-
sizeof
(
ItemIdData
))),
errhint
(
"Values larger than a buffer page cannot be indexed."
)));
...
...
src/backend/access/transam/xlog.c
View file @
2b443063
...
...
@@ -6355,7 +6355,7 @@ StartupXLOG(void)
{
if
(
dbstate_at_startup
!=
DB_IN_ARCHIVE_RECOVERY
)
ereport
(
FATAL
,
(
errmsg
(
"backup_label contains
inconsistent data
with control file"
),
(
errmsg
(
"backup_label contains
data inconsistent
with control file"
),
errhint
(
"This means that the backup is corrupted and you will "
"have to use another backup for recovery."
)));
ControlFile
->
backupEndPoint
=
ControlFile
->
minRecoveryPoint
;
...
...
src/backend/utils/adt/rangetypes.c
View file @
2b443063
...
...
@@ -1834,7 +1834,7 @@ range_parse_flags(const char *flags_str)
ereport
(
ERROR
,
(
errcode
(
ERRCODE_SYNTAX_ERROR
),
errmsg
(
"invalid range bound flags"
),
errhint
(
"Valid values are
'[]', '[)', '(]', and '()'
."
)));
errhint
(
"Valid values are
\"
[]
\"
,
\"
[)
\"
,
\"
(]
\"
, and
\"
()
\"
."
)));
switch
(
flags_str
[
0
])
{
...
...
src/backend/utils/misc/guc.c
View file @
2b443063
...
...
@@ -1722,7 +1722,7 @@ static struct config_int ConfigureNamesInt[] =
{
{
"temp_file_limit"
,
PGC_SUSET
,
RESOURCES_DISK
,
gettext_noop
(
"Limits the total size of all temp files used by each session."
),
gettext_noop
(
"Limits the total size of all temp
orary
files used by each session."
),
gettext_noop
(
"-1 means no limit."
),
GUC_UNIT_KB
},
...
...
src/backend/utils/time/snapmgr.c
View file @
2b443063
...
...
@@ -1011,7 +1011,7 @@ ImportSnapshot(const char *idstr)
if
(
strspn
(
idstr
,
"0123456789ABCDEF-"
)
!=
strlen
(
idstr
))
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_PARAMETER_VALUE
),
errmsg
(
"invalid snapshot identifier
\"
%s
\"
"
,
idstr
)));
errmsg
(
"invalid snapshot identifier
:
\"
%s
\"
"
,
idstr
)));
/* OK, read the file */
snprintf
(
path
,
MAXPGPATH
,
SNAPSHOT_EXPORT_DIR
"/%s"
,
idstr
);
...
...
@@ -1020,7 +1020,7 @@ ImportSnapshot(const char *idstr)
if
(
!
f
)
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_PARAMETER_VALUE
),
errmsg
(
"invalid snapshot identifier
\"
%s
\"
"
,
idstr
)));
errmsg
(
"invalid snapshot identifier
:
\"
%s
\"
"
,
idstr
)));
/* get the size of the file so that we know how much memory we need */
if
(
fstat
(
fileno
(
f
),
&
stat_buf
))
...
...
src/bin/pg_basebackup/streamutil.c
View file @
2b443063
...
...
@@ -154,7 +154,7 @@ GetConnection(void)
if
(
PQstatus
(
tmpconn
)
!=
CONNECTION_OK
)
{
fprintf
(
stderr
,
_
(
"%s: could not connect to server: %s
\n
"
),
fprintf
(
stderr
,
_
(
"%s: could not connect to server: %s"
),
progname
,
PQerrorMessage
(
tmpconn
));
return
NULL
;
}
...
...
src/bin/pg_ctl/pg_ctl.c
View file @
2b443063
...
...
@@ -1935,7 +1935,7 @@ adjust_data_dir(void)
fd
=
popen
(
cmd
,
"r"
);
if
(
fd
==
NULL
||
fgets
(
filename
,
sizeof
(
filename
),
fd
)
==
NULL
)
{
write_stderr
(
_
(
"%s: could not determine the data directory using
\"
%s
\"\n
"
),
progname
,
cmd
);
write_stderr
(
_
(
"%s: could not determine the data directory using
command
\"
%s
\"\n
"
),
progname
,
cmd
);
exit
(
1
);
}
pclose
(
fd
);
...
...
src/bin/psql/common.c
View file @
2b443063
...
...
@@ -462,7 +462,7 @@ AcceptResult(const PGresult *result)
default:
OK
=
false
;
psql_error
(
"unexpected PQresultStatus
(%d)
"
,
psql_error
(
"unexpected PQresultStatus
: %d
\n
"
,
PQresultStatus
(
result
));
break
;
}
...
...
@@ -686,7 +686,7 @@ ProcessResult(PGresult **results)
default:
/* AcceptResult() should have caught anything else. */
is_copy
=
false
;
psql_error
(
"unexpected PQresultStatus
(%d)
"
,
result_status
);
psql_error
(
"unexpected PQresultStatus
: %d
\n
"
,
result_status
);
break
;
}
...
...
@@ -816,7 +816,7 @@ PrintQueryResults(PGresult *results)
default:
success
=
false
;
psql_error
(
"unexpected PQresultStatus
(%d)
"
,
psql_error
(
"unexpected PQresultStatus
: %d
\n
"
,
PQresultStatus
(
results
));
break
;
}
...
...
src/bin/psql/variables.c
View file @
2b443063
...
...
@@ -112,7 +112,7 @@ ParseVariableBool(const char *value)
else
{
/* NULL is treated as false, so a non-matching value is 'true' */
psql_error
(
"unrecognized
boolean value; assuming
\"
on
\"
.
\n
"
);
psql_error
(
"unrecognized
Boolean value; assuming
\"
on
\"
\n
"
);
return
true
;
}
/* suppress compiler warning */
...
...
src/interfaces/libpq/fe-connect.c
View file @
2b443063
...
...
@@ -4651,14 +4651,14 @@ conninfo_uri_parse_options(PQconninfoOption *options, const char *uri,
if
(
!*
p
)
{
printfPQExpBuffer
(
errorMessage
,
libpq_gettext
(
"end of string reached when looking for matching
']' in IPv6 host address in URI: %s
\n
"
),
libpq_gettext
(
"end of string reached when looking for matching
\"
]
\"
in IPv6 host address in URI:
\"
%s
\"
\n
"
),
uri
);
goto
cleanup
;
}
if
(
p
==
host
)
{
printfPQExpBuffer
(
errorMessage
,
libpq_gettext
(
"IPv6 host address may not be empty in URI:
%s
\n
"
),
libpq_gettext
(
"IPv6 host address may not be empty in URI:
\"
%s
\"
\n
"
),
uri
);
goto
cleanup
;
}
...
...
@@ -4673,7 +4673,7 @@ conninfo_uri_parse_options(PQconninfoOption *options, const char *uri,
if
(
*
p
&&
*
p
!=
':'
&&
*
p
!=
'/'
&&
*
p
!=
'?'
)
{
printfPQExpBuffer
(
errorMessage
,
libpq_gettext
(
"unexpected
'%c' at position %d in URI (expecting ':' or '/'): %s
\n
"
),
libpq_gettext
(
"unexpected
character
\"
%c
\"
at position %d in URI (expected
\"
:
\"
or
\"
/
\"
):
\"
%s
\"
\n
"
),
*
p
,
(
int
)
(
p
-
buf
+
1
),
uri
);
goto
cleanup
;
}
...
...
@@ -4787,7 +4787,7 @@ conninfo_uri_parse_params(char *params,
if
(
value
!=
NULL
)
{
printfPQExpBuffer
(
errorMessage
,
libpq_gettext
(
"extra key/value separator
'=' in URI query parameter: %s
\n
"
),
libpq_gettext
(
"extra key/value separator
\"
=
\"
in URI query parameter:
\"
%s
\"
\n
"
),
params
);
return
false
;
}
...
...
@@ -4807,7 +4807,7 @@ conninfo_uri_parse_params(char *params,
if
(
value
==
NULL
)
{
printfPQExpBuffer
(
errorMessage
,
libpq_gettext
(
"missing key/value separator
'=' in URI query parameter: %s
\n
"
),
libpq_gettext
(
"missing key/value separator
\"
=
\"
in URI query parameter:
\"
%s
\"
\n
"
),
params
);
return
false
;
}
...
...
@@ -4878,7 +4878,7 @@ conninfo_uri_parse_params(char *params,
printfPQExpBuffer
(
errorMessage
,
libpq_gettext
(
"invalid URI query parameter
\"
%s
\"\n
"
),
"invalid URI query parameter
:
\"
%s
\"\n
"
),
keyword
);
return
false
;
}
...
...
@@ -4943,7 +4943,7 @@ conninfo_uri_decode(const char *str, PQExpBuffer errorMessage)
if
(
!
(
get_hexdigit
(
*
q
++
,
&
hi
)
&&
get_hexdigit
(
*
q
++
,
&
lo
)))
{
printfPQExpBuffer
(
errorMessage
,
libpq_gettext
(
"invalid percent-encoded token:
%s
\n
"
),
libpq_gettext
(
"invalid percent-encoded token:
\"
%s
\"
\n
"
),
str
);
free
(
buf
);
return
NULL
;
...
...
@@ -4953,7 +4953,7 @@ conninfo_uri_decode(const char *str, PQExpBuffer errorMessage)
if
(
c
==
0
)
{
printfPQExpBuffer
(
errorMessage
,
libpq_gettext
(
"forbidden value %%00 in percent-encoded value:
%s
\n
"
),
libpq_gettext
(
"forbidden value %%00 in percent-encoded value:
\"
%s
\"
\n
"
),
str
);
free
(
buf
);
return
NULL
;
...
...
src/interfaces/libpq/win32.c
View file @
2b443063
...
...
@@ -319,7 +319,7 @@ winsock_strerror(int err, char *strerrbuf, size_t buflen)
}
if
(
!
success
)
sprintf
(
strerrbuf
,
libpq_gettext
(
"
Unknown socket error (0x%08X/%d)
"
),
err
,
err
);
sprintf
(
strerrbuf
,
libpq_gettext
(
"
unrecognized socket error: 0x%08X/%d
"
),
err
,
err
);
else
{
strerrbuf
[
buflen
-
1
]
=
'\0'
;
...
...
src/pl/plpgsql/src/gram.y
View file @
2b443063
...
...
@@ -3483,8 +3483,8 @@ read_cursor_args(PLpgSQL_var *cursor, int until, const char *expected)
if (argv[argpos] != NULL)
ereport(ERROR,
(errcode(ERRCODE_SYNTAX_ERROR),
errmsg("
duplicate value for cursor \"%s\" parameter \"%s\"
",
cursor->refname, row->fieldnames[argpos]
),
errmsg("
value for parameter \"%s\" of cursor \"%s\" specified more than once
",
row->fieldnames[argpos], cursor->refname
),
parser_errposition(arglocation)));
/*
...
...
src/test/regress/expected/plpgsql.out
View file @
2b443063
...
...
@@ -2347,7 +2347,7 @@ begin
open c1(param2 := 20, 21);
end
$$ language plpgsql;
ERROR:
duplicate value for cursor "c1" parameter "param2"
ERROR:
value for parameter "param2" of cursor "c1" specified more than once
LINE 5: open c1(param2 := 20, 21);
^
-- mixing named and positional: same as previous test, but param1 is duplicated
...
...
@@ -2358,7 +2358,7 @@ begin
open c1(20, param1 := 21);
end
$$ language plpgsql;
ERROR:
duplicate value for cursor "c1" parameter "param1"
ERROR:
value for parameter "param1" of cursor "c1" specified more than once
LINE 5: open c1(20, param1 := 21);
^
-- duplicate named parameter, should throw an error at parse time
...
...
@@ -2370,7 +2370,7 @@ begin
open c1 (p2 := 77, p2 := 42);
end
$$ language plpgsql;
ERROR:
duplicate value for cursor "c1" parameter "p2"
ERROR:
value for parameter "p2" of cursor "c1" specified more than once
LINE 6: open c1 (p2 := 77, p2 := 42);
^
-- not enough parameters, should throw an error at parse time
...
...
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