pgsql: doc: Describe calculation method of streaming start for pg_recei

2021-10-22 Thread Michael Paquier
doc: Describe calculation method of streaming start for pg_receivewal The documentation was imprecise about the starting LSN used for WAL streaming if nothing can be found in the local archive directory defined with the pg_receivewal command, so be more talkative on this matter. Extracted from a

pgsql: doc: Describe calculation method of streaming start for pg_recei

2021-10-22 Thread Michael Paquier
doc: Describe calculation method of streaming start for pg_receivewal The documentation was imprecise about the starting LSN used for WAL streaming if nothing can be found in the local archive directory defined with the pg_receivewal command, so be more talkative on this matter. Extracted from a

pgsql: doc: Describe calculation method of streaming start for pg_recei

2021-10-22 Thread Michael Paquier
doc: Describe calculation method of streaming start for pg_receivewal The documentation was imprecise about the starting LSN used for WAL streaming if nothing can be found in the local archive directory defined with the pg_receivewal command, so be more talkative on this matter. Extracted from a

pgsql: doc: Describe calculation method of streaming start for pg_recei

2021-10-22 Thread Michael Paquier
doc: Describe calculation method of streaming start for pg_receivewal The documentation was imprecise about the starting LSN used for WAL streaming if nothing can be found in the local archive directory defined with the pg_receivewal command, so be more talkative on this matter. Extracted from a

pgsql: doc: Describe calculation method of streaming start for pg_recei

2021-10-22 Thread Michael Paquier
doc: Describe calculation method of streaming start for pg_receivewal The documentation was imprecise about the starting LSN used for WAL streaming if nothing can be found in the local archive directory defined with the pg_receivewal command, so be more talkative on this matter. Extracted from a

pgsql: doc: Describe calculation method of streaming start for pg_recei

2021-10-22 Thread Michael Paquier
doc: Describe calculation method of streaming start for pg_receivewal The documentation was imprecise about the starting LSN used for WAL streaming if nothing can be found in the local archive directory defined with the pg_receivewal command, so be more talkative on this matter. Extracted from a

pgsql: In pg_dump, use simplehash.h to look up dumpable objects by OID.

2021-10-22 Thread Tom Lane
In pg_dump, use simplehash.h to look up dumpable objects by OID. Create a hash table that indexes dumpable objects by CatalogId (that is, catalog OID + object OID). Use this to replace the former catalogIdMap array, as well as various other single- catalog index arrays, and also the extension mem

pgsql: Fix frontend version of sh_error() in simplehash.h.

2021-10-22 Thread Tom Lane
Fix frontend version of sh_error() in simplehash.h. The code does not expect sh_error() to return, but the patch that made this header usable in frontend didn't get that memo. While here, plaster unlikely() on the tests that decide whether to invoke sh_error(), and add our standard copyright noti

pgsql: Fix frontend version of sh_error() in simplehash.h.

2021-10-22 Thread Tom Lane
Fix frontend version of sh_error() in simplehash.h. The code does not expect sh_error() to return, but the patch that made this header usable in frontend didn't get that memo. While here, plaster unlikely() on the tests that decide whether to invoke sh_error(), and add our standard copyright noti

pgsql: Fix frontend version of sh_error() in simplehash.h.

2021-10-22 Thread Tom Lane
Fix frontend version of sh_error() in simplehash.h. The code does not expect sh_error() to return, but the patch that made this header usable in frontend didn't get that memo. While here, plaster unlikely() on the tests that decide whether to invoke sh_error(), and add our standard copyright noti

pgsql: pg_dump: fix mis-dumping of non-global default privileges.

2021-10-22 Thread Tom Lane
pg_dump: fix mis-dumping of non-global default privileges. Non-global default privilege entries should be dumped as-is, not made relative to the default ACL for their object type. This would typically only matter if one had revoked some on-by-default privileges in a global entry, and then wanted t

pgsql: pg_dump: fix mis-dumping of non-global default privileges.

2021-10-22 Thread Tom Lane
pg_dump: fix mis-dumping of non-global default privileges. Non-global default privilege entries should be dumped as-is, not made relative to the default ACL for their object type. This would typically only matter if one had revoked some on-by-default privileges in a global entry, and then wanted t

pgsql: pg_dump: fix mis-dumping of non-global default privileges.

2021-10-22 Thread Tom Lane
pg_dump: fix mis-dumping of non-global default privileges. Non-global default privilege entries should be dumped as-is, not made relative to the default ACL for their object type. This would typically only matter if one had revoked some on-by-default privileges in a global entry, and then wanted t

pgsql: pg_dump: fix mis-dumping of non-global default privileges.

2021-10-22 Thread Tom Lane
pg_dump: fix mis-dumping of non-global default privileges. Non-global default privilege entries should be dumped as-is, not made relative to the default ACL for their object type. This would typically only matter if one had revoked some on-by-default privileges in a global entry, and then wanted t

pgsql: pg_dump: fix mis-dumping of non-global default privileges.

2021-10-22 Thread Tom Lane
pg_dump: fix mis-dumping of non-global default privileges. Non-global default privilege entries should be dumped as-is, not made relative to the default ACL for their object type. This would typically only matter if one had revoked some on-by-default privileges in a global entry, and then wanted t

pgsql: pg_dump: fix mis-dumping of non-global default privileges.

2021-10-22 Thread Tom Lane
pg_dump: fix mis-dumping of non-global default privileges. Non-global default privilege entries should be dumped as-is, not made relative to the default ACL for their object type. This would typically only matter if one had revoked some on-by-default privileges in a global entry, and then wanted t

pgsql: pg_dump: fix mis-dumping of non-global default privileges.

2021-10-22 Thread Tom Lane
pg_dump: fix mis-dumping of non-global default privileges. Non-global default privilege entries should be dumped as-is, not made relative to the default ACL for their object type. This would typically only matter if one had revoked some on-by-default privileges in a global entry, and then wanted t

pgsql: Add module build directory to the PATH for TAP tests

2021-10-22 Thread Andrew Dunstan
Add module build directory to the PATH for TAP tests For non-MSVC builds this is make's $(CURDIR), while for MSVC builds it is $topdir/$Config/$module. The directory is added as the second element in the PATH, so that the install location takes precedence, but the added PATH element takes preceden

pgsql: Add module build directory to the PATH for TAP tests

2021-10-22 Thread Andrew Dunstan
Add module build directory to the PATH for TAP tests For non-MSVC builds this is make's $(CURDIR), while for MSVC builds it is $topdir/$Config/$module. The directory is added as the second element in the PATH, so that the install location takes precedence, but the added PATH element takes preceden