Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 72806475D3F for ; Mon, 6 May 2002 01:15:56 -0400 (EDT) Received: from ivsmtp02la.mail2world.com (ivsmtp02la.mail2world.com [66.28.189.73]) by postgresql.org (Postfix) with ESMTP id 97E26475C8A for ; Mon, 6 May 2002 01:13:42 -0400 (EDT) Received: from ivweb04la (unverified [10.1.200.106]) by ivsmtp02la.mail2world.com (Rockliffe SMTPRA 4.5.6) with ESMTP id for ; Sun, 5 May 2002 22:01:08 -0700 thread-index: AcH0uwh7SL44DgGMRZ6EjxBKNiqheA== Thread-Topic: Dying PostgreSQL backend From: "otisg" To: Cc: Subject: Dying PostgreSQL backend Date: Sun, 5 May 2002 22:01:08 -0700 Message-ID: <002501c1f4bb$087b8920$6ac8010a@mail2world.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0026_01C1F480.5C1CB120" 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/25 X-Sequence-Number: 4200 This is a multi-part message in MIME format. ------=_NextPart_000_0026_01C1F480.5C1CB120 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hello, I am having problems keeping PostgreSQL alive in certain situations and I wonder if I can tune some parameters to allow it to handle higher load. What gets logged in syslog log file are things like this: May 5 21:52:34 localhost postgres[25012]: [64] NOTICE: TRANSACTION ISOLATION LEVEL is READ COMMITTED May 5 21:52:34 localhost postgres[25013]: [61-1] NOTICE: Message from PostgreSQL backend: May 5 21:52:34 localhost postgres[25013]: [61-2] ^IThe Postmaster has informed me that some other backend May 5 21:52:34 localhost postgres[25013]: [61-3] ^Idied abnormally and possibly corrupted shared memory. May 5 21:52:34 localhost postgres[25013]: [61-4] ^II have rolled back the current transaction and am May 5 21:52:34 localhost postgres[25013]: [61-5] ^Igoing to terminate your database system connection and exit. May 5 21:52:34 localhost postgres[25013]: [61-6] ^IPlease reconnect to the database system and repeat your query. May 5 21:52:34 localhost postgres[25015]: [61] FATAL 1: The database system is starting up ... The DB then restarts. This happens when I hit the DB with a few simple UPDATE statements a second. The statements are really simple, changing 3 TIMESTAMP, 2 INT, and one VARCHAR field using just the primary key to match the row to update. I'm executing about 6-8 of those per second. The DB I have has less than 10 tables, most of which are completely empty, and just one, the one I'm updating has about 12,000 pretty narrow (< 10 columns) rows. I have run VACUUM ANALYZE on this DB, but once I start my application, which seems to be able to do about 7000-8000 updates before postgreSQL backend starts dying, I do not run VACUUM ANALYZE. I have already changed a few postgresql.conf parameters: shared_buffers = 64 sort_mem = 1024 fsync = false deadlock_timeout = 5000 The UPDATE statements are the only ones running against this DB (except for a simple, no join, straight forward SELECT that runs every 20 seconds). What other parameters can I change? Could the problem be that I'm doing a lot of UPDATEs without running VACUUM? 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. ------=_NextPart_000_0026_01C1F480.5C1CB120 Content-Type: text/html Content-Transfer-Encoding: 7bit Hello,

I am having problems keeping PostgreSQL alive in certain situations and I wonder if I can tune some parameters to allow it to handle higher load.

What gets logged in syslog log file are things like this:

May 5 21:52:34 localhost postgres[25012]: [64] NOTICE: TRANSACTION ISOLATION LEVEL is READ COMMITTED
May 5 21:52:34 localhost postgres[25013]: [61-1] NOTICE: Message from PostgreSQL backend:
May 5 21:52:34 localhost postgres[25013]: [61-2] ^IThe Postmaster has informed me that some other backend
May 5 21:52:34 localhost postgres[25013]: [61-3] ^Idied abnormally and possibly corrupted shared memory.
May 5 21:52:34 localhost postgres[25013]: [61-4] ^II have rolled back the current transaction and am
May 5 21:52:34 localhost postgres[25013]: [61-5] ^Igoing to terminate your database system connection and exit.
May 5 21:52:34 localhost postgres[25013]: [61-6] ^IPlease reconnect to the database system and repeat your query.
May 5 21:52:34 localhost postgres[25015]: [61] FATAL 1: The database system is starting up
...

The DB then restarts.

This happens when I hit the DB with a few simple UPDATE statements a second.
The statements are really simple, changing 3 TIMESTAMP, 2 INT, and one VARCHAR field using just the primary key to match the row to update.
I'm executing about 6-8 of those per second.
The DB I have has less than 10 tables, most of which are completely empty, and just one, the one I'm updating has about 12,000 pretty narrow (< 10 columns) rows.
I have run VACUUM ANALYZE on this DB, but once I start my application, which seems to be able to do about 7000-8000 updates before postgreSQL backend starts dying, I do not run VACUUM ANALYZE.

I have already changed a few postgresql.conf parameters:

shared_buffers = 64
sort_mem = 1024
fsync = false
deadlock_timeout = 5000

The UPDATE statements are the only ones running against this DB (except for a simple, no join, straight forward SELECT that runs ev ery 20 seconds).

What other parameters can I change?
Could the problem be that I'm doing a lot of UPDATEs without running VACUUM?

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.
------=_NextPart_000_0026_01C1F480.5C1CB120--