pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #11518: full_page_writes is off after executing pg_start_backup()
2+ messages / 2 participants
[nested] [flat]

* BUG #11518: full_page_writes is off after executing pg_start_backup()
@ 2014-09-29 16:18  sudalait2@gmail.com
  0 siblings, 1 reply; 2+ messages in thread

From: sudalait2@gmail.com @ 2014-09-29 16:18 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      11518
Logged by:          sudalai
Email address:      sudalait2@gmail.com
PostgreSQL version: 9.2.2
Operating system:   ubuntu
Description:        

Hi,
   The documentation says, full_page_writes is forcibly ON between
pg_start_backup() and pg_stop_backup(). 
    I started the server with full_page_writes=off. And i executed
pg_start_up(), the full_page_writes is not changed. I executed "show
full_page_writes" it shows OFF.
But it should be On.




-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #11518: full_page_writes is off after executing pg_start_backup()
@ 2014-09-30 05:15  Michael Paquier <michael.paquier@gmail.com>
  parent: sudalait2@gmail.com
  0 siblings, 0 replies; 2+ messages in thread

From: Michael Paquier @ 2014-09-30 05:15 UTC (permalink / raw)
  To: sudalait2@gmail.com; +Cc: pgsql-bugs

On Tue, Sep 30, 2014 at 1:18 AM, <sudalait2@gmail.com> wrote:

>    The documentation says, full_page_writes is forcibly ON between
> pg_start_backup() and pg_stop_backup().
>     I started the server with full_page_writes=off. And i executed
> pg_start_up(), the full_page_writes is not changed. I executed "show
> full_page_writes" it shows OFF.
> But it should be On.
>
There are two things controlling full_page_writes in the backend:
- The GUC parameter, which is the output result of what you can see with
pg_settings or SHOW
- A flag in the structure called XLogCtl, defined at the top of xlog.c in
shared memory that is used to control the state of XLOGs, and defined
depending on the value of the GUC full_page_writes or the state of system
like a server in backup state. It is actually this shared memory flag that
is updated when pg_start_backup is used. Only the flag in shared memory is
enforced to true when pg_start_backup is kicked, meaning that the value
update is actually not visible for the user, but for the system it is in
shared memory.
This is not a bug.
-- 
Michael

^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2014-09-30 05:15 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-09-29 16:18 BUG #11518: full_page_writes is off after executing pg_start_backup() sudalait2@gmail.com
2014-09-30 05:15 ` Michael Paquier <michael.paquier@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox