mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-14 10:27:04 +08:00
stub) into the rest of the system. Adopt a cleaner approach to preventing deadlock in concurrent heap_updates: allow RelationGetBufferForTuple to select any page of the rel, and put the onus on it to lock both buffers in a consistent order. Remove no-longer-needed isExtend hack from API of ReleaseAndReadBuffer.
25 lines
702 B
C
25 lines
702 B
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* hio.h
|
|
* POSTGRES heap access method input/output definitions.
|
|
*
|
|
*
|
|
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* $Id: hio.h,v 1.19 2001/06/29 21:08:25 tgl Exp $
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef HIO_H
|
|
#define HIO_H
|
|
|
|
#include "access/htup.h"
|
|
|
|
extern void RelationPutHeapTuple(Relation relation, Buffer buffer,
|
|
HeapTuple tuple);
|
|
extern Buffer RelationGetBufferForTuple(Relation relation, Size len,
|
|
Buffer otherBuffer);
|
|
|
|
#endif /* HIO_H */
|