postgresql

package
v0.0.0-...-abf4276 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Checkpoint

func Checkpoint(db *sql.DB) error

Checkpoint executes `CHECKPOINT;` in PG

func CloseDB

func CloseDB(db *sql.DB) error

CloseDB closes the db connection

func CreateDB

func CreateDB(cfg types.DBConfig) (*sql.DB, error)

CreateDB creates db connection using the cfg

func GetCurrentLSN

func GetCurrentLSN(db *sql.DB) (uint64, error)

GetCurrentLSN return the result of SELECT pg_current_wal_lsn()

func GetLastReplayLSN

func GetLastReplayLSN(db *sql.DB) (uint64, error)

GetLastReplayLSN returns the result of SELECT pg_last_wal_replay_lsn()

func ReloadConf

func ReloadConf(db *sql.DB) error

ReloadConf make PG reload its conf

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL