|From:||Michael Paquier <michael(dot)paquier(at)gmail(dot)com>|
|Cc:||PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>|
|Subject:||Re: Support for N synchronous standby servers - take 2|
|Views:||Raw Message | Whole Thread | Download mbox|
On Tue, Feb 9, 2016 at 12:16 PM, kharagesuraj <suraj(dot)kharage(at)nttdata(dot)com>
> >> I agree with first version, and attached the updated *patch* which are
> >> modified so that it supports simple multiple sync replication you
> >> (but test cases are not included yet.)
> I have tried for some basic in-built test cases for multisync rep.
> I have created one patch over Michael's <a href="
> http://www.postgresql.org/message-id/CAB7nPqTEqou=[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=5886503&i=0>">patch</a> patch.
> Still it is in progress.
> Please have look and correct me if i am wrong and suggest remaining test
So the interesting part of this patch is 006_sync_rep.pl. I think that you
had better build something on top of my patch as a separate patch. This
would make things clearer.
+my $result = $node_master->psql('postgres', "select application_name,
sync_state from pg_stat_replication;");
+print "$result \n";
'checked for sync standbys state initially');
Now regarding the test, you visibly got the idea, though I think that we'd
want to update a bit the parameters of postgresql.conf and re-run those
queries a couple of times, that's cheaper than having to re-create new
cluster nodes all the time, so just create a base, then switch s_s_names a
bit, and query pg_stat_replication, and you are already doing the latter.
Also, please attach patches directly to your emails. When loading something
on nabble this is located only there and not within postgresql.org which
would be annoying if nabble disappears at some point. You would also want
to use directly an email client and interact with the community mailing
lists this way instead of going through the nabble's forum-like interface
(never used it, not really willing to use it, but I guess that it is
similar to that).
I am attaching what you posted on this email for the archive's sake.
|Next Message||Kyotaro HORIGUCHI||2016-02-09 04:16:21||Re: Support for N synchronous standby servers - take 2|
|Previous Message||Amit Kapila||2016-02-09 04:00:50||Re: WAL Re-Writes|