pgsql: Add commit 76aa615943 to .git-blame-ignore-revs

2025-01-31 Thread Amit Langote
Add commit 76aa615943 to .git-blame-ignore-revs Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/79e872fedb4d2f73baa0a80ba572480774edc61b Modified Files -- .git-blame-ignore-revs | 3 +++ 1 file changed, 3 insertions(+)

pgsql: Doc: add commentary about cowboy assignment of maintenance_work_

2025-01-31 Thread Tom Lane
Doc: add commentary about cowboy assignment of maintenance_work_mem. Whilst working on commit 041e8b95b I happened to notice that parallel_vacuum_main() assigns directly to the maintenance_work_mem GUC. This is definitely not per project conventions, so I tried to fix it to use SetConfigOption().

pgsql: Remove obsolete restriction on the range of log_rotation_size.

2025-01-31 Thread Tom Lane
Remove obsolete restriction on the range of log_rotation_size. When syslogger.c was first written, we didn't want to assume that all platforms have 64-bit ftello. But we've been assuming that since v13 (cf commit 799d22461), so let's use that in syslogger.c and allow log_rotation_size to range up

pgsql: Get rid of our dependency on type "long" for memory size calcula

2025-01-31 Thread Tom Lane
Get rid of our dependency on type "long" for memory size calculations. Consistently use "Size" (or size_t, or in some places int64 or double) as the type for variables holding memory allocation sizes. In most places variables' data types were fine already, but we had an ancient habit of computing

pgsql: require_auth: prepare for multiple SASL mechanisms

2025-01-31 Thread Daniel Gustafsson
require_auth: prepare for multiple SASL mechanisms Prior to this patch, the require_auth implementation assumed that the AuthenticationSASL protocol message was using SCRAM-SHA-256. In preparation for future SASL mechanisms, like OAUTHBEARER, split the implementation into two tiers: the first chec

pgsql: Move PG_MAX_AUTH_TOKEN_LENGTH to libpq/auth.h

2025-01-31 Thread Daniel Gustafsson
Move PG_MAX_AUTH_TOKEN_LENGTH to libpq/auth.h Future SASL mechanism, like OAUTHBEARER, will use this as a limit on token messages coming from the client, so promote it to the header file to make it available. This patch is extracted from a larger body of work aimed at adding support for OAUTHBEAR

pgsql: doc: Fix pg_buffercache_evict() title

2025-01-31 Thread Daniel Gustafsson
doc: Fix pg_buffercache_evict() title Use rather than in the to be consistent with how other functions in this module are documented. Also suffix the function name with () for consistency. Backpatch to v17 where pg_buffercache_evict was introduced. Author: Ashutosh Bapat Reviewed-by: Daniel

pgsql: doc: Fix pg_buffercache_evict() title

2025-01-31 Thread Daniel Gustafsson
doc: Fix pg_buffercache_evict() title Use rather than in the to be consistent with how other functions in this module are documented. Also suffix the function name with () for consistency. Backpatch to v17 where pg_buffercache_evict was introduced. Author: Ashutosh Bapat Reviewed-by: Daniel