postgresql/src/backend/commands
Alvaro Herrera 4f3924d9cd Keep CommitTs module in sync in standby and master
We allow this module to be turned off on restarts, so a restart time
check is enough to activate or deactivate the module; however, if there
is a standby replaying WAL emitted from a master which is restarted, but
the standby isn't, the state in the standby becomes inconsistent and can
easily be crashed.

Fix by activating and deactivating the module during WAL replay on
parameter change as well as on system start.

Problem reported by Fujii Masao in
http://www.postgresql.org/message-id/CAHGQGwFhJ3CnHo1CELEfay18yg_RA-XZT-7D8NuWUoYSZ90r4Q@mail.gmail.com

Author: Petr Jelínek
2015-03-09 17:44:00 -03:00
..
aggregatecmds.c Change many routines to return ObjectAddress rather than OID 2015-03-03 14:10:50 -03:00
alter.c Allow CURRENT/SESSION_USER to be used in certain commands 2015-03-09 15:41:54 -03:00
analyze.c Use abbreviated keys for faster sorting of text datums. 2015-01-19 15:28:27 -05:00
async.c Use FLEXIBLE_ARRAY_MEMBER in a number of other places. 2015-02-21 16:12:14 -05:00
cluster.c Change many routines to return ObjectAddress rather than OID 2015-03-03 14:10:50 -03:00
collationcmds.c Change many routines to return ObjectAddress rather than OID 2015-03-03 14:10:50 -03:00
comment.c Change many routines to return ObjectAddress rather than OID 2015-03-03 14:10:50 -03:00
constraint.c Update copyright for 2015 2015-01-06 11:43:47 -05:00
conversioncmds.c Change many routines to return ObjectAddress rather than OID 2015-03-03 14:10:50 -03:00
copy.c Be more careful to not lose sync in the FE/BE protocol. 2015-02-02 17:09:53 +02:00
createas.c Change many routines to return ObjectAddress rather than OID 2015-03-03 14:10:50 -03:00
dbcommands.c Move WAL-related definitions from dbcommands.h to separate header file. 2015-03-09 15:50:49 +02:00
define.c Update copyright for 2015 2015-01-06 11:43:47 -05:00
discard.c Update copyright for 2015 2015-01-06 11:43:47 -05:00
dropcmds.c Update copyright for 2015 2015-01-06 11:43:47 -05:00
event_trigger.c Change many routines to return ObjectAddress rather than OID 2015-03-03 14:10:50 -03:00
explain.c Fix EXPLAIN output for cases where parent table is excluded by constraints. 2015-02-17 18:04:11 -05:00
extension.c Allow CURRENT/SESSION_USER to be used in certain commands 2015-03-09 15:41:54 -03:00
foreigncmds.c Allow CURRENT/SESSION_USER to be used in certain commands 2015-03-09 15:41:54 -03:00
functioncmds.c Change many routines to return ObjectAddress rather than OID 2015-03-03 14:10:50 -03:00
indexcmds.c Code cleanup for REINDEX DATABASE/SCHEMA/SYSTEM. 2015-03-08 12:18:43 -04:00
lockcmds.c Update copyright for 2015 2015-01-06 11:43:47 -05:00
Makefile Row-Level Security Policies (RLS) 2014-09-19 11:18:35 -04:00
matview.c Change many routines to return ObjectAddress rather than OID 2015-03-03 14:10:50 -03:00
opclasscmds.c Change many routines to return ObjectAddress rather than OID 2015-03-03 14:10:50 -03:00
operatorcmds.c Change many routines to return ObjectAddress rather than OID 2015-03-03 14:10:50 -03:00
policy.c Allow CURRENT/SESSION_USER to be used in certain commands 2015-03-09 15:41:54 -03:00
portalcmds.c Update copyright for 2015 2015-01-06 11:43:47 -05:00
prepare.c Use FLEXIBLE_ARRAY_MEMBER in a bunch more places. 2015-02-20 00:11:42 -05:00
proclang.c Change many routines to return ObjectAddress rather than OID 2015-03-03 14:10:50 -03:00
schemacmds.c Allow CURRENT/SESSION_USER to be used in certain commands 2015-03-09 15:41:54 -03:00
seclabel.c Change many routines to return ObjectAddress rather than OID 2015-03-03 14:10:50 -03:00
sequence.c Change many routines to return ObjectAddress rather than OID 2015-03-03 14:10:50 -03:00
tablecmds.c Allow CURRENT/SESSION_USER to be used in certain commands 2015-03-09 15:41:54 -03:00
tablespace.c Allow CURRENT/SESSION_USER to be used in certain commands 2015-03-09 15:41:54 -03:00
trigger.c Change many routines to return ObjectAddress rather than OID 2015-03-03 14:10:50 -03:00
tsearchcmds.c Change many routines to return ObjectAddress rather than OID 2015-03-03 14:10:50 -03:00
typecmds.c Change many routines to return ObjectAddress rather than OID 2015-03-03 14:10:50 -03:00
user.c Fix crasher bugs in previous commit 2015-03-09 17:00:43 -03:00
vacuum.c Keep CommitTs module in sync in standby and master 2015-03-09 17:44:00 -03:00
vacuumlazy.c Fix logging of pages skipped due to pins during vacuum. 2015-01-08 12:57:09 +01:00
variable.c Update copyright for 2015 2015-01-06 11:43:47 -05:00
view.c Change many routines to return ObjectAddress rather than OID 2015-03-03 14:10:50 -03:00