pgsql: Fix corner case failure of new standby to follow new primary.

2021-06-09 Thread Robert Haas
Fix corner case failure of new standby to follow new primary. This only happens if (1) the new standby has no WAL available locally, (2) the new standby is starting from the old timeline, (3) the promotion happened in the WAL segment from which the new standby is starting, (4) the timeline history

pgsql: Fix corner case failure of new standby to follow new primary.

2021-06-09 Thread Robert Haas
Fix corner case failure of new standby to follow new primary. This only happens if (1) the new standby has no WAL available locally, (2) the new standby is starting from the old timeline, (3) the promotion happened in the WAL segment from which the new standby is starting, (4) the timeline history

pgsql: Fix corner case failure of new standby to follow new primary.

2021-06-09 Thread Robert Haas
Fix corner case failure of new standby to follow new primary. This only happens if (1) the new standby has no WAL available locally, (2) the new standby is starting from the old timeline, (3) the promotion happened in the WAL segment from which the new standby is starting, (4) the timeline history

pgsql: Fix corner case failure of new standby to follow new primary.

2021-06-09 Thread Robert Haas
Fix corner case failure of new standby to follow new primary. This only happens if (1) the new standby has no WAL available locally, (2) the new standby is starting from the old timeline, (3) the promotion happened in the WAL segment from which the new standby is starting, (4) the timeline history

pgsql: Fix corner case failure of new standby to follow new primary.

2021-06-09 Thread Robert Haas
Fix corner case failure of new standby to follow new primary. This only happens if (1) the new standby has no WAL available locally, (2) the new standby is starting from the old timeline, (3) the promotion happened in the WAL segment from which the new standby is starting, (4) the timeline history

pgsql: Fix corner case failure of new standby to follow new primary.

2021-06-09 Thread Robert Haas
Fix corner case failure of new standby to follow new primary. This only happens if (1) the new standby has no WAL available locally, (2) the new standby is starting from the old timeline, (3) the promotion happened in the WAL segment from which the new standby is starting, (4) the timeline history

pgsql: Back-port a few PostgresNode.pm methods.

2021-06-09 Thread Robert Haas
Back-port a few PostgresNode.pm methods. The 'lsn' and 'wait_for_catchup' methods only exist in v10 and higher, but are needed in order to support a test planned test case for a bug that exists all the way back to v9.6. To minimize cross-branch differences in the test case, back-port these methods

pgsql: Allow PostgresNode.pm's backup method to accept backup_options.

2021-06-09 Thread Robert Haas
Allow PostgresNode.pm's backup method to accept backup_options. Partial back-port of commit 081876d75ea15c3bd2ee5ba64a794fd8ea46d794. A test case for a pending bug fix needs this capability, but the code on 9.6 is significantly different, so I'm only back-patching this change as far as v10. We'll

pgsql: Allow PostgresNode.pm's backup method to accept backup_options.

2021-06-09 Thread Robert Haas
Allow PostgresNode.pm's backup method to accept backup_options. Partial back-port of commit 081876d75ea15c3bd2ee5ba64a794fd8ea46d794. A test case for a pending bug fix needs this capability, but the code on 9.6 is significantly different, so I'm only back-patching this change as far as v10. We'll

pgsql: Allow PostgresNode.pm's backup method to accept backup_options.

2021-06-09 Thread Robert Haas
Allow PostgresNode.pm's backup method to accept backup_options. Partial back-port of commit 081876d75ea15c3bd2ee5ba64a794fd8ea46d794. A test case for a pending bug fix needs this capability, but the code on 9.6 is significantly different, so I'm only back-patching this change as far as v10. We'll

pgsql: Allow PostgresNode.pm's backup method to accept backup_options.

2021-06-09 Thread Robert Haas
Allow PostgresNode.pm's backup method to accept backup_options. Partial back-port of commit 081876d75ea15c3bd2ee5ba64a794fd8ea46d794. A test case for a pending bug fix needs this capability, but the code on 9.6 is significantly different, so I'm only back-patching this change as far as v10. We'll

pgsql: Fix inconsistencies in psql --help=commands

2021-06-09 Thread Michael Paquier
Fix inconsistencies in psql --help=commands The set of subcommands supported by \dAp, \do and \dy was described incorrectly in psql's --help. The documentation was already consistent with the code. Reported-by: inoas, from IRC Author: Matthijs van der Vleuten Reviewed-by: Neil Chen Discussion:

pgsql: Fix inconsistencies in psql --help=commands

2021-06-09 Thread Michael Paquier
Fix inconsistencies in psql --help=commands The set of subcommands supported by \dAp, \do and \dy was described incorrectly in psql's --help. The documentation was already consistent with the code. Reported-by: inoas, from IRC Author: Matthijs van der Vleuten Reviewed-by: Neil Chen Discussion:

pgsql: Fix inconsistencies in psql --help=commands

2021-06-09 Thread Michael Paquier
Fix inconsistencies in psql --help=commands The set of subcommands supported by \dAp, \do and \dy was described incorrectly in psql's --help. The documentation was already consistent with the code. Reported-by: inoas, from IRC Author: Matthijs van der Vleuten Reviewed-by: Neil Chen Discussion:

pgsql: Fix inconsistencies in psql --help=commands

2021-06-09 Thread Michael Paquier
Fix inconsistencies in psql --help=commands The set of subcommands supported by \dAp, \do and \dy was described incorrectly in psql's --help. The documentation was already consistent with the code. Reported-by: inoas, from IRC Author: Matthijs van der Vleuten Reviewed-by: Neil Chen Discussion:

pgsql: Fix inconsistencies in psql --help=commands

2021-06-09 Thread Michael Paquier
Fix inconsistencies in psql --help=commands The set of subcommands supported by \dAp, \do and \dy was described incorrectly in psql's --help. The documentation was already consistent with the code. Reported-by: inoas, from IRC Author: Matthijs van der Vleuten Reviewed-by: Neil Chen Discussion:

pgsql: Fix inconsistencies in psql --help=commands

2021-06-09 Thread Michael Paquier
Fix inconsistencies in psql --help=commands The set of subcommands supported by \dAp, \do and \dy was described incorrectly in psql's --help. The documentation was already consistent with the code. Reported-by: inoas, from IRC Author: Matthijs van der Vleuten Reviewed-by: Neil Chen Discussion: