postgresql/src/backend
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
..
access Fix commit_ts for standby 2015-10-01 15:06:55 -03:00
bootstrap pgindent run for 9.5 2015-05-23 21:35:49 -04:00
catalog Determine whether it's safe to attempt a parallel plan for a query. 2015-09-16 15:38:47 -04:00
commands Fix errors in commit a04bb65f70. 2015-09-30 23:37:26 -04:00
executor Add a Gather executor node. 2015-09-30 19:23:36 -04:00
foreign Code review for foreign/custom join pushdown patch. 2015-05-10 14:36:36 -04:00
lib Avoid use of float arithmetic in bipartite_match.c. 2015-08-23 13:02:18 -04:00
libpq Support RADIUS passwords up to 128 characters 2015-09-06 14:31:53 +02:00
main Revoke support for strxfrm() that write past the specified array length. 2015-07-08 20:44:21 -04:00
nodes Fix readfuncs/outfuncs problems in last night's Gather patch. 2015-10-01 09:19:26 -04:00
optimizer Fix documentation error in commit 8703059c6b. 2015-10-01 10:32:11 -04:00
parser Determine whether it's safe to attempt a parallel plan for a query. 2015-09-16 15:38:47 -04:00
po Translation updates 2015-06-28 23:56:55 -04:00
port Rely on inline functions even if that causes warnings in older compilers. 2015-08-05 18:19:52 +02:00
postmaster Remove files signaling a standby promotion request at postmaster startup 2015-09-09 22:51:44 +09:00
regex Fix low-probability memory leak in regex execution. 2015-09-18 13:55:17 -04:00
replication Fix "sesssion" typo 2015-09-28 19:13:42 -03:00
rewrite Include policies based on ACLs needed 2015-09-30 07:39:24 -04:00
snowball Remove no-longer-required function declarations. 2015-05-24 12:20:23 -04:00
storage Use LOCKBIT_ON() instead of a bit shift in a few places. 2015-09-28 10:57:15 -04:00
tcop Glue layer to connect the executor to the shm_mq mechanism. 2015-09-18 21:56:58 -04:00
tsearch pgindent run for 9.5 2015-05-23 21:35:49 -04:00
utils Add a Gather executor node. 2015-09-30 19:23:36 -04:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
Makefile Fix build problems in commit aa65de042f. 2015-09-11 14:56:17 -04:00
common.mk Remove maintainer-check target, fold into normal build 2013-10-10 20:11:56 -04:00
nls.mk Remove trailing slashes from directories in find command 2015-09-18 22:06:54 -04:00