Unmark gen_random_uuid() function leakproof.
[pgsql.git] / src / include / storage / buf.h
blob64a1ad9d2c47a70bb4499bf54f982f029ff9fbbf
1 /*-------------------------------------------------------------------------
3 * buf.h
4 * Basic buffer manager data types.
7 * Portions Copyright (c) 1996-2024, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
10 * src/include/storage/buf.h
12 *-------------------------------------------------------------------------
14 #ifndef BUF_H
15 #define BUF_H
18 * Buffer identifiers.
20 * Zero is invalid, positive is the index of a shared buffer (1..NBuffers),
21 * negative is the index of a local buffer (-1 .. -NLocBuffer).
23 typedef int Buffer;
25 #define InvalidBuffer 0
28 * BufferIsInvalid
29 * True iff the buffer is invalid.
31 #define BufferIsInvalid(buffer) ((buffer) == InvalidBuffer)
34 * BufferIsLocal
35 * True iff the buffer is local (not visible to other backends).
37 #define BufferIsLocal(buffer) ((buffer) < 0)
40 * Buffer access strategy objects.
42 * BufferAccessStrategyData is private to freelist.c
44 typedef struct BufferAccessStrategyData *BufferAccessStrategy;
46 #endif /* BUF_H */