postgresql/src/include
Heikki Linnakangas 7cbee7c0a1 At promotion, don't leave behind a partial segment on the old timeline.
With commit de768844, a copy of the partial segment was archived with the
.partial suffix, but the original file was still left in pg_xlog, so it
didn't actually solve the problems with archiving the partial segment that
it was supposed to solve. With this patch, the partial segment is renamed
rather than copied, so we only archive it with the .partial suffix.

Also be more robust in detecting if the last segment is already being
archived. Previously I used XLogArchiveIsBusy() for that, but that's not
quite right. With archive_mode='always', there might be a .ready file for
it, and we don't want to rename it to .partial in that case.

The old segment is needed until we're fully committed to the new timeline,
i.e. until we've written the end-of-recovery WAL record and updated the
min recovery point and timeline in the control file. So move the renaming
later in the startup sequence, after all that's been done.
2015-05-22 11:04:33 +03:00
..
access At promotion, don't leave behind a partial segment on the old timeline. 2015-05-22 11:04:33 +03:00
bootstrap Tweak __attribute__-wrapping macros for better pgindent results. 2015-03-26 14:03:25 -04:00
catalog Collection of typo fixes. 2015-05-20 16:56:22 +03:00
commands Put back a backwards-compatible version of sampling support functions. 2015-05-18 18:34:37 -04:00
common Reorganize our CRC source files again. 2015-04-14 17:03:42 +03:00
datatype Define integer limits independently from the system definitions. 2015-04-02 17:43:35 +02:00
executor TABLESAMPLE, SQL Standard and extensible 2015-05-15 14:37:10 -04:00
foreign Add support for doing late row locking in FDWs. 2015-05-12 14:10:17 -04:00
lib Support GROUPING SETS, CUBE and ROLLUP. 2015-05-16 03:46:31 +02:00
libpq Create an infrastructure for parallel computation in PostgreSQL. 2015-04-30 15:02:14 -04:00
mb Teach UtfToLocal/LocalToUtf to support algorithmic encoding conversions. 2015-05-14 22:27:12 -04:00
nodes Refactor ON CONFLICT index inference parse tree representation. 2015-05-19 21:21:27 +02:00
optimizer Support GROUPING SETS, CUBE and ROLLUP. 2015-05-16 03:46:31 +02:00
parser Support GROUPING SETS, CUBE and ROLLUP. 2015-05-16 03:46:31 +02:00
port Collection of typo fixes. 2015-05-20 16:56:22 +03:00
portability Use mmap MAP_NOSYNC option to limit shared memory writes 2015-03-21 22:06:19 -04:00
postmaster At promotion, archive last segment from old timeline with .partial suffix. 2015-05-08 21:59:01 +03:00
regex Update copyright for 2015 2015-01-06 11:43:47 -05:00
replication Collection of typo fixes. 2015-05-20 16:56:22 +03:00
rewrite Collection of typo fixes. 2015-05-20 16:56:22 +03:00
snowball Update copyright for 2015 2015-01-06 11:43:47 -05:00
storage Improve packing/alignment annotation for ItemPointerData. 2015-05-21 17:21:46 -04:00
tcop Allow on-the-fly capture of DDL event details 2015-05-11 19:14:31 -03:00
tsearch Fix statically allocated struct with FLEXIBLE_ARRAY_MEMBER member. 2015-02-20 17:50:18 -05:00
utils Fix more typos in comments. 2015-05-20 19:45:43 +03:00
.gitignore Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
c.h Fix more typos in comments. 2015-05-20 19:45:43 +03:00
fmgr.h Create an infrastructure for parallel computation in PostgreSQL. 2015-04-30 15:02:14 -04:00
funcapi.h Add transforms feature 2015-04-26 10:33:14 -04:00
getaddrinfo.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
getopt_long.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
Makefile Install all headers for the new atomics API. 2014-10-02 16:52:21 +02:00
miscadmin.h Add new OID alias type regrole 2015-05-09 13:06:49 -04:00
pg_config.h.in Use Intel SSE 4.2 CRC instructions where available. 2015-04-14 17:05:03 +03:00
pg_config.h.win32 Oops, fix misspelled #endif 2015-04-14 22:00:52 +03:00
pg_config_ext.h.in Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
pg_config_ext.h.win32 Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
pg_config_manual.h Define integer limits independently from the system definitions. 2015-04-02 17:43:35 +02:00
pg_getopt.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
pg_trace.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
pgstat.h Add system view pg_stat_ssl 2015-04-12 19:07:46 +02:00
pgtar.h Error when creating names too long for tar format 2015-02-24 13:41:07 -05:00
pgtime.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
port.h Revert error-throwing wrappers for the printf family of functions. 2015-05-19 18:19:38 -04:00
postgres.h Support "expanded" objects, particularly arrays, for better performance. 2015-05-14 12:08:49 -04:00
postgres_ext.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
postgres_fe.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
rusagestub.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
windowapi.h Update copyright for 2015 2015-01-06 11:43:47 -05:00