Services
24×7×365 Technical Support
Migration to PostgreSQL
High Availability Deployment
Database Audit
Remote DBA for PostgreSQL
Products
Postgres Pro Enterprise
Postgres Pro Standard
Cloud Solutions
Postgres Extensions
Resources
Blog
Documentation
Webinars
Videos
Presentations
Community
Events
Training Courses
Books
Demo Database
Mailing List Archives
About
Leadership team
Partners
Customers
In the News
Press Releases
Press Info
Services
24×7×365 Technical Support
Migration to PostgreSQL
High Availability Deployment
Database Audit
Remote DBA for PostgreSQL
Products
Postgres Pro Enterprise
Postgres Pro Standard
Cloud Solutions
Postgres Extensions
Resources
Blog
Documentation
Webinars
Videos
Presentations
Community
Events
Training Courses
Books
Demo Database
Mailing List Archives
About
Leadership team
Partners
Customers
In the News
Press Releases
Press Info
Facebook
Downloads
Home
>
mailing lists
Re: Support for N synchronous standby servers - take 2 - Mailing list pgsql-hackers
From
Amit Kapila
Subject
Re: Support for N synchronous standby servers - take 2
Date
April 5, 2016
07:31:32
Msg-id
CAA4eK1L55ZgqZKFDQrtR7dnxuY+EYU3aPh+FV1avHgrxWierhg@mail.gmail.com
Whole thread
Raw
In response to
Re: Support for N synchronous standby servers - take 2
(Fujii Masao <masao.fujii@gmail.com>)
Responses
Re: Support for N synchronous standby servers - take 2
List
pgsql-hackers
Tree view
On Mon, Apr 4, 2016 at 1:58 PM, Fujii Masao <
masao.fujii@gmail.com
> wrote:
>
>
> Thanks for updating the patch!
>
> I applied the following changes to the patch.
> Attached is the revised version of the patch.
>
1.
{
{"synchronous_standby_names", PGC_SIGHUP, REPLICATION_MASTER,
gettext_noop("List of names of potential synchronous standbys."),
NULL,
GUC_LIST_INPUT
},
&SyncRepStandbyNames,
"",
check_synchronous_standby_names, NULL, NULL
},
Isn't it better to modify the description of synchronous_standby_names in guc.c based on new usage?
2.
pg_stat_get_wal_senders()
{
..
/*
!
* Allocate and update the config data of synchronous replication,
!
* and then get the currently active synchronous standbys.
*/
+
SyncRepUpdateConfig();
LWLockAcquire(SyncRepLock, LW_SHARED);
!
sync_standbys = SyncRepGetSyncStandbys();
LWLockRelease(SyncRepLock);
..
}
Why is it important to update the config with patch? Earlier also any update to config between calls wouldn't have been visible.
3.
<title>Planning for High Availability</title>
<para>
! <varname>synchronous_standby_names</> specifies the number of
! synchronous standbys that transaction commits made when
Is it better to say like: <varname>synchronous_standby_names</> specifies the number and names of
4.
+ /*
+ * Return the list of sync standbys, or NIL if no sync standby is connected.
+ *
+ * If there are multiple standbys with the same priority,
+ * the first one found is considered as higher priority.
Here line indentation of second line can be improved.
5.
!
/*
!
* syncrep_yyparse sets the global syncrep_parse_result as side effect.
!
* But this function is required to just check, so frees it
!
* once parsing parameter.
!
*/
!
SyncRepFreeConfig(syncrep_parse_result);
How about below change in comment?
/so frees it once parsing parameter/so frees it after parsing the parameter
With Regards,
Amit Kapila.
EnterpriseDB:
http://www.enterprisedb.com
pgsql-hackers
by date:
Previous
From:
Dilip Kumar
Date:
05 April 2016, 07:26:52
Subject:
Re: Move PinBuffer and UnpinBuffer to atomics
Next
From:
Simon Riggs
Date:
05 April 2016, 07:35:59
Subject:
Re: Support for N synchronous standby servers - take 2
Есть вопросы? Напишите нам!
Соглашаюсь с условиями обработки персональных данных
I confirm that I have read and accepted PostgresPro’s
Privacy Policy
.
I agree to get Postgres Pro discount offers and other marketing communications.
✖
×
×
Everywhere
Documentation
Mailing list
List:
all lists
pgsql-general
pgsql-hackers
buildfarm-members
pgadmin-hackers
pgadmin-support
pgsql-admin
pgsql-advocacy
pgsql-announce
pgsql-benchmarks
pgsql-bugs
pgsql-chat
pgsql-cluster-hackers
pgsql-committers
pgsql-cygwin
pgsql-docs
pgsql-hackers-pitr
pgsql-hackers-win32
pgsql-interfaces
pgsql-jdbc
pgsql-jobs
pgsql-novice
pgsql-odbc
pgsql-patches
pgsql-performance
pgsql-php
pgsql-pkg-debian
pgsql-pkg-yum
pgsql-ports
pgsql-rrreviewers
pgsql-ru-general
pgsql-sql
pgsql-students
pgsql-testers
pgsql-translators
pgsql-www
psycopg
Period
anytime
within last day
within last week
within last month
within last 6 months
within last year
Sort by
date
reverse date
rank
Services
24×7×365 Technical Support
Migration to PostgreSQL
High Availability Deployment
Database Audit
Remote DBA for PostgreSQL
Products
Postgres Pro Enterprise
Postgres Pro Standard
Cloud Solutions
Postgres Extensions
Resources
Blog
Documentation
Webinars
Videos
Presentations
Community
Events
Training Courses
Books
Demo Database
Mailing List Archives
About
Leadership team
Partners
Customers
In the News
Press Releases
Press Info
By continuing to browse this website, you agree to the use of cookies. Go to
Privacy Policy
.
I accept cookies