mirror of
https://github.com/postgres/postgres.git
synced 2026-02-23 01:40:33 -05:00
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)
40 lines
929 B
C
40 lines
929 B
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* spin.h
|
|
* synchronization routines
|
|
*
|
|
*
|
|
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* $Id: spin.h,v 1.12 2000/05/31 00:28:38 petere Exp $
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef SPIN_H
|
|
#define SPIN_H
|
|
|
|
#include "storage/ipc.h"
|
|
|
|
/*
|
|
* two implementations of spin locks
|
|
*
|
|
* sequent, sparc, sun3: real spin locks. uses a TAS instruction; see
|
|
* src/storage/ipc/s_lock.c for details.
|
|
*
|
|
* default: fake spin locks using semaphores. see spin.c
|
|
*
|
|
*/
|
|
|
|
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);
|
|
extern void SpinRelease(SPINLOCK lockid);
|
|
|
|
#endif /* SPIN_H */
|