PostgreSQL 10 中 XLOG 到 LSN 的大规模重命名

PostgreSQL 10 的开发过程中,决定使用 LSN 来替代各种形式的 xlog 等,因为 LSN 是对相关项或操作更准确的描述,并且在某些情况下(例如 pg_xlog 目录)可以降低与“常规”日志文件混淆的风险。

这导致了许多数据库对象、目录和实用程序的重命名;本文档试图列出旧名称和新名称。

核心实用程序

~ PostgreSQL 9.6 PostgreSQL 10 ~ 提交
pg_receivexlog pg_receivewal 85c11324
pg_resetxlog pg_resetwal 85c11324
pg_xlogdump pg_waldump 85c11324

目录

~ PostgreSQL 9.6 PostgreSQL 10 ~ 提交
pg_clog pg_xact 88e66d19
pg_xlog pg_wal f82ec32a

系统函数

~ PostgreSQL 9.6 PostgreSQL 10 ~ 提交
pg_current_xlog_flush_location() pg_current_wal_flush_lsn() 806091c9
pg_current_xlog_insert_location() pg_current_wal_insert_lsn() 806091c9
pg_current_xlog_location() pg_current_wal_lsn() 806091c9
pg_is_xlog_replay_paused() pg_is_wal_replay_paused() 806091c9
pg_last_xlog_receive_location() pg_last_wal_receive_lsn() 806091c9
pg_last_xlog_replay_location() pg_last_wal_replay_lsn() 806091c9
pg_switch_xlog() pg_switch_wal() 806091c9
pg_xlogfile_name() pg_walfile_name() 806091c9
pg_xlogfile_name_offset() pg_walfile_name_offset() 806091c9
pg_xlog_location_diff() pg_wal_lsn_diff() 806091c9
pg_xlog_replay_pause() pg_wal_replay_pause() 806091c9
pg_xlog_replay_resume() pg_wal_replay_resume() 806091c9

配置

备注

在提交 806091c9 中重命名的包含“location”一词的项,随后在提交 d10c626d 中被更改,将“location”替换为“lsn”。