PostgreSQL Source Code  git master
WalWriteMethodOps Struct Reference

#include <walmethods.h>

Data Fields

Walfile *(* open_for_write )(WalWriteMethod *wwmethod, const char *pathname, const char *temp_suffix, size_t pad_to_size)
 
int(* close )(Walfile *f, WalCloseMethod method)
 
bool(* existsfile )(WalWriteMethod *wwmethod, const char *pathname)
 
ssize_t(* get_file_size )(WalWriteMethod *wwmethod, const char *pathname)
 
char *(* get_file_name )(WalWriteMethod *wwmethod, const char *pathname, const char *temp_suffix)
 
ssize_t(* write )(Walfile *f, const void *buf, size_t count)
 
int(* sync )(Walfile *f)
 
bool(* finish )(WalWriteMethod *wwmethod)
 
void(* free )(WalWriteMethod *wwmethod)
 

Detailed Description

Definition at line 41 of file walmethods.h.

Field Documentation

◆ close

int(* WalWriteMethodOps::close) (Walfile *f, WalCloseMethod method)

◆ existsfile

bool(* WalWriteMethodOps::existsfile) (WalWriteMethod *wwmethod, const char *pathname)

Definition at line 58 of file walmethods.h.

Referenced by existsTimeLineHistoryFile(), and open_walfile().

◆ finish

bool(* WalWriteMethodOps::finish) (WalWriteMethod *wwmethod)

Definition at line 86 of file walmethods.h.

Referenced by LogStreamerMain(), and StreamLog().

◆ free

void(* WalWriteMethodOps::free) (WalWriteMethod *wwmethod)

Definition at line 92 of file walmethods.h.

Referenced by LogStreamerMain(), and StreamLog().

◆ get_file_name

char*(* WalWriteMethodOps::get_file_name) (WalWriteMethod *wwmethod, const char *pathname, const char *temp_suffix)

Definition at line 67 of file walmethods.h.

Referenced by close_walfile(), and open_walfile().

◆ get_file_size

ssize_t(* WalWriteMethodOps::get_file_size) (WalWriteMethod *wwmethod, const char *pathname)

Definition at line 61 of file walmethods.h.

Referenced by open_walfile().

◆ open_for_write

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

Definition at line 49 of file walmethods.h.

Referenced by mark_file_as_archived(), open_walfile(), and writeTimeLineHistoryFile().

◆ sync

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

Definition at line 78 of file walmethods.h.

Referenced by HandleCopyStream(), open_walfile(), and ProcessKeepaliveMsg().

◆ write

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

Definition at line 73 of file walmethods.h.

Referenced by ProcessXLogDataMsg(), and writeTimeLineHistoryFile().


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