Skip to content

Commit 8590a62

Browse files
committed
Improve comments on USERLIMIT GUC processing.
1 parent 076055e commit 8590a62

File tree

1 file changed

+6
-6
lines changed
  • src/backend/utils/misc

1 file changed

+6
-6
lines changed

src/backend/utils/misc/guc.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Written by Peter Eisentraut <peter_e@gmx.net>.
1111
*
1212
* IDENTIFICATION
13-
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.193 2004/03/24 22:40:29 tgl Exp $
13+
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.194 2004/04/01 14:25:47 momjian Exp $
1414
*
1515
*--------------------------------------------------------------------
1616
*/
@@ -2739,7 +2739,7 @@ set_config_option(const char *name, const char *value,
27392739
errhint("Must be superuser to change this value to false.")));
27402740
return false;
27412741
}
2742-
/* Allow admin to override non-superuser setting */
2742+
/* Honor change to config file with SIGHUP */
27432743
if (record->context == PGC_USERLIMIT &&
27442744
source < PGC_S_UNPRIVILEGED &&
27452745
record->reset_source > PGC_S_UNPRIVILEGED &&
@@ -2836,11 +2836,11 @@ set_config_option(const char *name, const char *value,
28362836
errhint("Must be superuser to increase this value or set it to zero.")));
28372837
return false;
28382838
}
2839-
/* Allow admin to override non-superuser setting */
2839+
/* Honor change to config file with SIGHUP */
28402840
if (record->context == PGC_USERLIMIT &&
28412841
source < PGC_S_UNPRIVILEGED &&
28422842
record->reset_source > PGC_S_UNPRIVILEGED &&
2843-
newval < conf->reset_val &&
2843+
newval < conf->reset_val && newval != 0 &&
28442844
!superuser())
28452845
changeVal = changeVal_orig;
28462846
}
@@ -2932,7 +2932,7 @@ set_config_option(const char *name, const char *value,
29322932
errhint("Must be superuser to increase this value.")));
29332933
return false;
29342934
}
2935-
/* Allow admin to override non-superuser setting */
2935+
/* Honor change to config file with SIGHUP */
29362936
if (record->context == PGC_USERLIMIT &&
29372937
source < PGC_S_UNPRIVILEGED &&
29382938
record->reset_source > PGC_S_UNPRIVILEGED &&
@@ -3031,7 +3031,7 @@ set_config_option(const char *name, const char *value,
30313031
errhint("Must be superuser to increase this value.")));
30323032
return false;
30333033
}
3034-
/* Allow admin to override non-superuser setting */
3034+
/* Honor change to config file with SIGHUP */
30353035
if (source < PGC_S_UNPRIVILEGED &&
30363036
record->reset_source > PGC_S_UNPRIVILEGED &&
30373037
newval < conf->reset_val &&

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy