Re: pg_standby stuck on a wal file size <16MB

From: "Gurjeet Singh" <singh(dot)gurjeet(at)gmail(dot)com>
To: "Vlad Kosilov" <vkosilov(at)contigo(dot)com>
Cc: "Ioannis Tambouras" <ioannis(at)akroninc(dot)net>, pgsql-general(at)postgresql(dot)org
Subject: Re: pg_standby stuck on a wal file size <16MB
Date: 2008-05-18 02:39:46
Message-ID: 65937bea0805171939r3e11985ekddd5dbdc50542483@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, May 18, 2008 at 5:48 AM, Vlad Kosilov <vkosilov(at)contigo(dot)com> wrote:

> is this wrong of me to expect that postgres would not make a wal file
> available to archive_command unless it was completely ready to let go of
> that wal file?
>

thats a perfectly reasonable expectation; and thats exactly how it works.

>
> Ioannis Tambouras wrote:
>
>> archive_command = 'test ! -f /usr/local/wal_archive_local/%f && cp %p
>>> /usr/local/wal_archive_local/%f'
>>>
>>>
>>
>> The archive command tests if the wal segment exists and is a file, but it
>> does not check if the file is still being written. You need to copy the file
>> after writing has finished (it reached 16777216 bytes). I don't have sources
>> of pg_standby near me, but I remember in the
>> C code checks for complete segment sizes.
>>
>>
>> thanks
>> Ioannis Tambouras
>>
>>
>>
>>
>
>
> --
> ________________________________________
> Vladimir (Vlad) Kosilov
> Senior Systems Administrator
> Contigo Systems Inc.
> 604.683.3106 (phone)
> 604.648.9886 (fax)
> vkosilov(at)contigo(dot)com
> www.contigo.com
> ________________________________________
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>

--
gurjeet[(dot)singh](at)EnterpriseDB(dot)com
singh(dot)gurjeet(at){ gmail | hotmail | indiatimes | yahoo }.com

EnterpriseDB http://www.enterprisedb.com

Mail sent from my BlackLaptop device

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Reuben D. Budiardja 2008-05-18 02:51:39 Link tables from different databases
Previous Message Vlad Kosilov 2008-05-18 00:18:42 Re: pg_standby stuck on a wal file size <16MB