mirror of
https://github.com/postgres/postgres.git
synced 2025-11-10 17:42:29 +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:
@@ -12,7 +12,7 @@
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtree.c,v 1.54 2000/04/12 17:14:49 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtree.c,v 1.55 2000/05/31 00:28:14 petere Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -25,11 +25,8 @@
|
||||
#include "catalog/index.h"
|
||||
#include "executor/executor.h"
|
||||
#include "miscadmin.h"
|
||||
|
||||
#ifdef BTREE_BUILD_STATS
|
||||
#define ShowExecutorStats pg_options[TRACE_EXECUTORSTATS]
|
||||
#endif
|
||||
|
||||
#include "tcop/tcopprot.h"
|
||||
#include "utils/guc.h"
|
||||
|
||||
bool BuildingBtree = false; /* see comment in btbuild() */
|
||||
bool FastBuild = true; /* use sort/build instead of insertion
|
||||
@@ -96,9 +93,9 @@ btbuild(Relation heap,
|
||||
usefast = (FastBuild && IsNormalProcessingMode());
|
||||
|
||||
#ifdef BTREE_BUILD_STATS
|
||||
if (ShowExecutorStats)
|
||||
if (Show_btree_build_stats)
|
||||
ResetUsage();
|
||||
#endif
|
||||
#endif /* BTREE_BUILD_STATS */
|
||||
|
||||
/* see if index is unique */
|
||||
isunique = IndexIsUniqueNoCache(RelationGetRelid(index));
|
||||
@@ -287,13 +284,13 @@ btbuild(Relation heap,
|
||||
}
|
||||
|
||||
#ifdef BTREE_BUILD_STATS
|
||||
if (ShowExecutorStats)
|
||||
if (Show_btree_build_stats)
|
||||
{
|
||||
fprintf(stderr, "! BtreeBuild Stats:\n");
|
||||
fprintf(stderr, "BTREE BUILD STATS\n");
|
||||
ShowUsage();
|
||||
ResetUsage();
|
||||
}
|
||||
#endif
|
||||
#endif /* BTREE_BUILD_STATS */
|
||||
|
||||
/*
|
||||
* Since we just counted the tuples in the heap, we update its stats
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtsort.c,v 1.52 2000/04/12 17:14:49 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtsort.c,v 1.53 2000/05/31 00:28:14 petere Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -36,13 +36,11 @@
|
||||
#include "postgres.h"
|
||||
|
||||
#include "access/nbtree.h"
|
||||
#include "tcop/tcopprot.h"
|
||||
#include "utils/guc.h"
|
||||
#include "utils/tuplesort.h"
|
||||
|
||||
|
||||
#ifdef BTREE_BUILD_STATS
|
||||
#define ShowExecutorStats pg_options[TRACE_EXECUTORSTATS]
|
||||
#endif
|
||||
|
||||
/*
|
||||
* turn on debugging output.
|
||||
*
|
||||
@@ -136,13 +134,13 @@ void
|
||||
_bt_leafbuild(BTSpool *btspool)
|
||||
{
|
||||
#ifdef BTREE_BUILD_STATS
|
||||
if (ShowExecutorStats)
|
||||
if (Show_btree_build_stats)
|
||||
{
|
||||
fprintf(stderr, "! BtreeBuild (Spool) Stats:\n");
|
||||
fprintf(StatFp, "BTREE BUILD (Spool) STATISTICS\n");
|
||||
ShowUsage();
|
||||
ResetUsage();
|
||||
}
|
||||
#endif
|
||||
#endif /* BTREE_BUILD_STATS */
|
||||
tuplesort_performsort(btspool->sortstate);
|
||||
|
||||
_bt_load(btspool->index, btspool);
|
||||
|
||||
Reference in New Issue
Block a user