diff options
author | Robert Haas <rhaas@postgresql.org> | 2017-07-17 12:03:35 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2017-07-17 12:03:35 -0400 |
commit | 09c2e7cd2ff0b884625c37ce8249832820c58710 (patch) | |
tree | 215a71f259bdf3dd5451fca4002fbc62d1c66fd4 /src/backend/executor/nodeModifyTable.c | |
parent | 2f7f45a64badec18ce75e44ca35c078f08e2651e (diff) | |
download | postgresql-09c2e7cd2ff0b884625c37ce8249832820c58710.tar.gz postgresql-09c2e7cd2ff0b884625c37ce8249832820c58710.zip |
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
Diffstat (limited to 'src/backend/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions