pgsql: Make our back branches build under -fkeep-inline-functions.

2023-01-20 Thread Tom Lane
Make our back branches build under -fkeep-inline-functions. Add "#ifndef FRONTEND" where necessary to make pg_waldump build on compilers that don't elide unused static-inline functions. This back-patches relevant parts of commit 3e9ca5260, fixing build breakage from dc7420c2c and back-patching of

pgsql: Make our back branches build under -fkeep-inline-functions.

2023-01-20 Thread Tom Lane
Make our back branches build under -fkeep-inline-functions. Add "#ifndef FRONTEND" where necessary to make pg_waldump build on compilers that don't elide unused static-inline functions. This back-patches relevant parts of commit 3e9ca5260, fixing build breakage from dc7420c2c and back-patching of

pgsql: Make our back branches build under -fkeep-inline-functions.

2023-01-20 Thread Tom Lane
Make our back branches build under -fkeep-inline-functions. Add "#ifndef FRONTEND" where necessary to make pg_waldump build on compilers that don't elide unused static-inline functions. This back-patches relevant parts of commit 3e9ca5260, fixing build breakage from dc7420c2c and back-patching of

pgsql: Make our back branches build under -fkeep-inline-functions.

2023-01-20 Thread Tom Lane
Make our back branches build under -fkeep-inline-functions. Add "#ifndef FRONTEND" where necessary to make pg_waldump build on compilers that don't elide unused static-inline functions. This back-patches relevant parts of commit 3e9ca5260, fixing build breakage from dc7420c2c and back-patching of

pgsql: Make our back branches build under -fkeep-inline-functions.

2023-01-20 Thread Tom Lane
Make our back branches build under -fkeep-inline-functions. Add "#ifndef FRONTEND" where necessary to make pg_waldump build on compilers that don't elide unused static-inline functions. This back-patches relevant parts of commit 3e9ca5260, fixing build breakage from dc7420c2c and back-patching of

pgsql: Describe each contrib module in its SGML section title

2023-01-20 Thread Alvaro Herrera
Describe each contrib module in its SGML section title The original titles only had the module name, which is not very useful when scanning the list. By adding a very brief description to each title, the table of contents becomes friendlier. Also amend the introduction in the "additional modules

pgsql: Update docs and error message for superuser_reserved_connections

2023-01-20 Thread Robert Haas
Update docs and error message for superuser_reserved_connections. Commit ea92368cd1da1e290f9ab8efb7f60cb7598fc310 made max_wal_senders a separate pool of backends from max_connections, but the documentation and error message for superuser_reserved_connections weren't updated at the time, and as a

pgsql: Rename ReservedBackends variable to SuperuserReservedConnections

2023-01-20 Thread Robert Haas
Rename ReservedBackends variable to SuperuserReservedConnections. This is in preparation for adding a new reserved_connections GUC, but aligning the GUC name with the variable name is also a good idea on general principle. Patch by Nathan Bossart. Reviewed by Tushar Ahuja and by me. Discussion:

pgsql: Add new GUC reserved_connections.

2023-01-20 Thread Robert Haas
Add new GUC reserved_connections. This provides a way to reserve connection slots for non-superusers. The slots reserved via the new GUC are available only to users who have the new predefined role pg_use_reserved_connections. superuser_reserved_connections remains as a final reserve in case reser

pgsql: Bump catversion for 6e2775e4d4e47775f0d933e4a93c148024a3bc63.

2023-01-20 Thread Robert Haas
Bump catversion for 6e2775e4d4e47775f0d933e4a93c148024a3bc63. It creates a new predefined role. Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/557890920dd03b5a7839e81deeb6099bd43f3b29 Modified Files -- src/include/catalog/catversion.h | 2 +- 1 file cha

pgsql: Move queryjumble.c code to src/backend/nodes/

2023-01-20 Thread Michael Paquier
Move queryjumble.c code to src/backend/nodes/ This will ease a follow-up move that will generate automatically this code. The C file is renamed, for consistency with the node-related files whose code are generated by gen_node_support.pl: - queryjumble.c -> queryjumblefuncs.c - utils/queryjumble.h

pgsql: Rework format of comments in headers for nodes

2023-01-20 Thread Michael Paquier
Rework format of comments in headers for nodes This is similar to 835d476, except that this one is to add node attributes related to query jumbling and avoid long lines in the headers and in the node structures changed by this commit. Reviewed-by: Peter Eisentraut Discussion: https://postgr.es/m/

pgsql: Zero initialize uses of instr_time about to trigger compiler war

2023-01-20 Thread Andres Freund
Zero initialize uses of instr_time about to trigger compiler warnings These are all not necessary from a correctness POV. However, in the near future instr_time will be simplified to an int64, at which point gcc would otherwise start to warn about the changed places. Reviewed-by: Tom Lane Discus

pgsql: instr_time: Represent time as an int64 on all platforms

2023-01-20 Thread Andres Freund
instr_time: Represent time as an int64 on all platforms Until now we used struct timespec for instr_time on all platforms but windows. Using struct timespec causes a fair bit of memory (struct timeval is 16 bytes) and runtime overhead (much more complicated additions). Instead we can convert the t