Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id D003612822DB for ; Wed, 22 Feb 2012 19:04:26 -0400 (AST) Received: from mahout.postgresql.org ([98.129.198.123]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1S0LEX-0008Fu-QE for pgsql-bugs@postgresql.org; Wed, 22 Feb 2012 23:04:26 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1S0LEL-0006nX-7v for pgsql-bugs@postgresql.org; Wed, 22 Feb 2012 23:04:13 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1S0LEK-0003KU-4H for pgsql-bugs@postgresql.org; Wed, 22 Feb 2012 23:04:12 +0000 Date: Wed, 22 Feb 2012 23:04:12 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #6484: pgstat wait timeout To: pgsql-bugs@postgresql.org From: cneo@accessdata.com X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201202/174 X-Sequence-Number: 32517 The following bug has been logged on the website: Bug reference: 6484 Logged by: Charlie Neo Email address: cneo@accessdata.com PostgreSQL version: 9.0.6 Operating system: Windows Server 2008 R2 Enterprise Description: = During heavy database loading, "pgstat wait timeout" is showing up in the logs. When this happens pgstat.stat file stop updating. Stats in pg_stat_user_tables also stop updating. Resulting in autovacuum not triggering and greatly degrades performs. Killing the stats collection process causing it to re-spawn does not help, as it will quickly go back into the same state without any new stats collected. Stack trace of the process postgres.exe -forkcol ntoskrnl.exe!memset+0x64a ntoskrnl.exe!KeWaitForMultipleObjects+0xf5d ntoskrnl.exe!KeWaitForMultipleObjects+0x26a ntoskrnl.exe!NtWaitForSingleObject+0x40f ntoskrnl.exe!NtWaitForSingleObject+0x77e ntoskrnl.exe!KeSynchronizeExecution+0x3a43 ntdll.dll!ZwWaitForMultipleObjects+0xa KERNELBASE.dll!GetCurrentProcess+0x40 kernel32.dll!WaitForMultipleObjectsEx+0xb3 postgres.exe!reltimesend+0x1f8d50 postgres.exe!reltimesend+0x1f9053 postgres.exe!reltimesend+0x2054af postgres.exe!reltimesend+0x20aa85 postgres.exe!reltimesend+0x14af4e postgres.exe!reltimesend+0x38a65d kernel32.dll!BaseThreadInitThunk+0xd ntdll.dll!RtlUserThreadStart+0x21