pgsql: Remove unnecessary smgropen() calls

2024-02-12 Thread Heikki Linnakangas
Remove unnecessary smgropen() calls Now that RelationCreateStorage() returns the SmgrRelation (since commit 5c1560606dc), use that. Author: Japin Li Discussion: https://www.postgresql.org/message-id/me3p282mb316600fa62f6605477f26f6ab6...@me3p282mb3166.ausp282.prod.outlook.com Branch -- mast

pgsql: Remove "#ifdef WIN32" guards from src/port/win32*.c

2024-02-12 Thread Heikki Linnakangas
Remove "#ifdef WIN32" guards from src/port/win32*.c These files are only compiled on Windows, and most of them didn't have "#ifdef WIN32" guards. Remove them from the few that did, for consistency. Author: Tristan Partin Discussion: https://www.postgresql.org/message-id/cxgm9rysxa2j.1dbo4mrxgz..

pgsql: Read WAL directly from WAL buffers.

2024-02-12 Thread Jeff Davis
Read WAL directly from WAL buffers. If available, read directly from WAL buffers, avoiding the need to go through the filesystem. Only for physical replication for now, but can be expanded to other callers. In preparation for replicating unflushed WAL data. Author: Bharath Rupireddy Discussion:

pgsql: Doc: Improve upgrade for streaming replication section.

2024-02-12 Thread Amit Kapila
Doc: Improve upgrade for streaming replication section. Currently the documentation of upgrade for streaming replication section says that logical replication slots will be copied, but the logical replication slots are copied only if the old primary is version 17.0 or later. Author: Shubham Khann

pgsql: Use correct format placeholder for timeline IDs

2024-02-12 Thread Peter Eisentraut
Use correct format placeholder for timeline IDs Should be %u rather than %d. Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/e4b88c5fa343ba03e299aa643f0c44120793ddfd Modified Files -- src/backend/postmaster/walsummarizer.c | 6 +++--- 1 file changed, 3 i