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
ff810b49
Commit
ff810b49
authored
May 15, 2014
by
Heikki Linnakangas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Misc message style and doc fixes.
Euler Taveira
parent
a82a1747
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
26 deletions
+25
-26
doc/src/sgml/ref/pg_recvlogical.sgml
doc/src/sgml/ref/pg_recvlogical.sgml
+6
-7
src/backend/replication/libpqwalreceiver/libpqwalreceiver.c
src/backend/replication/libpqwalreceiver/libpqwalreceiver.c
+1
-1
src/bin/pg_basebackup/pg_basebackup.c
src/bin/pg_basebackup/pg_basebackup.c
+3
-3
src/bin/pg_basebackup/pg_recvlogical.c
src/bin/pg_basebackup/pg_recvlogical.c
+13
-13
src/bin/psql/command.c
src/bin/psql/command.c
+2
-2
No files found.
doc/src/sgml/ref/pg_recvlogical.sgml
View file @
ff810b49
...
@@ -226,13 +226,12 @@ PostgreSQL documentation
...
@@ -226,13 +226,12 @@ PostgreSQL documentation
<term><option>--fsync-interval=<replaceable>interval_seconds</replaceable></option></term>
<term><option>--fsync-interval=<replaceable>interval_seconds</replaceable></option></term>
<listitem>
<listitem>
<para>
<para>
How often should
How often should <application>pg_recvlogical</application> issue sync
<link linkend="app-pgreceivexlog"><application>pg_receivexlog</application></link>
commands to ensure the <parameter>--outputfile</parameter> is safely
issue sync commands to ensure the <parameter>--outputfile</parameter>
flushed to disk without being asked by the server to do so. Specifying
is safely flushed to disk without being asked by the server to do
an interval of <literal>0</literal> disables issuing fsyncs altogether,
so. Specifying an interval of <literal>0</literal> disables issuing
while still reporting progress the server. In this case, data may be
fsyncs altogether, while still reporting progress the server.
lost in the event of a crash.
In this case, data may be lost in the event of a crash.
</para>
</para>
</listitem>
</listitem>
</varlistentry>
</varlistentry>
...
...
src/backend/replication/libpqwalreceiver/libpqwalreceiver.c
View file @
ff810b49
...
@@ -139,7 +139,7 @@ libpqrcv_identify_system(TimeLineID *primary_tli)
...
@@ -139,7 +139,7 @@ libpqrcv_identify_system(TimeLineID *primary_tli)
PQclear
(
res
);
PQclear
(
res
);
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errmsg
(
"invalid response from primary server"
),
(
errmsg
(
"invalid response from primary server"
),
errdetail
(
"Could not identify system:
G
ot %d rows and %d fields, expected %d rows and %d or more fields."
,
errdetail
(
"Could not identify system:
g
ot %d rows and %d fields, expected %d rows and %d or more fields."
,
ntuples
,
nfields
,
3
,
1
)));
ntuples
,
nfields
,
3
,
1
)));
}
}
primary_sysid
=
PQgetvalue
(
res
,
0
,
0
);
primary_sysid
=
PQgetvalue
(
res
,
0
,
0
);
...
...
src/bin/pg_basebackup/pg_basebackup.c
View file @
ff810b49
...
@@ -187,14 +187,14 @@ tablespace_list_append(const char *arg)
...
@@ -187,14 +187,14 @@ tablespace_list_append(const char *arg)
*/
*/
if
(
!
is_absolute_path
(
cell
->
old_dir
))
if
(
!
is_absolute_path
(
cell
->
old_dir
))
{
{
fprintf
(
stderr
,
_
(
"%s: old directory
not absolute
in tablespace mapping: %s
\n
"
),
fprintf
(
stderr
,
_
(
"%s: old directory
is not an absolute path
in tablespace mapping: %s
\n
"
),
progname
,
cell
->
old_dir
);
progname
,
cell
->
old_dir
);
exit
(
1
);
exit
(
1
);
}
}
if
(
!
is_absolute_path
(
cell
->
new_dir
))
if
(
!
is_absolute_path
(
cell
->
new_dir
))
{
{
fprintf
(
stderr
,
_
(
"%s: new directory
not absolute
in tablespace mapping: %s
\n
"
),
fprintf
(
stderr
,
_
(
"%s: new directory
is not an absolute path
in tablespace mapping: %s
\n
"
),
progname
,
cell
->
new_dir
);
progname
,
cell
->
new_dir
);
exit
(
1
);
exit
(
1
);
}
}
...
@@ -676,7 +676,7 @@ parse_max_rate(char *src)
...
@@ -676,7 +676,7 @@ parse_max_rate(char *src)
if
(
*
after_num
!=
'\0'
)
if
(
*
after_num
!=
'\0'
)
{
{
fprintf
(
stderr
,
fprintf
(
stderr
,
_
(
"%s: invalid --max-rate unit
s
:
\"
%s
\"\n
"
),
_
(
"%s: invalid --max-rate unit:
\"
%s
\"\n
"
),
progname
,
suffix
);
progname
,
suffix
);
exit
(
1
);
exit
(
1
);
}
}
...
...
src/bin/pg_basebackup/pg_recvlogical.c
View file @
ff810b49
...
@@ -80,14 +80,14 @@ usage(void)
...
@@ -80,14 +80,14 @@ usage(void)
printf
(
_
(
" -w, --no-password never prompt for password
\n
"
));
printf
(
_
(
" -w, --no-password never prompt for password
\n
"
));
printf
(
_
(
" -W, --password force password prompt (should happen automatically)
\n
"
));
printf
(
_
(
" -W, --password force password prompt (should happen automatically)
\n
"
));
printf
(
_
(
"
\n
Replication options:
\n
"
));
printf
(
_
(
"
\n
Replication options:
\n
"
));
printf
(
_
(
" -F --fsync-interval=
INTERVAL
\n
"
printf
(
_
(
" -F --fsync-interval=
SECS
\n
"
" frequency of syncs to the output file (
in seconds, defaults to 10)
\n
"
));
" frequency of syncs to the output file (
default: %d)
\n
"
),
(
fsync_interval
/
1000
));
printf
(
_
(
" -o, --option=NAME[=VALUE]
\n
"
printf
(
_
(
" -o, --option=NAME[=VALUE]
\n
"
" Specify option NAME with optional value VALUE, to be passed
\n
"
" Specify option NAME with optional value VALUE, to be passed
\n
"
" to the output plugin
\n
"
));
" to the output plugin
\n
"
));
printf
(
_
(
" -P, --plugin=PLUGIN use output plugin PLUGIN (default
s to test_decoding)
\n
"
)
);
printf
(
_
(
" -P, --plugin=PLUGIN use output plugin PLUGIN (default
: %s)
\n
"
),
plugin
);
printf
(
_
(
" -s, --status-interval=
INTERVAL
\n
"
printf
(
_
(
" -s, --status-interval=
SECS
\n
"
" time between status packets sent to server (
in seconds, defaults to 10)
\n
"
));
" time between status packets sent to server (
default: %d)
\n
"
),
(
standby_message_timeout
/
1000
));
printf
(
_
(
" -S, --slot=SLOT use existing replication slot SLOT instead of starting a new one
\n
"
));
printf
(
_
(
" -S, --slot=SLOT use existing replication slot SLOT instead of starting a new one
\n
"
));
printf
(
_
(
" -I, --startpos=PTR Where in an existing slot should the streaming start
\n
"
));
printf
(
_
(
" -I, --startpos=PTR Where in an existing slot should the streaming start
\n
"
));
printf
(
_
(
"
\n
Action to be performed:
\n
"
));
printf
(
_
(
"
\n
Action to be performed:
\n
"
));
...
@@ -253,7 +253,7 @@ StreamLog(void)
...
@@ -253,7 +253,7 @@ StreamLog(void)
res
=
PQexec
(
conn
,
query
->
data
);
res
=
PQexec
(
conn
,
query
->
data
);
if
(
PQresultStatus
(
res
)
!=
PGRES_COPY_BOTH
)
if
(
PQresultStatus
(
res
)
!=
PGRES_COPY_BOTH
)
{
{
fprintf
(
stderr
,
_
(
"%s: could not send replication command
\"
%s
\"
: %s
\n
"
),
fprintf
(
stderr
,
_
(
"%s: could not send replication command
\"
%s
\"
: %s"
),
progname
,
query
->
data
,
PQresultErrorMessage
(
res
));
progname
,
query
->
data
,
PQresultErrorMessage
(
res
));
PQclear
(
res
);
PQclear
(
res
);
goto
error
;
goto
error
;
...
@@ -263,7 +263,7 @@ StreamLog(void)
...
@@ -263,7 +263,7 @@ StreamLog(void)
if
(
verbose
)
if
(
verbose
)
fprintf
(
stderr
,
fprintf
(
stderr
,
_
(
"%s:
initiated streaming
\n
"
),
_
(
"%s:
streaming initiated
\n
"
),
progname
);
progname
);
while
(
!
time_to_abort
)
while
(
!
time_to_abort
)
...
@@ -817,7 +817,7 @@ main(int argc, char **argv)
...
@@ -817,7 +817,7 @@ main(int argc, char **argv)
if
(
do_drop_slot
&&
(
do_create_slot
||
do_start_slot
))
if
(
do_drop_slot
&&
(
do_create_slot
||
do_start_slot
))
{
{
fprintf
(
stderr
,
_
(
"%s:
--stop cannot be combined with --init or --start
\n
"
),
progname
);
fprintf
(
stderr
,
_
(
"%s:
cannot use --init or --start together with --stop
\n
"
),
progname
);
fprintf
(
stderr
,
_
(
"Try
\"
%s --help
\"
for more information.
\n
"
),
fprintf
(
stderr
,
_
(
"Try
\"
%s --help
\"
for more information.
\n
"
),
progname
);
progname
);
exit
(
1
);
exit
(
1
);
...
@@ -825,7 +825,7 @@ main(int argc, char **argv)
...
@@ -825,7 +825,7 @@ main(int argc, char **argv)
if
(
startpos
&&
(
do_create_slot
||
do_drop_slot
))
if
(
startpos
&&
(
do_create_slot
||
do_drop_slot
))
{
{
fprintf
(
stderr
,
_
(
"%s:
--startpos cannot be combined with --init or --stop
\n
"
),
progname
);
fprintf
(
stderr
,
_
(
"%s:
cannot use --init or --stop together with --startpos
\n
"
),
progname
);
fprintf
(
stderr
,
_
(
"Try
\"
%s --help
\"
for more information.
\n
"
),
fprintf
(
stderr
,
_
(
"Try
\"
%s --help
\"
for more information.
\n
"
),
progname
);
progname
);
exit
(
1
);
exit
(
1
);
...
@@ -895,7 +895,7 @@ main(int argc, char **argv)
...
@@ -895,7 +895,7 @@ main(int argc, char **argv)
if
(
PQntuples
(
res
)
!=
0
||
PQnfields
(
res
)
!=
0
)
if
(
PQntuples
(
res
)
!=
0
||
PQnfields
(
res
)
!=
0
)
{
{
fprintf
(
stderr
,
fprintf
(
stderr
,
_
(
"%s: could not stop logical rep: got %d rows and %d fields, expected %d rows and %d fields
\n
"
),
_
(
"%s: could not stop logical rep
lication
: got %d rows and %d fields, expected %d rows and %d fields
\n
"
),
progname
,
PQntuples
(
res
),
PQnfields
(
res
),
0
,
0
);
progname
,
PQntuples
(
res
),
PQnfields
(
res
),
0
,
0
);
disconnect_and_exit
(
1
);
disconnect_and_exit
(
1
);
}
}
...
@@ -930,7 +930,7 @@ main(int argc, char **argv)
...
@@ -930,7 +930,7 @@ main(int argc, char **argv)
if
(
PQntuples
(
res
)
!=
1
||
PQnfields
(
res
)
!=
4
)
if
(
PQntuples
(
res
)
!=
1
||
PQnfields
(
res
)
!=
4
)
{
{
fprintf
(
stderr
,
fprintf
(
stderr
,
_
(
"%s: could not init logical rep: got %d rows and %d fields, expected %d rows and %d fields
\n
"
),
_
(
"%s: could not init logical rep
lication
: got %d rows and %d fields, expected %d rows and %d fields
\n
"
),
progname
,
PQntuples
(
res
),
PQnfields
(
res
),
1
,
4
);
progname
,
PQntuples
(
res
),
PQnfields
(
res
),
1
,
4
);
disconnect_and_exit
(
1
);
disconnect_and_exit
(
1
);
}
}
...
@@ -965,14 +965,14 @@ main(int argc, char **argv)
...
@@ -965,14 +965,14 @@ main(int argc, char **argv)
}
}
else
if
(
noloop
)
else
if
(
noloop
)
{
{
fprintf
(
stderr
,
_
(
"%s: disconnected
.
\n
"
),
progname
);
fprintf
(
stderr
,
_
(
"%s: disconnected
\n
"
),
progname
);
exit
(
1
);
exit
(
1
);
}
}
else
else
{
{
fprintf
(
stderr
,
fprintf
(
stderr
,
/* translator: check source for value for %d */
/* translator: check source for value for %d */
_
(
"%s: disconnected
. Waiting %d seconds to try again.
\n
"
),
_
(
"%s: disconnected
; waiting %d seconds to try again
\n
"
),
progname
,
RECONNECT_SLEEP_TIME
);
progname
,
RECONNECT_SLEEP_TIME
);
pg_usleep
(
RECONNECT_SLEEP_TIME
*
1000000
);
pg_usleep
(
RECONNECT_SLEEP_TIME
*
1000000
);
}
}
...
...
src/bin/psql/command.c
View file @
ff810b49
...
@@ -2552,7 +2552,7 @@ printPsetInfo(const char *param, struct printQueryOpt *popt)
...
@@ -2552,7 +2552,7 @@ printPsetInfo(const char *param, struct printQueryOpt *popt)
else
if
(
popt
->
topt
.
pager
==
2
)
else
if
(
popt
->
topt
.
pager
==
2
)
printf
(
_
(
"Pager (%s) is always used.
\n
"
),
param
);
printf
(
_
(
"Pager (%s) is always used.
\n
"
),
param
);
else
else
printf
(
_
(
"Pager
(%s) usage
is off.
\n
"
),
param
);
printf
(
_
(
"Pager
usage (%s)
is off.
\n
"
),
param
);
}
}
/* show record separator for unaligned text */
/* show record separator for unaligned text */
...
@@ -2576,7 +2576,7 @@ printPsetInfo(const char *param, struct printQueryOpt *popt)
...
@@ -2576,7 +2576,7 @@ printPsetInfo(const char *param, struct printQueryOpt *popt)
else
if
(
strcmp
(
param
,
"T"
)
==
0
||
strcmp
(
param
,
"tableattr"
)
==
0
)
else
if
(
strcmp
(
param
,
"T"
)
==
0
||
strcmp
(
param
,
"tableattr"
)
==
0
)
{
{
if
(
popt
->
topt
.
tableAttr
)
if
(
popt
->
topt
.
tableAttr
)
printf
(
_
(
"Table attribute
(%s) is
\"
%s
\"
.
\n
"
),
param
,
printf
(
_
(
"Table attribute
s (%s) are
\"
%s
\"
.
\n
"
),
param
,
popt
->
topt
.
tableAttr
);
popt
->
topt
.
tableAttr
);
else
else
printf
(
_
(
"Table attributes (%s) unset.
\n
"
),
param
);
printf
(
_
(
"Table attributes (%s) unset.
\n
"
),
param
);
...
...
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