diff options
| author | Peter Eisentraut <peter_e@gmx.net> | 2000-05-31 00:28:42 +0000 |
|---|---|---|
| committer | Peter Eisentraut <peter_e@gmx.net> | 2000-05-31 00:28:42 +0000 |
| commit | 6a68f42648f54690ad5b5ae6fb9104e86e15f0f1 (patch) | |
| tree | 4b6742f51fb2160dbe2ce090273fd430dc2b2499 /src/include/storage | |
| parent | 5e4d554bae6a7177903cdb99bf5d41b695519a45 (diff) | |
| download | postgresql-6a68f42648f54690ad5b5ae6fb9104e86e15f0f1.tar.gz | |
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)
Diffstat (limited to 'src/include/storage')
| -rw-r--r-- | src/include/storage/lock.h | 15 | ||||
| -rw-r--r-- | src/include/storage/proc.h | 5 | ||||
| -rw-r--r-- | src/include/storage/spin.h | 6 |
3 files changed, 21 insertions, 5 deletions
diff --git a/src/include/storage/lock.h b/src/include/storage/lock.h index 5e9fb8b42f..7ec383abe7 100644 --- a/src/include/storage/lock.h +++ b/src/include/storage/lock.h @@ -7,13 +7,14 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: lock.h,v 1.37 2000/04/12 17:16:51 momjian Exp $ + * $Id: lock.h,v 1.38 2000/05/31 00:28:38 petere Exp $ * *------------------------------------------------------------------------- */ #ifndef LOCK_H_ #define LOCK_H_ +#include "postgres.h" #include "storage/ipc.h" #include "storage/itemptr.h" #include "storage/shmem.h" @@ -26,6 +27,15 @@ typedef int LOCKMASK; #define MAX_TABLE_SIZE 1000 +#ifdef LOCK_DEBUG +extern int Trace_lock_oidmin; +extern bool Trace_locks; +extern bool Trace_userlocks; +extern int Trace_lock_table; +extern bool Debug_deadlocks; +#endif /* LOCK_DEBUG */ + + /* ---------------------- * The following defines are used to estimate how much shared * memory the lock manager is going to require. @@ -259,10 +269,9 @@ extern int LockShmemSize(int maxBackends); extern bool LockingDisabled(void); extern bool DeadLockCheck(void *proc, LOCK *findlock); -#ifdef DEADLOCK_DEBUG +#ifdef LOCK_DEBUG extern void DumpLocks(void); extern void DumpAllLocks(void); - #endif #endif /* LOCK_H */ diff --git a/src/include/storage/proc.h b/src/include/storage/proc.h index a0f8660fbe..edc6359fc4 100644 --- a/src/include/storage/proc.h +++ b/src/include/storage/proc.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: proc.h,v 1.30 2000/04/12 17:16:51 momjian Exp $ + * $Id: proc.h,v 1.31 2000/05/31 00:28:38 petere Exp $ * *------------------------------------------------------------------------- */ @@ -17,6 +17,9 @@ #include "access/xlog.h" #include "storage/lock.h" +/* configurable option */ +extern int DeadlockTimeout; + typedef struct { int sleeplock; diff --git a/src/include/storage/spin.h b/src/include/storage/spin.h index 7c57f2fa62..656e1097a2 100644 --- a/src/include/storage/spin.h +++ b/src/include/storage/spin.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: spin.h,v 1.11 2000/01/26 05:58:33 momjian Exp $ + * $Id: spin.h,v 1.12 2000/05/31 00:28:38 petere Exp $ * *------------------------------------------------------------------------- */ @@ -28,6 +28,10 @@ typedef int SPINLOCK; +#ifdef LOCK_DEBUG +extern bool Trace_spinlocks; +#endif + extern void CreateSpinlocks(IPCKey key); extern void InitSpinLocks(void); extern void SpinAcquire(SPINLOCK lockid); |
