PostgreSQL Source Code  git master
WalWriteMethod Struct Reference

#include <walmethods.h>

Data Fields

Walfile(* open_for_write )(const char *pathname, const char *temp_suffix, size_t pad_to_size)
int(* close )(Walfile f, WalCloseMethod method)
bool(* existsfile )(const char *pathname)
ssize_t(* get_file_size )(const char *pathname)
ssize_t(* write )(Walfile f, const void *buf, size_t count)
off_t(* get_current_pos )(Walfile f)
int(* sync )(Walfile f)
bool(* finish )(void)
const char *(* getlasterror )(void)

Detailed Description

Definition at line 33 of file walmethods.h.

Field Documentation

◆ close

◆ existsfile

bool(* WalWriteMethod::existsfile) (const char *pathname)

◆ finish

bool(* WalWriteMethod::finish) (void)

◆ get_current_pos

off_t(* WalWriteMethod::get_current_pos) (Walfile f)

◆ get_file_size

ssize_t(* WalWriteMethod::get_file_size) (const char *pathname)

Definition at line 53 of file walmethods.h.

Referenced by CreateWalDirectoryMethod(), CreateWalTarMethod(), and open_walfile().

◆ getlasterror

◆ open_for_write

Walfile(* WalWriteMethod::open_for_write) (const char *pathname, const char *temp_suffix, size_t pad_to_size)

◆ sync

int(* WalWriteMethod::sync) (Walfile f)

◆ write

ssize_t(* WalWriteMethod::write) (Walfile f, const void *buf, size_t count)

The documentation for this struct was generated from the following file: