pgsql: Include bison header files into implementation files

2024-08-02 Thread Peter Eisentraut
Include bison header files into implementation files Before Bison 3.4, the generated parser implementation files run afoul of -Wmissing-variable-declarations (in spite of commit ab61c40bfa2) because declarations for yylval and possibly yylloc are missing. The generated header files contain an ext

pgsql: pg_createsubscriber: Fix bogus error message

2024-08-02 Thread Alvaro Herrera
pg_createsubscriber: Fix bogus error message Also some desultory style improvement Branch -- REL_17_STABLE Details --- https://git.postgresql.org/pg/commitdiff/8c6ba6e6a834030c80d7e0d2fa28101e9e17a993 Modified Files -- src/bin/pg_basebackup/pg_createsubscriber.c | 6 +++--- 1

pgsql: pg_createsubscriber: Fix bogus error message

2024-08-02 Thread Alvaro Herrera
pg_createsubscriber: Fix bogus error message Also some desultory style improvement Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/3b2f668b785c9b7970d86e7f72a717751d1ddfc2 Modified Files -- src/bin/pg_basebackup/pg_createsubscriber.c | 6 +++--- 1 file c

pgsql: Fix NLS file reference in pg_createsubscriber

2024-08-02 Thread Alvaro Herrera
Fix NLS file reference in pg_createsubscriber pg_createsubscriber is referring to a non-existent message translation file, causing NLS to not work correctly. This command should use the same file as pg_basebackup. Author: Kyotaro Horiguchi Discussion: https://postgr.es/m/20240802.115717.1083441

pgsql: Fix NLS file reference in pg_createsubscriber

2024-08-02 Thread Alvaro Herrera
Fix NLS file reference in pg_createsubscriber pg_createsubscriber is referring to a non-existent message translation file, causing NLS to not work correctly. This command should use the same file as pg_basebackup. Author: Kyotaro Horiguchi Discussion: https://postgr.es/m/20240802.115717.1083441

pgsql: Implement pg_wal_replay_wait() stored procedure

2024-08-02 Thread Alexander Korotkov
Implement pg_wal_replay_wait() stored procedure pg_wal_replay_wait() is to be used on standby and specifies waiting for the specific WAL location to be replayed. This option is useful when the user makes some data changes on primary and needs a guarantee to see these changes are on standby. The

pgsql: Fix name of "Visual Studio" in documentation.

2024-08-02 Thread Noah Misch
Fix name of "Visual Studio" in documentation. Back-patch to v17, which introduced this. Aleksander Alekseev Discussion: https://postgr.es/m/caj7c6tm7ct0ejocqalsvyoxxnew4xcufebwj77gktwsqedy...@mail.gmail.com Branch -- REL_17_STABLE Details --- https://git.postgresql.org/pg/commitdiff/c

pgsql: Fix name of "Visual Studio" in documentation.

2024-08-02 Thread Noah Misch
Fix name of "Visual Studio" in documentation. Back-patch to v17, which introduced this. Aleksander Alekseev Discussion: https://postgr.es/m/caj7c6tm7ct0ejocqalsvyoxxnew4xcufebwj77gktwsqedy...@mail.gmail.com Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/3cffe794

pgsql: Small refactoring around ExecCreateTableAs().

2024-08-02 Thread Jeff Davis
Small refactoring around ExecCreateTableAs(). Since commit 4b74ebf726, the refresh logic is used to populate materialized views, so we can simplify the error message in ExecCreateTableAs(). Also, RefreshMatViewByOid() is moved to just after create_ctas_nodata() call to improve code readability.

pgsql: First-draft release notes for 16.4.

2024-08-02 Thread Tom Lane
First-draft release notes for 16.4. As usual, the release notes for other branches will be made by cutting these down, but put them up for community review first. Branch -- REL_16_STABLE Details --- https://git.postgresql.org/pg/commitdiff/ee219ee8c40d88e7a0ef52c3c1b76c90bbd0d164 Modifi