Re: pg_standby stuck on a wal file size <16MB - Mailing list pgsql-general

From Vlad Kosilov
Subject Re: pg_standby stuck on a wal file size <16MB
Date
Msg-id 482F75E2.8080206@contigo.com
Whole thread Raw
In response to Re: pg_standby stuck on a wal file size <16MB  (Ioannis Tambouras <ioannis@akroninc.net>)
Responses Re: pg_standby stuck on a wal file size <16MB  ("Gurjeet Singh" <singh.gurjeet@gmail.com>)
List pgsql-general
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?
thanks,
V.
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@contigo.com
www.contigo.com
________________________________________


pgsql-general by date:

Previous
From: Vlad Kosilov
Date:
Subject: Re: pg_standby stuck on a wal file size <16MB
Next
From: "Gurjeet Singh"
Date:
Subject: Re: pg_standby stuck on a wal file size <16MB