mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
The heralded `Grand Unified Configuration scheme' (GUC)
That means you can now set your options in either or all of $PGDATA/configuration, some postmaster option (--enable-fsync=off), or set a SET command. The list of options is in backend/utils/misc/guc.c, documentation will be written post haste. pg_options is gone, so is that pq_geqo config file. Also removed were backend -K, -Q, and -T options (no longer applicable, although -d0 does the same as -Q). Added to configure an --enable-syslog option. changed all callers from TPRINTF to elog(DEBUG)
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/file/fd.c,v 1.56 2000/04/12 17:15:35 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/file/fd.c,v 1.57 2000/05/31 00:28:27 petere Exp $
|
||||
*
|
||||
* NOTES:
|
||||
*
|
||||
@ -196,7 +196,10 @@ static long pg_nofile(void);
|
||||
int
|
||||
pg_fsync(int fd)
|
||||
{
|
||||
return disableFsync ? 0 : fsync(fd);
|
||||
if (enableFsync)
|
||||
return fsync(fd);
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
@ -916,7 +919,7 @@ FileSync(File file)
|
||||
/* Need not sync if file is not dirty. */
|
||||
returnCode = 0;
|
||||
}
|
||||
else if (disableFsync)
|
||||
else if (!enableFsync)
|
||||
{
|
||||
/* Don't force the file open if pg_fsync isn't gonna sync it. */
|
||||
returnCode = 0;
|
||||
|
Reference in New Issue
Block a user