From: | Fujii Masao <masao(dot)fujii(at)gmail(dot)com> |
---|---|
To: | Andres Freund <andres(at)2ndquadrant(dot)com> |
Cc: | Jeff Davis <pgsql(at)j-davis(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Simon Riggs <simon(at)2ndquadrant(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: [9.4] Make full_page_writes only settable on server start? |
Date: | 2013-09-05 04:23:19 |
Message-ID: | CAHGQGwGYtiskKskWNQpB4rCgywq64vFtr_pSaRSy+zYVtfWXZQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Thu, Sep 5, 2013 at 1:55 AM, Andres Freund <andres(at)2ndquadrant(dot)com> wrote:
> On 2013-09-04 09:23:20 -0700, Jeff Davis wrote:
>> On Wed, 2013-09-04 at 11:32 -0400, Tom Lane wrote:
>> > Jeff Davis <pgsql(at)j-davis(dot)com> writes:
>> > > I think code complexity matters quite a lot. If we can eliminate some
>> > > complex code in a complex area, and all we give up is a feature with
>> > > essentially no use case, that sounds like we're moving in the right
>> > > direction to me.
>> >
>> > Isn't this whole discussion academic in view of Andres' point?
>>
>> Maybe "complex code" was an overstatement. We'd be able to eliminate the
>> XLOG_FPW_CHANGE, UpdateFullPageWrites(), and one of the members of
>> XLogCtlInsert; and make xlog.c slightly shorter in the process.
>
> That path is also executed during a normal restart and during
> promotion. Check the invocation of UpdateFullPageWrites() in
> StartupXLOG(). Note that a standby needs to be able to follow a
> primaries full_page_writes setting during a promotion.
Yes, this is required for the backup from the standby.
If we make the GUC contect to PGC_POSTMASTER, I think that
we can remove XLOG_FPW_CHANGE and treat full_page_writes
the same way as wal_level, max_connections, i.e., the parameter
which CheckRequiredParameterValues() handles.
Regards,
--
Fujii Masao
From | Date | Subject | |
---|---|---|---|
Next Message | wangshuo | 2013-09-05 05:06:19 | Re: Is it necessary to rewrite table while increasing the scale of datatype numeric? |
Previous Message | Atri Sharma | 2013-09-05 03:54:57 | Re: [rfc] overhauling pgstat.stat |