postgresql/src/backend/access
Robert Haas 09c2e7cd2f hash: Fix write-ahead logging bugs related to init forks.
One, logging for CREATE INDEX was oblivious to the fact that when
an unlogged table is created, *only* operations on the init fork
should be logged.

Two, init fork buffers need to be flushed after they are written;
otherwise, a filesystem-level copy following recovery may do the
wrong thing.  (There may be a better fix for this issue than the
one used here, but this is transposed from the similar logic already
present in XLogReadBufferForRedoExtended, and a broader refactoring
after beta2 seems inadvisable.)

Amit Kapila, reviewed by Ashutosh Sharma, Kyotaro Horiguchi,
and Michael Paquier

Discussion: http://postgr.es/m/CAA4eK1JpcMsEtOL_J7WODumeEfyrPi7FPYHeVdS7fyyrCrgp4w@mail.gmail.com
2017-07-17 12:03:35 -04:00
..
brin Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
common Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
gin Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
gist Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
hash hash: Fix write-ahead logging bugs related to init forks. 2017-07-17 12:03:35 -04:00
heap Fix potential data corruption during freeze 2017-07-06 17:18:55 +03:00
index Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
nbtree Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
rmgrdesc Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
spgist Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
tablesample Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
transam Fix typo in comment 2017-06-30 14:48:43 -04:00
Makefile TABLESAMPLE, SQL Standard and extensible 2015-05-15 14:37:10 -04:00