was successfully archived, which may include recycling or removing the
original WAL file. If false is returned, the server will
keep the original WAL file and retry archiving later.
- <literal>file will contain just the file name of the WAL file to
- archive, while path contains the full path of the WAL
- file (including the file name).
+ <replaceable>file will contain just the file name of the WAL
+ file to archive, while path contains the full
+ path of the WAL file (including the file name).
If the archive function emits an ERROR or
FATAL, the archiver process aborts and gets restarted by
- the postmaster. If you are archiving via shell command, FATAL is emitted if
- the command is terminated by a signal (other than
- SIGTERM that is used as part of a server shutdown)
+ the postmaster. If you are archiving via shell command,
+ FATAL is emitted if the command is terminated by a signal
+ (other than SIGTERM
+ that is used as part of a server shutdown)
or an error by the shell with an exit status greater than 125 (such as
command not found). In such cases, the failure is not reported in
.
Connect to the server (it does not matter which database) as a user with
- rights to run pg_backup_start (superuser, or a user who has been granted
- EXECUTE on the function) and issue the command:
+ rights to run pg_backup_start (superuser,
+ or a user who has been granted EXECUTE on the
+ function) and issue the command:
SELECT pg_backup_start(label => 'label', fast => false);
On a standby, archive_mode must be always in order
for pg_backup_stop to wait.
Archiving of these files happens automatically since you have
- already configured archive_library. In most cases this
- happens quickly, but you are advised to monitor your archive
- system to ensure there are no delays.
- If the archive process has fallen behind
- because of failures of the archive library, it will keep retrying
+ already configured archive_library or
+ archive_command.
+ In most cases this happens quickly, but you are advised to monitor your
+ archive system to ensure there are no delays.
+ If the archive process has fallen behind because of failures of the
+ archive library or archive command, it will keep retrying
until the archive succeeds and the backup is complete.
If you wish to place a time limit on the execution of
pg_backup_stop, set an appropriate
basebackup_to_shell adds a custom basebackup target
called shell. This makes it possible to run
- <literal>pg_basebackup --target=shell> or, depending on how this
+ <command>pg_basebackup --target=shell> or, depending on how this
module is configured,
- <literal>pg_basebackup --target=shell:DETAIL_STRING, and cause
- a server command chosen by the server administrator to be executed for
- each tar archive generated by the backup process. The command will receive
+ <command>pg_basebackup --target=shell:DETAIL_STRING,
+ and cause a server command chosen by the server administrator to be executed
+ for each tar archive generated by the backup process. The command will receive
the contents of the archive via standard input.
with different column lists is not supported. So, changing the column
lists of the tables being subscribed could cause inconsistency of column
lists among publications, in which case ALTER PUBLICATION
- will be successful but later the WalSender on the publisher or the
+ will be successful but later the walsender on the publisher or the
subscriber may throw an error. In this scenario, the user needs to
recreate the subscription after adjusting the column list or drop the
problematic publication using
All WAL records required for the backup must contain sufficient full-page writes,
- which requires you to enable full_page_writes on the primary and
- not to use a tool in your archive_library to remove
- full-page writes from WAL files.
+ which requires you to enable full_page_writes on the primary.
and SQL object names in many (by no means all) contexts. For example,
at the start of a command, typing ins and pressing
TAB will fill in insert into . Then, typing a few
- characters of a table or schema name and pressing TAB will fill in the
- unfinished name, or offer a menu of possible completions when there's
- more than one. (Depending on the library in use, you may need to
- press TAB more than once to get a menu.)
+ characters of a table or schema name and pressing TAB
+ will fill in the unfinished name, or offer a menu of possible completions
+ when there's more than one. (Depending on the library in use, you may need to
+ press TAB more than once to get a menu.)
of
psql. This prevents tab completion,
use or recording of command line history, and editing of multi-line
commands. It is particularly useful when you need to copy-and-paste
- text that contains TAB characters.
+ text that contains TAB characters.