diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-06-12 22:54:06 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-06-12 22:54:06 +0000 |
commit | 2938eec7fe3d1215020dadef431bfa904c37e85e (patch) | |
tree | adbcbf9af15914118a79265c29a35f3d7763e3ae /src/backend/tcop/postgres.c | |
parent | 89765fa555b7d215c931e8aa542ac865b86c635a (diff) | |
download | postgresql-2938eec7fe3d1215020dadef431bfa904c37e85e.tar.gz postgresql-2938eec7fe3d1215020dadef431bfa904c37e85e.zip |
Extend GUC concepts of parse_hook and assign_hook to all four supported
datatypes, not only strings. parse_hook is useless for bool, I suppose,
but it seems possibly useful for int and double to apply variable-specific
constraints that are more complex than simple range limits. assign_hook
is definitely useful for all datatypes --- we need it right now for bool
to support date cache reset when changing Australian timezone rule setting.
Also, clean up some residual problems with the reset all/show all patch,
including memory leaks and mistaken reset of PostPortNumber. It seems
best that RESET ALL not touch variables that don't have SUSET or
USERSET context.
Diffstat (limited to 'src/backend/tcop/postgres.c')
-rw-r--r-- | src/backend/tcop/postgres.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index 8e5115f755a..cd3e5850369 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.219 2001/06/07 04:50:57 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.220 2001/06/12 22:54:06 tgl Exp $ * * NOTES * this is the "main" module of the postgres backend and @@ -1156,7 +1156,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[], const cha if (!IsUnderPostmaster) { - ResetAllOptions(); + ResetAllOptions(true); potential_DataDir = getenv("PGDATA"); } StatFp = stderr; @@ -1709,7 +1709,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[], const cha if (!IsUnderPostmaster) { puts("\nPOSTGRES backend interactive interface "); - puts("$Revision: 1.219 $ $Date: 2001/06/07 04:50:57 $\n"); + puts("$Revision: 1.220 $ $Date: 2001/06/12 22:54:06 $\n"); } /* |