From: | Petr Jelinek <petr(at)2ndquadrant(dot)com> |
---|---|
To: | Robert Haas <robertmhaas(at)gmail(dot)com>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
Cc: | Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, oonishitk(at)nttdata(dot)co(dot)jp, pgsql-docs <pgsql-docs(at)postgresql(dot)org>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: [HACKERS] max_worker_processes on the standby |
Date: | 2015-10-17 21:37:33 |
Message-ID: | 5622BF9D.2010409@2ndquadrant.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs pgsql-hackers |
On 2015-10-02 22:02, Robert Haas wrote:
> On Fri, Oct 2, 2015 at 2:59 PM, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> wrote:
>> Robert Haas wrote:
>>> The standby can have the feature enabled even though the master has it
>>> disabled? That seems like it can only lead to heartache.
>>
>> Can you elaborate?
>
> Sort of. Our rule up until now has always been that the standby is an
> exact copy of the master. I suspect deviating from that behavior will
> introduce bugs. I suspect having the standby make data changes that
> aren't WAL-logged will introduce bugs; not to be unkind, but that
> certainly seems like a lesson to take from what happened with
> multixacts.
>
I agree with that sentiment.
Attached patch adds variable to the shmem which is used for module
activation tracking - set to true in ActiveCommitTs() and false in
DeactivateCommitTs(). All the checks inside the commit_ts code were
changed to use this new variable. I also removed the static variable
Alvaro added in previous commit because it's not needed anymore.
The patch also does full cleanup of the shmem state in
DeactivateCommitTs() so that standby does not have stale last committed
transaction info after enable/disable/enable cycle on primary
I also removed no longer used do_wal parameters in couple of functions.
--
Petr Jelinek http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
Attachment | Content-Type | Size |
---|---|---|
committs-activation-fixes.patch | application/x-patch | 7.8 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Kisung Kim | 2015-10-18 10:33:33 | Request for writing a preface the Korean PostgreSQL documentation book |
Previous Message | Stephen Frost | 2015-10-16 14:01:49 | Re: sepgsql and row-level security |
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2015-10-17 22:17:37 | Re: a raft of parallelism-related bug fixes |
Previous Message | Alvaro Herrera | 2015-10-17 20:52:03 | Re: Dangling Client Backend Process |