pgsql: doc: Note that CREATE MATERIALIZED VIEW restricts search_path.

2024-09-27 Thread Nathan Bossart
doc: Note that CREATE MATERIALIZED VIEW restricts search_path. Since v17, CREATE MATERIALIZED VIEW has set search_path to "pg_catalog, pg_temp" while running the query. The docs for the other commands that restrict search_path mention it, but the page for CREATE MATERIALIZED VIEW does not. Fix t

pgsql: doc: Note that CREATE MATERIALIZED VIEW restricts search_path.

2024-09-27 Thread Nathan Bossart
doc: Note that CREATE MATERIALIZED VIEW restricts search_path. Since v17, CREATE MATERIALIZED VIEW has set search_path to "pg_catalog, pg_temp" while running the query. The docs for the other commands that restrict search_path mention it, but the page for CREATE MATERIALIZED VIEW does not. Fix t

Re: pgsql: Implement pg_wal_replay_wait() stored procedure

2024-09-27 Thread Alexander Korotkov
On Fri, Sep 27, 2024 at 7:57 AM Michael Paquier wrote: > On Fri, Sep 27, 2024 at 01:35:23PM +0900, Michael Paquier wrote: > > I would suggest to keep things simple and have one single function > > rather than introduce two more pg_proc entries with slight differences > > in their error reporting,

pgsql: Recalculate where-needed data accurately after a join removal.

2024-09-27 Thread Tom Lane
Recalculate where-needed data accurately after a join removal. Up to now, remove_rel_from_query() has done a pretty shoddy job of updating our where-needed bitmaps (per-Var attr_needed and per-PlaceHolderVar ph_needed relid sets). It removed direct mentions of the to-be-removed baserel and outer

pgsql: pg_verifybackup: Verify tar-format backups.

2024-09-27 Thread Robert Haas
pg_verifybackup: Verify tar-format backups. This also works for compressed tar-format backups. However, -n must be used, because we use pg_waldump to verify WAL, and it doesn't yet know how to verify WAL that is stored inside of a tarfile. Amul Sul, reviewed by Sravan Kumar and by me, and revised

pgsql: Reindent pg_verifybackup.c.

2024-09-27 Thread Robert Haas
Reindent pg_verifybackup.c. Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/7f7474a8e4002ac9fd4979cc7b16b50b70b70c28 Modified Files -- src/bin/pg_verifybackup/pg_verifybackup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

pgsql: Avoid 037_invalid_database.pl hang under debug_discard_caches.

2024-09-27 Thread Noah Misch
Avoid 037_invalid_database.pl hang under debug_discard_caches. Back-patch to v12 (all supported versions). Branch -- REL_13_STABLE Details --- https://git.postgresql.org/pg/commitdiff/118dfd12138fe1eb57c0720d1d67bd17500eca31 Modified Files -- src/test/recovery/t/037_invalid_

pgsql: Avoid 037_invalid_database.pl hang under debug_discard_caches.

2024-09-27 Thread Noah Misch
Avoid 037_invalid_database.pl hang under debug_discard_caches. Back-patch to v12 (all supported versions). Branch -- REL_16_STABLE Details --- https://git.postgresql.org/pg/commitdiff/0a709c456fc97b6d5452fe2117afc9a4c3b09da9 Modified Files -- src/test/recovery/t/037_invalid_

pgsql: Avoid 037_invalid_database.pl hang under debug_discard_caches.

2024-09-27 Thread Noah Misch
Avoid 037_invalid_database.pl hang under debug_discard_caches. Back-patch to v12 (all supported versions). Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/c1ff2d8bc5be55e302731a16aaff563b7f03ed7c Modified Files -- src/test/recovery/t/037_invalid_databas

pgsql: Avoid 037_invalid_database.pl hang under debug_discard_caches.

2024-09-27 Thread Noah Misch
Avoid 037_invalid_database.pl hang under debug_discard_caches. Back-patch to v12 (all supported versions). Branch -- REL_17_STABLE Details --- https://git.postgresql.org/pg/commitdiff/4aad471688993d3f6cfb8afa8b3af52b2fbdc7a3 Modified Files -- src/test/recovery/t/037_invalid_

pgsql: Avoid 037_invalid_database.pl hang under debug_discard_caches.

2024-09-27 Thread Noah Misch
Avoid 037_invalid_database.pl hang under debug_discard_caches. Back-patch to v12 (all supported versions). Branch -- REL_15_STABLE Details --- https://git.postgresql.org/pg/commitdiff/7f90b727422bde6308fd22b7fb0aef48255fd6db Modified Files -- src/test/recovery/t/037_invalid_

pgsql: Avoid 037_invalid_database.pl hang under debug_discard_caches.

2024-09-27 Thread Noah Misch
Avoid 037_invalid_database.pl hang under debug_discard_caches. Back-patch to v12 (all supported versions). Branch -- REL_12_STABLE Details --- https://git.postgresql.org/pg/commitdiff/91e5add02ba98ab3d46db6d3b457d6fd084f1ae3 Modified Files -- src/test/recovery/t/037_invalid_

pgsql: Avoid 037_invalid_database.pl hang under debug_discard_caches.

2024-09-27 Thread Noah Misch
Avoid 037_invalid_database.pl hang under debug_discard_caches. Back-patch to v12 (all supported versions). Branch -- REL_14_STABLE Details --- https://git.postgresql.org/pg/commitdiff/0c827fbdb81ad873921c3fae4d973151d8a00785 Modified Files -- src/test/recovery/t/037_invalid_