mirror of
https://github.com/postgres/postgres.git
synced 2025-11-16 15:02:33 +03:00
Massimo's SET FSYNC and SHOW PG_OPTIONS changes, without SET QUERY_LIMIT.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/init/globals.c,v 1.36 1999/07/17 20:18:08 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/init/globals.c,v 1.37 1999/09/27 20:27:09 momjian Exp $
|
||||
*
|
||||
* NOTES
|
||||
* Globals used all over the place should be declared here and not
|
||||
@@ -76,7 +76,6 @@ char DateFormat[20] = "%d-%m-%Y"; /* mjl: sizes! or better
|
||||
* malloc? XXX */
|
||||
char FloatFormat[20] = "%f";
|
||||
|
||||
bool disableFsync = false;
|
||||
bool allowSystemTableMods = false;
|
||||
int SortMem = 512;
|
||||
|
||||
|
||||
@@ -73,6 +73,7 @@ static char *opt_names[] = {
|
||||
"lock_debug_relid",
|
||||
"lock_read_priority", /* lock priority, see lock.c */
|
||||
"deadlock_timeout", /* deadlock timeout, see proc.c */
|
||||
"nofsync", /* turn fsync off */
|
||||
"syslog", /* use syslog for error messages */
|
||||
"hostlookup", /* enable hostname lookup in ps_status */
|
||||
"showportnumber", /* show port number in ps_status */
|
||||
@@ -405,6 +406,16 @@ read_pg_options(SIGNAL_ARGS)
|
||||
close(fd);
|
||||
}
|
||||
|
||||
void
|
||||
show_options(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i=0; i<NUM_PG_OPTIONS; i++) {
|
||||
elog(NOTICE, "%s=%d", opt_names[i], pg_options[i]);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
* tab-width: 4
|
||||
|
||||
Reference in New Issue
Block a user