
Postgres数据库简介
PG使用教程:https://www.yiibai.com/postgresql
PG使用教程:https://www.yiibai.com/postgresql
1.下载 rpm知识库包 操作系统版本:CentOS Linux release 7.2.1511 (Core) X64 [root@localhost home]# yum install https://download.postgre...
数据库异常关闭时,数据库关闭时来不及或者没机会做checkpoint,则需要从上一个一致性检查的开始恢复。 PostgreSQL备机checkpoint是不能产生checkpoint WAL的,因为如果写这样类型的checkpo...
1)WAL怎么来的你得知道,2)同步流复制和异步流复制是什么鬼3)需要更改主和从哪些配置参数4)如何查看复制是否有问题,比如不一致,堵塞,数据复制不到对端5)哪些关键的参数,如archive_mode,archive_command,wal...
初始化后pg_hba.conf默认的内容: # TYPE DATABASE USER &n...
pg_upgrade (1)PostgreSQL提供大版本升级的一个工具,比如说从9.1到9.2,也可以一次跨多个大版本,直接从9.1到9.5等,它的优点是不需要把数据导入导出,这在数据量比较大的时候,非常方便。 (2)不适合小版本升级,比...
postgresql的索引 postgresql提供的索引类型有:B-tree、hash、gist和gin。大多情况下,B-tree索引比较常用,用户可以使用create index命令创建一个B-tree索引。 1、B-tree索引: &...
postgres导入导出工具pg_dump:备份:pg_dump -h localhost -U postgres db_name > db_name.sql恢复:psql -U postgres -d db_name -f db_n...
struct HeapTupleHeaderData { union { HeapTupleFields t_heap; DatumTupleFields t_datum; }t_choice; ItemPointerData t_ctid...
os:centos 7.5 postgresql: 10.01.软件下载:https://github.com/ossc-db/pg_rman/releases/pg_rman-1.3.7-1.pg10.rhel7.x86_64.rpm 2...
CREATE or REPLACE FUNCTION insert_p_date() RETURNS text as “` $$DECLAREsql_string text;sdate timestamp without tim...
StartupLOG:: ->record = ReadCheckpointRecord(xlogreader, ControlFile->checkPoint, 1, true) ->record = ReadRecor...
数据库导入导出是最常用的功能之一。PostgreSQL的备份工具可以使用pg_dump及pg_dumpall。可以通过pg_dump –help获取其使用方法。这里不对其做过多介绍。主要介绍在使用pg_dump及恢复过程中遇到的...
WaitForWALToBecomeAvailable: if (!InArchiveRecovery) currentSource = XLOG_FROM_PG_WAL; else if (currentSource == 0) curr...
internal_load_library postgresql-> PG_init = (PG_init_t) pg_dlsym(file_scanner->handle, "_PG_init"); if (PG_init) ...
PostgreSQL在shutdown时会进行checkpoint。其流程如下。 1、在主进程中,会首先注册一个信号处理函数reaper,用于向checkpoint等子进程发送信号。向checkpoint进程发送SIGUSR2信号 Post...