The Great XLOG to LSN Renaming in PostgreSQL 10

During the development process for PostgreSQL 10, it was decided to use LSN in place of various permutations of xlog etc., as LSN is a more accurate description for the item or operation in question, and in some cases (e.g. the pg_xlog directory) would reduce the risk of confusion with "normal" log files.

This resulted in the renaming of a number of database objects, directories and utilities; this article attempts to list the old and new names.

Core utilities

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


~ PostgreSQL 9.6 PostgreSQL 10 ~ Commit
pg_clog pg_xact 88e66d19
pg_xlog pg_wal f82ec32a

System functions

~ PostgreSQL 9.6 PostgreSQL 10 ~ Commit
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



Items renamed in commit 806091c9 but which contained the word "location" were subsequently changed in d10c626d to have "location" replaced by "lsn".