Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 5DC6147589A for ; Mon, 6 May 2002 23:49:35 -0400 (EDT) Received: from ivsmtp02la.mail2world.com (ivsmtp02la.mail2world.com [66.28.189.73]) by postgresql.org (Postfix) with ESMTP id 2484C475481 for ; Mon, 6 May 2002 23:49:34 -0400 (EDT) Received: from ivweb05la (unverified [10.1.200.108]) by ivsmtp02la.mail2world.com (Rockliffe SMTPRA 4.5.6) with ESMTP id for ; Mon, 6 May 2002 20:47:31 -0700 thread-index: AcH1eeoUjl328cPDSLyzpw9IyuP5cw== Thread-Topic: [ADMIN] Dying PostgreSQL backend From: "otisg" To: Cc: Subject: Re: Dying PostgreSQL backend Date: Mon, 6 May 2002 20:47:31 -0700 Message-ID: <0a6601c1f579$ea14e390$6cc8010a@mail2world.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0A67_01C1F53F.3DB60B90" X-Mailer: Microsoft CDO for Exchange 2000 Content-Class: urn:content-classes:message Importance: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Archive-Number: 200205/41 X-Sequence-Number: 4216 This is a multi-part message in MIME format. ------=_NextPart_000_0A67_01C1F53F.3DB60B90 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hello, Unfortunately, I cannot get PostgreSQL to dump core despite setting ulimit -c to: [root@linux2 otis]# ulimit -a core file size (blocks) unlimited And starting PostgreSQL this way: su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl -D $PGDATA -p /usr/bin/postmaster start" The backend doesn't want to dump core, it just dies and restarts, dies and restarts. I am really running only 2 very similar UPDATE statements. They update the same table, changing only a few fields. I tried running VACUUM ANALYZE more frequently, but that didn't make any difference. Is there any other way that I can get more information out of postgres backend? Thanks, Otis _______________________________________________________________ Sign up for FREE iVillage newsletters . From health and pregnancy to shopping and relationships, iVillage has the scoop on what matters most to you. <-----Original Message-----> > > From: Tom Lane > Sent: 5/6/2002 12:47:31 PM > To: otisg@iVillage.com > Cc: pgsql-admin@postgresql.org > Subject: Re: [ADMIN] Dying PostgreSQL backend > > "otisg" writes: > What gets logged in syslog log file are things like this: > > The messages you quoted are no help, because none of them directly > show the crashing backend. > > What I'd recommend doing is gdb'ing the core dump file to get a stack > trace; that would give us some clue what's wrong. And you could do > "p debug_query_string" to see what query made it crash. > > If you do not find a core file in the database subdirectory > ($PGDATA/base/yourdbnumber/core) then you are probably running the > postmaster with "ulimit -c 0" which disables core dumps. Restart > it with environment "ulimit -c unlimited". > > regards, tom lane > ------=_NextPart_000_0A67_01C1F53F.3DB60B90 Content-Type: text/html Content-Transfer-Encoding: 7bit Hello,

Unfortunately, I cannot get PostgreSQL to dump core despite setting ulimit -c to:
[root@linux2 otis]# ulimit -a
core file size (blocks) unlimited

And starting PostgreSQL this way:
su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl -D $PGDATA -p /usr/bin/postmaster start"

The backend doesn't want to dump core, it just dies and restarts, dies and restarts.
I am really running only 2 very similar UPDATE statements. They update the same table, changing only a few fields.

I tried running VACUUM ANALYZE more frequently, but that didn't make any difference.

Is there any other way that I can get more information out of postgres backend?

Thanks,
Otis
_______________________________________________________________
Sign up for FREE iVillage newsletters.
From health and pregnancy to shopping and relationships, iVillage
has the scoop on what matters most to you.


<-----Original Message----->
>
> From: Tom Lane
> Sent: 5/6/2002 12:47:31 PM
> To: otisg@iVillage.com
> Cc: pgsql-admin@postgresql.org
> Subject: Re: [ADMIN] Dying PostgreSQL backend
>
> "otisg" writes:
> What gets logged in syslog log file are things like this:
>
> The messages you quoted are no help, because none of them directly
> show the crashing backend.
>
> What I'd recommend doing is gdb'ing the core dump file to get a stack
> trace; that would give us some clue what's wrong. And you could do
> "p debug_query_string" to see what query made it crash.
>
> If you do not find a core file in the database subdirectory
> ($PGDATA/base/yourdbnumber/core) then you are probably running the
> postmaster with "ulimit -c 0" which disables core dumps. Restart
> it with environment "ulimit -c unlimited".
>
> regards, tom lane
>
------=_NextPart_000_0A67_01C1F53F.3DB60B90--