From 7ab1bc2939f32aa995bdb81eaac3bb28f908e980 Mon Sep 17 00:00:00 2001 From: Daniel Gustafsson Date: Thu, 2 Mar 2023 13:49:39 +0100 Subject: Fix outdated references to guc.c Commit 0a20ff54f split out the GUC variables from guc.c into a new file guc_tables.c. This updates comments referencing guc.c regarding variables which are now in guc_tables.c. Reviewed-by: Tom Lane Discussion: https://postgr.es/m/6B50C70C-8C1F-4F9A-A7C0-EEAFCC032406@yesql.se --- src/backend/commands/variable.c | 2 +- src/backend/libpq/be-secure-openssl.c | 3 ++- src/backend/storage/lmgr/predicate.c | 6 +++--- 3 files changed, 6 insertions(+), 5 deletions(-) (limited to 'src/backend') diff --git a/src/backend/commands/variable.c b/src/backend/commands/variable.c index bb0f5de4c2c..f0f2e076552 100644 --- a/src/backend/commands/variable.c +++ b/src/backend/commands/variable.c @@ -877,7 +877,7 @@ assign_session_authorization(const char *newval, void *extra) * a translation of "none" to InvalidOid. Otherwise this is much like * SET SESSION AUTHORIZATION. */ -extern char *role_string; /* in guc.c */ +extern char *role_string; /* in guc_tables.c */ bool check_role(char **newval, void **extra, GucSource source) diff --git a/src/backend/libpq/be-secure-openssl.c b/src/backend/libpq/be-secure-openssl.c index b3747f4fd87..685aa2ed69d 100644 --- a/src/backend/libpq/be-secure-openssl.c +++ b/src/backend/libpq/be-secure-openssl.c @@ -1557,7 +1557,8 @@ X509_NAME_to_cstring(X509_NAME *name) * Convert TLS protocol version GUC enum to OpenSSL values * * This is a straightforward one-to-one mapping, but doing it this way makes - * guc.c independent of OpenSSL availability and version. + * the definitions of ssl_min_protocol_version and ssl_max_protocol_version + * independent of OpenSSL availability and version. * * If a version is passed that is not supported by the current OpenSSL * version, then we return -1. If a nonnegative value is returned, diff --git a/src/backend/storage/lmgr/predicate.c b/src/backend/storage/lmgr/predicate.c index bfc352aed86..0f7f7ba5f11 100644 --- a/src/backend/storage/lmgr/predicate.c +++ b/src/backend/storage/lmgr/predicate.c @@ -364,9 +364,9 @@ static SERIALIZABLEXACT *OldCommittedSxact; * attempt to degrade performance (mostly as false positive serialization * failure) gracefully in the face of memory pressure. */ -int max_predicate_locks_per_xact; /* set by guc.c */ -int max_predicate_locks_per_relation; /* set by guc.c */ -int max_predicate_locks_per_page; /* set by guc.c */ +int max_predicate_locks_per_xact; /* in guc_tables.c */ +int max_predicate_locks_per_relation; /* in guc_tables.c */ +int max_predicate_locks_per_page; /* in guc_tables.c */ /* * This provides a list of objects in order to track transactions -- cgit v1.2.3