pgsql: Use the properly transformed RangeVar for expandTableLikeClause(

2020-09-13 Thread Tom Lane
Use the properly transformed RangeVar for expandTableLikeClause(). transformCreateStmt() adjusts the transformed statement's RangeVar to specify the target schema explicitly, for the express reason of making sure that auxiliary statements derived by parse transformation operate on the right table.

pgsql: Use the properly transformed RangeVar for expandTableLikeClause(

2020-09-13 Thread Tom Lane
Use the properly transformed RangeVar for expandTableLikeClause(). transformCreateStmt() adjusts the transformed statement's RangeVar to specify the target schema explicitly, for the express reason of making sure that auxiliary statements derived by parse transformation operate on the right table.

pgsql: Use the properly transformed RangeVar for expandTableLikeClause(

2020-09-13 Thread Tom Lane
Use the properly transformed RangeVar for expandTableLikeClause(). transformCreateStmt() adjusts the transformed statement's RangeVar to specify the target schema explicitly, for the express reason of making sure that auxiliary statements derived by parse transformation operate on the right table.

pgsql: Use the properly transformed RangeVar for expandTableLikeClause(

2020-09-13 Thread Tom Lane
Use the properly transformed RangeVar for expandTableLikeClause(). transformCreateStmt() adjusts the transformed statement's RangeVar to specify the target schema explicitly, for the express reason of making sure that auxiliary statements derived by parse transformation operate on the right table.

pgsql: Use the properly transformed RangeVar for expandTableLikeClause(

2020-09-13 Thread Tom Lane
Use the properly transformed RangeVar for expandTableLikeClause(). transformCreateStmt() adjusts the transformed statement's RangeVar to specify the target schema explicitly, for the express reason of making sure that auxiliary statements derived by parse transformation operate on the right table.

pgsql: Use the properly transformed RangeVar for expandTableLikeClause(

2020-09-13 Thread Tom Lane
Use the properly transformed RangeVar for expandTableLikeClause(). transformCreateStmt() adjusts the transformed statement's RangeVar to specify the target schema explicitly, for the express reason of making sure that auxiliary statements derived by parse transformation operate on the right table.

pgsql: Use the properly transformed RangeVar for expandTableLikeClause(

2020-09-13 Thread Tom Lane
Use the properly transformed RangeVar for expandTableLikeClause(). transformCreateStmt() adjusts the transformed statement's RangeVar to specify the target schema explicitly, for the express reason of making sure that auxiliary statements derived by parse transformation operate on the right table.

pgsql: Avoid useless allocations for information of dumpable objects in

2020-09-13 Thread Michael Paquier
Avoid useless allocations for information of dumpable objects in pg_dump/ If there are no objects of a certain type, there is no need to do an allocation for a set of DumpableObject items. The previous coding did an allocation of 1 byte instead as per the fallback of pg_malloc() in the event of a

pgsql: Message fixes and style improvements

2020-09-13 Thread Peter Eisentraut
Message fixes and style improvements Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/3e0242b24c3c059870890644b69d6c4491a45651 Modified Files -- src/backend/access/heap/vacuumlazy.c | 12 ++--- src/backend/access/transam/xlog.c

pgsql: Message fixes and style improvements

2020-09-13 Thread Peter Eisentraut
Message fixes and style improvements Branch -- REL_13_STABLE Details --- https://git.postgresql.org/pg/commitdiff/b1b53f15bbac106e241b14ae1bc13f2708fe74c8 Modified Files -- src/backend/access/heap/vacuumlazy.c | 12 ++--- src/backend/access/transam/xlog.c

pgsql: Make index_set_state_flags() transactional

2020-09-13 Thread Michael Paquier
Make index_set_state_flags() transactional 3c84046 is the original commit that introduced index_set_state_flags(), where the presence of SnapshotNow made necessary the use of an in-place update. SnapshotNow has been removed in 813fb03, so there is no actual reasons to not make this operation tran

pgsql: Fix typos.

2020-09-13 Thread Fujii Masao
Fix typos. Author: Naoki Nakamichi Discussion: https://postgr.es/m/[email protected] Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/95233011a08fcfa872f4505b295bc501b2844a08 Modified Files -- src/backend/storage/ipc/procar

pgsql: Fix race in test of pg_switch_wal().

2020-09-13 Thread Noah Misch
Fix race in test of pg_switch_wal(). The test failed when something added WAL between pg_switch_wal() and pg_current_wal_lsn(), seen on buildfarm members hornet and sungazer. Fix v10, v9.6 and v9.5 by making this code mirror its v13+ counterpart. v12 and v11 lack a counterpart. Branch -- REL9

pgsql: Fix race in test of pg_switch_wal().

2020-09-13 Thread Noah Misch
Fix race in test of pg_switch_wal(). The test failed when something added WAL between pg_switch_wal() and pg_current_wal_lsn(), seen on buildfarm members hornet and sungazer. Fix v10, v9.6 and v9.5 by making this code mirror its v13+ counterpart. v12 and v11 lack a counterpart. Branch -- REL_

pgsql: Fix race in test of pg_switch_wal().

2020-09-13 Thread Noah Misch
Fix race in test of pg_switch_wal(). The test failed when something added WAL between pg_switch_wal() and pg_current_wal_lsn(), seen on buildfarm members hornet and sungazer. Fix v10, v9.6 and v9.5 by making this code mirror its v13+ counterpart. v12 and v11 lack a counterpart. Branch -- REL9

pgsql: Fix interpolation in test name.

2020-09-13 Thread Noah Misch
Fix interpolation in test name. A pre-commit review had reported the problem, but the fix reached only v10 and earlier. Back-patch to v11. Discussion: https://postgr.es/m/[email protected] Branch -- REL_13_STABLE Details --- https://git.postgr

pgsql: Fix interpolation in test name.

2020-09-13 Thread Noah Misch
Fix interpolation in test name. A pre-commit review had reported the problem, but the fix reached only v10 and earlier. Back-patch to v11. Discussion: https://postgr.es/m/[email protected] Branch -- REL_11_STABLE Details --- https://git.postgr

pgsql: Fix interpolation in test name.

2020-09-13 Thread Noah Misch
Fix interpolation in test name. A pre-commit review had reported the problem, but the fix reached only v10 and earlier. Back-patch to v11. Discussion: https://postgr.es/m/[email protected] Branch -- master Details --- https://git.postgresql.or

pgsql: Fix interpolation in test name.

2020-09-13 Thread Noah Misch
Fix interpolation in test name. A pre-commit review had reported the problem, but the fix reached only v10 and earlier. Back-patch to v11. Discussion: https://postgr.es/m/[email protected] Branch -- REL_12_STABLE Details --- https://git.postgr