|
PostgreSQL Source Code git master
|

Go to the source code of this file.
Data Structures | |
| struct | SlruSegState |
Typedefs | |
| typedef struct SlruSegState | SlruSegState |
Functions | |
| SlruSegState * | AllocSlruRead (const char *dir, bool long_segment_names) |
| char * | SlruReadSwitchPageSlow (SlruSegState *state, uint64 pageno) |
| void | FreeSlruRead (SlruSegState *state) |
| static char * | SlruReadSwitchPage (SlruSegState *state, uint64 pageno) |
| SlruSegState * | AllocSlruWrite (const char *dir, bool long_segment_names) |
| char * | SlruWriteSwitchPageSlow (SlruSegState *state, uint64 pageno) |
| void | FreeSlruWrite (SlruSegState *state) |
| static char * | SlruWriteSwitchPage (SlruSegState *state, uint64 pageno) |
| typedef struct SlruSegState SlruSegState |
| SlruSegState * AllocSlruRead | ( | const char * | dir, |
| bool | long_segment_names | ||
| ) |
Definition at line 62 of file slru_io.c.
References AllocSlruSegState().
Referenced by AllocOldMultiXactRead().
| SlruSegState * AllocSlruWrite | ( | const char * | dir, |
| bool | long_segment_names | ||
| ) |
Definition at line 166 of file slru_io.c.
References AllocSlruSegState().
Referenced by rewrite_multixacts().
| void FreeSlruRead | ( | SlruSegState * | state | ) |
| void FreeSlruWrite | ( | SlruSegState * | state | ) |
Definition at line 260 of file slru_io.c.
References Assert(), close, pg_free(), and SlruFlush().
Referenced by rewrite_multixacts().
|
inlinestatic |
Definition at line 33 of file slru_io.h.
References SlruReadSwitchPageSlow().
Referenced by GetOldMultiXactIdSingleMember().
| char * SlruReadSwitchPageSlow | ( | SlruSegState * | state, |
| uint64 | pageno | ||
| ) |
Definition at line 85 of file slru_io.c.
References Assert(), close, EINTR, PG_BINARY, pg_fatal, pg_free(), pg_log(), pg_pread, PG_WARNING, SLRU_PAGES_PER_SEGMENT, and SlruFileName().
Referenced by SlruReadSwitchPage().
|
inlinestatic |
Definition at line 45 of file slru_io.h.
References SlruWriteSwitchPageSlow().
Referenced by RecordMultiXactMembers(), RecordMultiXactOffset(), and rewrite_multixacts().
| char * SlruWriteSwitchPageSlow | ( | SlruSegState * | state, |
| uint64 | pageno | ||
| ) |
Definition at line 187 of file slru_io.c.
References Assert(), close, PG_BINARY, pg_fatal, pg_file_create_mode, pg_free(), pg_pwrite_zeros(), SLRU_PAGES_PER_SEGMENT, SlruFileName(), and SlruFlush().
Referenced by SlruWriteSwitchPage().