PostgreSQL10.0preview變化-pg_xlog,pg_clog,pg_log目錄更名為pg_wal,pg_xact,log
標籤
PostgreSQL , 10.0 , pg_xact , pg_wal , log , pg_clog , pg_xlog , pg_log
背景
10.0 把幾個有一定“歧義”的目錄更名了。它們分別為
pg_xlog, pg_clog, pg_log
更名為
pg_wal, pg_xact, log
分別對應WAL(write ahead log)日誌,事務狀態日誌,日誌。
省得有人誤刪其中的LOG目錄中的檔案。(還真有發生過)。
壞處是,如果有對應的程式用到了這幾個目錄名的,需要修改一下。
對應patch
Rename "pg_xlog" directory to "pg_wal".
author Robert Haas <rhaas@postgresql.org>
Thu, 20 Oct 2016 23:24:37 +0800 (11:24 -0400)
committer Robert Haas <rhaas@postgresql.org>
Thu, 20 Oct 2016 23:32:18 +0800 (11:32 -0400)
"xlog" is not a particularly clear abbreviation for "write-ahead log",
and it sometimes confuses users into believe that the contents of the
"pg_xlog" directory are not critical data, leading to unpleasant
consequences. So, rename the directory to "pg_wal".
This patch modifies pg_upgrade and pg_basebackup to understand both
the old and new directory layouts; the former is necessary given the
purpose of the tool, while the latter merely avoids an unnecessary
backward-compatibility break.
We may wish to consider renaming other programs, switches, and
functions which still use the old "xlog" naming to also refer to
"wal". However, that`s still under discussion, so let`s do just this
much for now.
Discussion: CAB7nPqTeC-8+zux8_-4ZD46V7YPwooeFxgndfsq5Rg8ibLVm1A@mail.gmail.com
Michael Paquier
Rename "pg_clog" directory to "pg_xact".
author Robert Haas <rhaas@postgresql.org>
Fri, 17 Mar 2017 21:46:58 +0800 (09:46 -0400)
committer Robert Haas <rhaas@postgresql.org>
Fri, 17 Mar 2017 21:48:38 +0800 (09:48 -0400)
Names containing the letters "log" sometimes confuse users into
believing that only non-critical data is present. It is hoped
this renaming will discourage ill-considered removals of transaction
status data.
Michael Paquier
Discussion: http://postgr.es/m/CA+Tgmoa9xFQyjRZupbdEFuwUerFTvC6HjZq1ud6GYragGDFFgA@mail.gmail.com
Change default of log_directory to `log`
author Peter Eisentraut <peter_e@gmx.net>
Mon, 27 Mar 2017 22:34:33 +0800 (10:34 -0400)
committer Peter Eisentraut <peter_e@gmx.net>
Mon, 27 Mar 2017 22:34:33 +0800 (10:34 -0400)
The previous default `pg_log` might have indicated by its "pg_" prefix
that it is an internal system directory. The new default is more in
line with the typical naming of directories with user-facing log files.
Together with the renaming of pg_clog and pg_xlog, this should clear up
that difference.
Author: Andreas Karlsson <andreas@proxel.se>
這個patch的討論,詳見郵件組,本文末尾URL。
PostgreSQL社群的作風非常嚴謹,一個patch可能在郵件組中討論幾個月甚至幾年,根據大家的意見反覆的修正,patch合併到master已經非常成熟,所以PostgreSQL的穩定性也是遠近聞名的。
參考
相關文章
- PostgreSQL的pg_log日誌目錄SQL
- Motorola將更名為Moto ,Logo將保留Go
- java WatchService監控目錄變化Java
- OBIEE AdminTool Log目錄
- 將某目錄及其子目錄中所有的.c檔案更名為.C檔案時使用的完美指令碼(轉)指令碼
- 通過修改CATALOG記錄的方式實現備份集目錄變更
- I am lycc & Blog 目錄
- pythonpyinotify監控檔案與目錄的變化Python
- python監控檔案或目錄變化薦Python
- PG 資料庫遭遇 pg_clog file missing 故障.資料庫
- Linux 使用 inotify 監控檔案或目錄變化Linux
- 《Usermod:user lee is currently logged in 家目錄不能改變解決方法》
- Airlock 現已更名為 SanctumAI
- Redis Labs更名為RedisRedis
- webloginc配置專案根目錄Web
- colab 改變工作目錄
- 打包壓縮RAC oracle軟體目錄後重灌OS,解壓後目錄許可權變化Oracle
- Ubuntu 16.04切換/home中文目錄為英文目錄Ubuntu
- 使用RMAN恢復目錄(catalog)解析
- 訪問Webapp目錄下面的html檔案變為程式碼WebAPPHTML
- 建立恢復目錄catalog並註冊目標庫
- Ubuntu 16.04修改Home目錄下的中文目錄為英文Ubuntu
- Jboss下將某個應用目錄配置為根目錄
- 微軟為Nokia Camera更名為Lumia Camera微軟
- Git學習2:為什麼工作區目錄下有.git目錄Git
- 解決目錄“中毒變exe”的方法
- 前端優化系列之目錄前端優化
- 【目錄】JVM目錄JVM
- Linux程式開發中如何判斷目錄是否為根目錄?Linux
- 【目錄】集合框架目錄框架
- alert log檔案的變化
- 帝國CMS網站以顯示“Hello,World”為例子,目錄名用“helloworld”,目錄格式為網站
- linux改變某個目錄的組Linux
- 使用 cd 命令來改變所在目錄(轉)
- 啟動程式的上一級目錄如何初始化全域性變數?變數
- 【目錄】JUC鎖框架目錄框架
- 為 github markdown 檔案生成目錄(toc)Github
- Ubuntu更改主目錄檔名為英文Ubuntu