随笔分类 -  PostgreSQL Maintain

Deleting backup_label on restore will corrupt your database!
摘要:The quick summary of this issue is that the backup_label file is an integral part of your database cluster binary backup, and removing it to allow the 阅读全文

posted @ 2016-03-22 22:19 Still water run deep 阅读(1642) 评论(0) 推荐(0)

How to relocate tablespace directory
摘要:I’ll demonstrate how to relocate a tablespace directory without the reconstruction of databases. I have a tablespace tblspc located at /home/postgres/ 阅读全文

posted @ 2016-02-18 23:43 Still water run deep 阅读(199) 评论(0) 推荐(0)

Postgres 9.4 feature highlight: REPLICA IDENTITY and logical replication
摘要:Among the many things to say about logical replication features added in PostgreSQL 9.4, REPLICA IDENTITY is a new table-level parameter that can be u 阅读全文

posted @ 2016-02-02 20:18 Still water run deep 阅读(766) 评论(0) 推荐(0)

Streaming replication slots in PostgreSQL 9.4
摘要:Streaming replication slots are a pending feature in PostgreSQL 9.4, as part ofthe logical changeset extractionfeature.What are they for, what do you ... 阅读全文

posted @ 2016-01-18 01:34 Still water run deep 阅读(310) 评论(0) 推荐(0)

Freezing Your Tuples Off 之 vacuum_freeze_min_age
摘要:The vacuum_freeze_min_age setting determines the youngest XID which will be changed to FrozenXID on data pages which are being vacuumed anyway. The ad 阅读全文

posted @ 2016-01-01 19:34 Still water run deep 阅读(539) 评论(0) 推荐(0)

Understanding virtualxid && transactionid
摘要:对pg_locks视图中的virtualxid和transactionid字段感到困惑,经查阅资料,特此在此整理一下学习内容:pg_locksColumnsNameTypeReferencesDescriptionlocktypetextType of the lockable object:rel... 阅读全文

posted @ 2016-01-01 18:14 Still water run deep 阅读(814) 评论(0) 推荐(0)

PostgreSQL and bloat
摘要:Thebucardoproject has released itsnagios plugins for PostgreSQLand we can extract from them this nice view in order to check for table and indexbloati... 阅读全文

posted @ 2015-12-22 22:35 Still water run deep 阅读(385) 评论(0) 推荐(0)

FSM, VISIBILITY MAP AND VACUUM
摘要:Update:Heikki’s slides arehere!Heikki Linnakangas gave a presentation this past Sunday atFOSDEMabout the improved free space map (FSM), which tracks u... 阅读全文

posted @ 2015-12-22 01:21 Still water run deep 阅读(330) 评论(0) 推荐(0)

Heap Only Tuples (HOT)
摘要:Introduction------------The Heap Only Tuple (HOT) feature eliminates redundant index entries andallows the re-use of space taken by DELETEd or obsolet... 阅读全文

posted @ 2015-12-15 00:20 Still water run deep 阅读(1089) 评论(0) 推荐(0)

Measuring PostgreSQL Checkpoint Statistics
摘要:Checkpoints can be a major drag on write-heavy PostgreSQL installations. The first step toward identifying issues in this area is to monitor how oft... 阅读全文

posted @ 2015-12-06 20:20 Still water run deep 阅读(496) 评论(0) 推荐(0)

Avoiding PostgreSQL database corruption
摘要:TL;DR: Don't ever setfsync=off, don'tkill -9the postmaster then deletepostmaster.pid, don't run PostgreSQL on network file systems.Reports of database... 阅读全文

posted @ 2015-09-14 01:32 Still water run deep 阅读(611) 评论(0) 推荐(0)

why does txid_current() assign new transaction-id?
摘要:Naoya:Hi,hackers!I have a question about txid_current().it is "Why does txid_current() assign new transaction-id?".When we executes txid_current() out... 阅读全文

posted @ 2015-08-13 23:04 Still water run deep 阅读(589) 评论(0) 推荐(0)

PostgreSQL: Query for location of global tablespace?
摘要:Q:I have been trying to make our database clients pro-active about not filling up the partition on which the database they are using resides.As all ou... 阅读全文

posted @ 2015-08-05 00:08 Still water run deep 阅读(517) 评论(0) 推荐(0)

postgreSQL 时间线
摘要:“时间线”(Timeline)是PG一个很有特色的概念,在备份恢复方面的文档里面时有出现。但针对这个概念的详细解释却很少,也让人不太好理解,我们在此仔细解析一下。时间线的引入为了理解引入时间线的背景,我们来分析一下,如果没有时间线,会有什么问题?先举个将数据库恢复到以前时间点的例子。假设在一个数据库... 阅读全文

posted @ 2015-07-21 23:27 Still water run deep 阅读(3336) 评论(0) 推荐(1)

Using CSV-Format Log Output
摘要:Including csvlog in the log_destination list provides a convenient way to import log files into a database table. This option emits log lines in comma... 阅读全文

posted @ 2015-07-20 17:18 Still water run deep 阅读(302) 评论(0) 推荐(0)

Understanding postgresql.conf : log*
摘要:After loooong pause, adding next (well, second) post to the “series“. This time, I'd like to describe how logging works. And I don't mean binary loggi... 阅读全文

posted @ 2015-07-20 08:12 Still water run deep 阅读(1044) 评论(0) 推荐(0)

UNDERSTANDING POSTGRESQL.CONF: CHECKPOINT_SEGMENTS, CHECKPOINT_TIMEOUT, CHECKPOINT_WARNING
摘要:While there are somedocson it, I decided to write about it, in perhaps more accessible language – not as a developer, but as PostgreSQL user.Some part... 阅读全文

posted @ 2015-07-15 08:42 Still water run deep 阅读(590) 评论(0) 推荐(0)

PgSQL · 追根究底 · WAL日志空间的意外增长
摘要:问题出现我们在线上巡检中发现,一个实例的pg_xlog目录,增长到4G,很是疑惑。刚开始怀疑是日志归档过慢,日志堆积在pg_xlog目录下面,未被清除导致。于是检查归档目录下的文件,内容如下。但发现新近完成写入的日志文件都被归档成功了(即在pg_xlog/archive_status里面,有对应的x... 阅读全文

posted @ 2015-07-13 00:42 Still water run deep 阅读(2872) 评论(6) 推荐(1)

Maximum number of WAL files in the pg_xlog directory (1)
摘要:Guillaume Lelarge:Hi,As part of our monitoring work for our customers, we stumbled upon an issue with our customers' servers who have a wal_keep_segme... 阅读全文

posted @ 2015-07-12 23:29 Still water run deep 阅读(655) 评论(0) 推荐(0)

导航