postgresql/src/backend
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
..
access hash: Fix write-ahead logging bugs related to init forks. 2017-07-17 12:03:35 -04:00
bootstrap Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
catalog Code review for NextValueExpr expression node type. 2017-07-14 15:25:43 -04:00
commands Fix COPY's handling of transition tables with indexes. 2017-07-10 11:40:08 +01:00
executor Improve comments for execExpr.c's handling of FieldStore subexpressions. 2017-07-15 16:57:43 -04:00
foreign Abstract logic to allow for multiple kinds of child rels. 2017-04-03 22:41:31 -04:00
lib Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
libpq Treat clean shutdown of an SSL connection same as the non-SSL case. 2017-07-03 14:51:51 +03:00
main Change pg_ctl to detect server-ready by watching status in postmaster.pid. 2017-06-28 17:31:32 -04:00
nodes Code review for NextValueExpr expression node type. 2017-07-14 15:25:43 -04:00
optimizer Code review for NextValueExpr expression node type. 2017-07-14 15:25:43 -04:00
parser Re-allow SRFs and window functions within sub-selects within aggregates. 2017-06-27 17:51:11 -04:00
po Translation updates 2017-07-10 11:53:55 -04:00
port Change pg_ctl to detect server-ready by watching status in postmaster.pid. 2017-06-28 17:31:32 -04:00
postmaster On Windows, retry process creation if we fail to reserve shared memory. 2017-07-10 11:00:09 -04:00
regex Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
replication Fix ordering of operations in SyncRepWakeQueue to avoid assertion failure. 2017-07-12 15:30:52 +03:00
rewrite Fix multiple assignments to a column of a domain type. 2017-07-11 16:48:59 -04:00
snowball Initial pgindent run with pg_bsd_indent version 2.0. 2017-06-21 14:39:04 -04:00
statistics Fix typos in README.dependencies 2017-06-22 17:12:27 -04:00
storage Fix race between GetNewTransactionId and GetOldestActiveTransactionId. 2017-07-13 15:47:02 +03:00
tcop Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
tsearch Reduce memory usage of tsvector type analyze function. 2017-07-12 22:06:13 +03:00
utils Code review for NextValueExpr expression node type. 2017-07-14 15:25:43 -04:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
common.mk Add ICU_CFLAGS to global CPPFLAGS 2017-06-12 15:57:22 -04:00
Makefile Implement multivariate n-distinct coefficients 2017-03-24 14:06:10 -03:00
nls.mk Translation updates 2017-05-15 12:19:54 -04:00