pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
archive_log command...
5+ messages / 3 participants
[nested] [flat]

* archive_log command...
@ 2006-06-21 09:47 Mario Splivalo <mario.splivalo@mobart.hr>
  2006-06-22 01:30 ` Re: archive_log command... Bruce Momjian <bruce@momjian.us>
  0 siblings, 1 reply; 5+ messages in thread

From: Mario Splivalo @ 2006-06-21 09:47 UTC (permalink / raw)
  To: pgsql-admin

Can I force archiving of the WAL files using CHECKPOINT statement? My
checkpoing_segments is set to 32, but still archive_command is beeing
called up only every 45 minutes or so. Is there a way to speed this up a
bit? (I'd love to have it around 10 minutes, so I can have almost-live
backed-up server).

	Mario
-- 
Mario Splivalo
Mob-Art
mario.splivalo@mobart.hr

"I can do it quick, I can do it cheap, I can do it well. Pick any two."





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

* Re: archive_log command...
  2006-06-21 09:47 archive_log command... Mario Splivalo <mario.splivalo@mobart.hr>
@ 2006-06-22 01:30 ` Bruce Momjian <bruce@momjian.us>
  2006-06-22 10:41   ` Re: archive_log command... Mario Splivalo <mario.splivalo@mobart.hr>
  0 siblings, 1 reply; 5+ messages in thread

From: Bruce Momjian @ 2006-06-22 01:30 UTC (permalink / raw)
  To: mario.splivalo@mobart.hr; +Cc: pgsql-admin

Mario Splivalo wrote:
> Can I force archiving of the WAL files using CHECKPOINT statement? My
> checkpoing_segments is set to 32, but still archive_command is beeing
> called up only every 45 minutes or so. Is there a way to speed this up a
> bit? (I'd love to have it around 10 minutes, so I can have almost-live
> backed-up server).

No, but it is on the TODO list.

-- 
  Bruce Momjian   bruce@momjian.us
  EnterpriseDB    http://www.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +



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

* Re: archive_log command...
  2006-06-21 09:47 archive_log command... Mario Splivalo <mario.splivalo@mobart.hr>
  2006-06-22 01:30 ` Re: archive_log command... Bruce Momjian <bruce@momjian.us>
@ 2006-06-22 10:41   ` Mario Splivalo <mario.splivalo@mobart.hr>
  2006-06-23 05:42     ` Re: archive_log command... Bruce Momjian <bruce@momjian.us>
  0 siblings, 1 reply; 5+ messages in thread

From: Mario Splivalo @ 2006-06-22 10:41 UTC (permalink / raw)
  To: Bruce Momjian <bruce@momjian.us>; +Cc: pgsql-admin

On Wed, 2006-06-21 at 21:30 -0400, Bruce Momjian wrote:
> Mario Splivalo wrote:
> > Can I force archiving of the WAL files using CHECKPOINT statement? My
> > checkpoing_segments is set to 32, but still archive_command is beeing
> > called up only every 45 minutes or so. Is there a way to speed this up a
> > bit? (I'd love to have it around 10 minutes, so I can have almost-live
> > backed-up server).
> 
> No, but it is on the TODO list.
> 

So, the only thing I could to is to reduce checkpoint_segments?

	Mario




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

* Re: archive_log command...
  2006-06-21 09:47 archive_log command... Mario Splivalo <mario.splivalo@mobart.hr>
  2006-06-22 01:30 ` Re: archive_log command... Bruce Momjian <bruce@momjian.us>
  2006-06-22 10:41   ` Re: archive_log command... Mario Splivalo <mario.splivalo@mobart.hr>
@ 2006-06-23 05:42     ` Bruce Momjian <bruce@momjian.us>
  2006-06-28 00:17       ` Re: archive_log command... Jim Nasby <jnasby@pervasive.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Bruce Momjian @ 2006-06-23 05:42 UTC (permalink / raw)
  To: mario.splivalo@mobart.hr; +Cc: pgsql-admin

Mario Splivalo wrote:
> On Wed, 2006-06-21 at 21:30 -0400, Bruce Momjian wrote:
> > Mario Splivalo wrote:
> > > Can I force archiving of the WAL files using CHECKPOINT statement? My
> > > checkpoing_segments is set to 32, but still archive_command is beeing
> > > called up only every 45 minutes or so. Is there a way to speed this up a
> > > bit? (I'd love to have it around 10 minutes, so I can have almost-live
> > > backed-up server).
> > 
> > No, but it is on the TODO list.
> > 
> 
> So, the only thing I could to is to reduce checkpoint_segments?

No, that doesn't help because a partially-filled WAL file with little
database activity could be stay unarchived for a long time.

-- 
  Bruce Momjian   bruce@momjian.us
  EnterpriseDB    http://www.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +



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

* Re: archive_log command...
  2006-06-21 09:47 archive_log command... Mario Splivalo <mario.splivalo@mobart.hr>
  2006-06-22 01:30 ` Re: archive_log command... Bruce Momjian <bruce@momjian.us>
  2006-06-22 10:41   ` Re: archive_log command... Mario Splivalo <mario.splivalo@mobart.hr>
  2006-06-23 05:42     ` Re: archive_log command... Bruce Momjian <bruce@momjian.us>
@ 2006-06-28 00:17       ` Jim Nasby <jnasby@pervasive.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Jim Nasby @ 2006-06-28 00:17 UTC (permalink / raw)
  To: Bruce Momjian <bruce@momjian.us>; +Cc: mario.splivalo@mobart.hr; pgsql-admin

On Jun 23, 2006, at 12:42 AM, Bruce Momjian wrote:
> Mario Splivalo wrote:
>> On Wed, 2006-06-21 at 21:30 -0400, Bruce Momjian wrote:
>>> Mario Splivalo wrote:
>>>> Can I force archiving of the WAL files using CHECKPOINT  
>>>> statement? My
>>>> checkpoing_segments is set to 32, but still archive_command is  
>>>> beeing
>>>> called up only every 45 minutes or so. Is there a way to speed  
>>>> this up a
>>>> bit? (I'd love to have it around 10 minutes, so I can have  
>>>> almost-live
>>>> backed-up server).
>>>
>>> No, but it is on the TODO list.
>>>
>>
>> So, the only thing I could to is to reduce checkpoint_segments?
>
> No, that doesn't help because a partially-filled WAL file with little
> database activity could be stay unarchived for a long time.

You can however copy the active WAL file at any time, and as many  
times as you want. And there's recently been a function added that  
will tell you what that exact file is (I think it's only in HEAD, but  
I could be wrong).
--
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461



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


end of thread, other threads:[~2006-06-28 00:17 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-06-21 09:47 archive_log command... Mario Splivalo <mario.splivalo@mobart.hr>
2006-06-22 01:30 ` Bruce Momjian <bruce@momjian.us>
2006-06-22 10:41   ` Mario Splivalo <mario.splivalo@mobart.hr>
2006-06-23 05:42     ` Bruce Momjian <bruce@momjian.us>
2006-06-28 00:17       ` Jim Nasby <jnasby@pervasive.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