postgresql/src/backend/access
Alvaro Herrera f12e814b88 Fix commit_ts for standby
Module initialization was still not completely correct after commit
6b61955135, per crash report from Takashi Ohnishi.  To fix, instead of
trying to monkey around with the value of the GUC setting directly, add
a separate boolean flag that enables the feature on a standby, but only
for the startup (recovery) process, when it sees that its master server
has the feature enabled.
Discussion: http://www.postgresql.org/message-id/ca44c6c7f9314868bdc521aea4f77cbf@MP-MSGSS-MBX004.msg.nttdata.co.jp

Also change the deactivation routine to delete all segment files rather
than leaving the last one around.  (This doesn't need separate
WAL-logging, because on recovery we execute the same deactivation
routine anyway.)

In passing, clean up the code structure somewhat, particularly so that
xlog.c doesn't know so much about when to activate/deactivate the
feature.

Thanks to Fujii Masao for testing and Petr Jelínek for off-list discussion.

Back-patch to 9.5, where commit_ts was introduced.
2015-10-01 15:06:55 -03:00
..
brin Add missing ReleaseBuffer call in BRIN revmap code 2015-09-11 15:29:46 -03:00
common Allow per-tablespace effective_io_concurrency 2015-09-08 12:51:42 -03:00
gin Allow autoanalyze to add pages deleted from pending list to FSM 2015-09-23 15:33:51 +03:00
gist Fix bug introduced by microvacuum for GiST 2015-09-17 14:22:37 +03:00
hash Remove unnecessary variables in _hash_splitbucket(). 2015-04-03 16:49:44 -04:00
heap Fix misc typos. 2015-09-05 11:35:49 +03:00
index Plug RLS related information leak in pg_stats view. 2015-07-28 13:21:22 -07:00
nbtree Avoid calling PageGetSpecialPointer() on an all-zeros page. 2015-07-27 12:24:27 +03:00
rmgrdesc Code review for transaction commit timestamps 2015-09-29 14:40:56 -03:00
spgist Don't assume that PageIsEmpty() returns true on an all-zeros page. 2015-07-27 18:54:09 +03:00
tablesample Dodge portability issue (apparent compiler bug) in new tablesample code. 2015-07-25 19:42:32 -04:00
transam Fix commit_ts for standby 2015-10-01 15:06:55 -03:00
Makefile TABLESAMPLE, SQL Standard and extensible 2015-05-15 14:37:10 -04:00