WAL shipping with archive_timeout & pg_switch_xlog()

From: wstrzalka <wstrzalka(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: WAL shipping with archive_timeout & pg_switch_xlog()
Date: 2008-04-23 13:41:40
Message-ID: dec0eb7f-f588-423a-9c7c-5abed5d0f922@a22g2000hsc.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I have a question if it is possible that having archive_timeout set up
it will behave like pg_switch_xlog() in the term of non creating new
WAL when there are no changes in the database.

archive_timeout is used for WAL shipping to standby server in my case
(are there any other reasons?), but WAL is switched by the timeout
even if there are no changes on the server. pg_switch_xlog() is more
intelligent in this manner.
My case is that there are periods of time with no writes to database -
but the logs are continuously shipped. I would like to save some
resources if it's possible to change the default behavior.

I'm using PG 8.3.1

Thanks
Wojtek Strzalka

Responses

Browse pgsql-general by date

  From Date Subject
Next Message wstrzalka 2008-04-23 13:58:48 Re: WAL shipping with archive_timeout & pg_switch_xlog()
Previous Message Kerri Reno 2008-04-23 13:23:01 Re: FW: Re: create temp in function