From gwilk@ellacoya.com Wed Jun 20 17:26:45 2007 Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 26C559FB569 for ; Wed, 20 Jun 2007 14:26:45 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 27876-01 for ; Wed, 20 Jun 2007 14:26:39 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 8A65F9FBEDF for ; Wed, 20 Jun 2007 14:26:40 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from mail02.ellacoya.com (67-135-29-172.dia.static.qwest.net [67.135.29.172]) by svr4.postgresql.org (Postfix) with ESMTP id 23D8A5AF028 for ; Wed, 20 Jun 2007 17:26:39 +0000 (GMT) Received: from YZANGXP ([192.168.123.13]) by mail02.ellacoya.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 20 Jun 2007 13:26:36 -0400 From: "George Wilk" To: Subject: checkpoint_timeout irrelevant in 8.1.9 Date: Wed, 20 Jun 2007 13:26:34 -0400 Message-ID: <002501c7b360$267ac1c0$0d7ba8c0@ellacoya.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0026_01C7B33E.9F6921C0" X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcezYCZUlpMUo7S2T3ClIGokxgdtmA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-OriginalArrivalTime: 20 Jun 2007 17:26:36.0972 (UTC) FILETIME=[27D2FEC0:01C7B360] X-TM-AS-Product-Ver: SMEX-8.0.0.1181-3.800.1026-15250.000 X-TM-AS-Result: No--16.243000-0.000000-31 X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.137 tagged_above=0 required=5 tests=BAYES_50=0.001, FORGED_RCVD_HELO=0.135, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200706/204 X-Sequence-Number: 25872 This is a multi-part message in MIME format. ------=_NextPart_000_0026_01C7B33E.9F6921C0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit According to the WAL config documentation correctly, checkpoints are created every checkpoint_segments log segments, or every checkpoint_timeout seconds, whichever comes first. However, it seems as though setting my checkpoint_timeout has no effect on checkpoint creation ( I have it set to 30 seconds). Forcing checkpoint by running psql -c CHECKPOINT mydb doesn't do the trick either. Checkpoints are created solely based on the checkpoint_segments logs reaching their configured size. This is not satisfactory in a low transaction volume environment. Any hints on how else can I trigger checkpoint? Thanks in advance, ~george ------=_NextPart_000_0026_01C7B33E.9F6921C0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

According to the WAL config documentation correctly, = checkpoints are created every checkpoint_timeout seconds, whichever comes first.  However, it seems as though = setting my checkpoint_timeout has no effect on checkpoint creation ( I have it set = to 30 seconds).  Forcing checkpoint by running psql –c CHECKPOINT mydb doesn’t do = the trick either.  Checkpoints are created solely based on the = checkpoint_segments logs reaching their configured size.

 

This is not satisfactory in a low transaction = volume environment.  Any hints on how else can I trigger = checkpoint?

 

Thanks in = advance,

 

~george

------=_NextPart_000_0026_01C7B33E.9F6921C0-- From jd@commandprompt.com Wed Jun 20 17:45:21 2007 Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id CF7149FB7BC for ; Wed, 20 Jun 2007 14:45:21 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 44968-03 for ; Wed, 20 Jun 2007 14:45:18 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from lists.commandprompt.com (host-254.commandprompt.net [207.173.203.254]) by postgresql.org (Postfix) with ESMTP id C339D9FB786 for ; Wed, 20 Jun 2007 14:45:17 -0300 (ADT) Received: from [192.168.1.50] (or-67-76-146-141.sta.embarqhsd.net [67.76.146.141]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id l5KHij9O010832; Wed, 20 Jun 2007 10:44:45 -0700 Message-ID: <467967D3.9070001@commandprompt.com> Date: Wed, 20 Jun 2007 10:45:55 -0700 From: "Joshua D. Drake" User-Agent: Thunderbird 1.5.0.12 (X11/20070604) MIME-Version: 1.0 To: George Wilk CC: pgsql-admin@postgresql.org Subject: Re: checkpoint_timeout irrelevant in 8.1.9 References: <002501c7b360$267ac1c0$0d7ba8c0@ellacoya.com> In-Reply-To: <002501c7b360$267ac1c0$0d7ba8c0@ellacoya.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: ClamAV version 0.88.5, clamav-milter version 0.88.5 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Wed, 20 Jun 2007 10:44:45 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/205 X-Sequence-Number: 25873 George Wilk wrote: > However, it seems as though setting=20 > my checkpoint_timeout has no effect on checkpoint creation ( I have it = > set to 30 seconds). Forcing checkpoint by running */psql =96c CHECKPOI= NT=20 > mydb/* doesn=92t do the trick either. Checkpoints are created solely=20 > based on the checkpoint_segments logs reaching their configured size. >=20 There is no such thing as checkpoint creation. Checkpoint timeout means=20 that at 30 seconds (based on checkpoint_timeout) it will checkpoint=20 unless it needs to do so sooner. Joshua D. Drake > =20 >=20 > This is not satisfactory in a low transaction volume environment. Any = > hints on how else can I trigger checkpoint? >=20 > =20 >=20 > Thanks in advance, >=20 > =20 >=20 > ~george >=20 --=20 =3D=3D=3D The PostgreSQL Company: Command Prompt, Inc. =3D=3D=3D Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240 Providing the most comprehensive PostgreSQL solutions since 1997 http://www.commandprompt.com/ Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate PostgreSQL Replication: http://www.commandprompt.com/products/ From alvherre@commandprompt.com Wed Jun 20 17:57:25 2007 Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 3A5879FBF53 for ; Wed, 20 Jun 2007 14:57:25 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 47896-03 for ; Wed, 20 Jun 2007 14:57:21 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from lists.commandprompt.com (host-254.commandprompt.net [207.173.203.254]) by postgresql.org (Postfix) with ESMTP id EA99E9FBF8F for ; Wed, 20 Jun 2007 14:57:19 -0300 (ADT) Received: from perhan.alvh.no-ip.org (190-13-143-52.bk13-dsl.surnet.cl [190.13.143.52]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id l5KHuYZl011206; Wed, 20 Jun 2007 10:56:46 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 1345C32A2C; Wed, 20 Jun 2007 13:56:29 -0400 (CLT) Date: Wed, 20 Jun 2007 13:56:29 -0400 From: Alvaro Herrera To: George Wilk Cc: pgsql-admin@postgresql.org Subject: Re: checkpoint_timeout irrelevant in 8.1.9 Message-ID: <20070620175629.GO30369@alvh.no-ip.org> References: <002501c7b360$267ac1c0$0d7ba8c0@ellacoya.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <002501c7b360$267ac1c0$0d7ba8c0@ellacoya.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: ClamAV version 0.88.5, clamav-milter version 0.88.5 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Wed, 20 Jun 2007 10:56:48 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/206 X-Sequence-Number: 25874 George Wilk wrote: > According to the WAL config documentation correctly, checkpoints are created > every > admin3.chm::/pg/runtime-config-wal.html#guc-checkpoint-segments> > checkpoint_segments log segments, or every > admin3.chm::/pg/runtime-config-wal.html#guc-checkpoint-timeout> > checkpoint_timeout seconds, whichever comes first. However, it seems as > though setting my checkpoint_timeout has no effect on checkpoint creation ( > I have it set to 30 seconds). Forcing checkpoint by running psql -c > CHECKPOINT mydb doesn't do the trick either. Checkpoints are created solely > based on the checkpoint_segments logs reaching their configured size. You are misunderstand what a checkpoint is. Also, why would you need a checkpoint every 30 seconds escapes me. What you probably want is to archive the WAL segment currently in use. There's a function you can use for that, pg_switch_xlog(). -- Alvaro Herrera Valdivia, Chile ICBM: S 39º 49' 18.1", W 73º 13' 56.4" "In Europe they call me Niklaus Wirth; in the US they call me Nickel's worth. That's because in Europe they call me by name, and in the US by value!"