| /*------------------------------------------------------------------------- | |
| * | |
| * buf.h | |
| * Basic buffer manager data types. | |
| * | |
| * | |
| * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group | |
| * Portions Copyright (c) 1994, Regents of the University of California | |
| * | |
| * src/include/storage/buf.h | |
| * | |
| *------------------------------------------------------------------------- | |
| */ | |
| /* | |
| * Buffer identifiers. | |
| * | |
| * Zero is invalid, positive is the index of a shared buffer (1..NBuffers), | |
| * negative is the index of a local buffer (-1 .. -NLocBuffer). | |
| */ | |
| typedef int Buffer; | |
| /* | |
| * BufferIsInvalid | |
| * True iff the buffer is invalid. | |
| */ | |
| /* | |
| * BufferIsLocal | |
| * True iff the buffer is local (not visible to other backends). | |
| */ | |
| /* | |
| * Buffer access strategy objects. | |
| * | |
| * BufferAccessStrategyData is private to freelist.c | |
| */ | |
| typedef struct BufferAccessStrategyData *BufferAccessStrategy; | |