|
PostgreSQL Source Code git master
|
#include "postgres_fe.h"#include <fcntl.h>#include "common/fe_memutils.h"#include "common/file_perm.h"#include "common/file_utils.h"#include "pg_upgrade.h"#include "port/pg_iovec.h"#include "slru_io.h"
Go to the source code of this file.
Functions | |
| static SlruSegState * | AllocSlruSegState (const char *dir) |
| static char * | SlruFileName (SlruSegState *state, int64 segno) |
| static void | SlruFlush (SlruSegState *state) |
| SlruSegState * | AllocSlruRead (const char *dir, bool long_segment_names) |
| char * | SlruReadSwitchPageSlow (SlruSegState *state, uint64 pageno) |
| void | FreeSlruRead (SlruSegState *state) |
| SlruSegState * | AllocSlruWrite (const char *dir, bool long_segment_names) |
| char * | SlruWriteSwitchPageSlow (SlruSegState *state, uint64 pageno) |
| void | FreeSlruWrite (SlruSegState *state) |
| SlruSegState * AllocSlruRead | ( | const char * | dir, |
| bool | long_segment_names | ||
| ) |
Definition at line 62 of file slru_io.c.
References AllocSlruSegState().
Referenced by AllocOldMultiXactRead().
|
static |
Definition at line 27 of file slru_io.c.
References pg_malloc(), and pstrdup().
Referenced by AllocSlruRead(), and AllocSlruWrite().
| 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().
|
static |
Definition at line 44 of file slru_io.c.
References Assert(), INT64CONST, and psprintf().
Referenced by SlruReadSwitchPageSlow(), and SlruWriteSwitchPageSlow().
|
static |
Definition at line 239 of file slru_io.c.
References pg_fatal, pg_pwritev_with_retry(), and SLRU_PAGES_PER_SEGMENT.
Referenced by FreeSlruWrite(), and SlruWriteSwitchPageSlow().
| 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().
| 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().