pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Very long COMMIT times?
3+ messages / 2 participants
[nested] [flat]

* Very long COMMIT times?
@ 2001-11-12 22:19  Jeff Boes <jboes@nexcerpt.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Jeff Boes @ 2001-11-12 22:19 UTC (permalink / raw)
  To: pgsql-admin

We've been adjusting the WAL log file count on our database.  The only
effects we've seen so far in increasing the count from 8 (default) to 32
(current) are:

1) No more WAL messages in the log 8-/

and 2) very long COMMIT times for some long transactions: I'm talking
about upwards of 10-20 MINUTES to commit after doing hundreds of inserts,
updates and deletes in one transaction.  The table involved has some 20K
rows, and is read and updated a few rows at a time by many processes, but
only one (the one doing large numbers of rows) has the lengthy COMMIT
times.

Did this come about because of the increase in WAL count?

-- 
Jeff Boes                                             vox 616.226.9550
Database Engineer                                     fax 616.349.9076
Nexcerpt, Inc.                                      jboes@nexcerpt.com



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

* Re: Very long COMMIT times?
@ 2001-11-12 23:00  Jeff Boes <jboes@nexcerpt.com>
  parent: Jeff Boes <jboes@nexcerpt.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Jeff Boes @ 2001-11-12 23:00 UTC (permalink / raw)
  To: pgsql-admin

In article <9sphq7$k0h$1@news.tht.net>, "Jeff Boes" <jboes@nexcerpt.com>
wrote:

> and 2) very long COMMIT times for some long transactions: I'm talking
> about upwards of 10-20 MINUTES to commit after doing hundreds of
> inserts, updates and deletes in one transaction.  The table involved has
> some 20K rows, and is read and updated a few rows at a time by many
> processes, but only one (the one doing large numbers of rows) has the
> lengthy COMMIT times.
> 
> Did this come about because of the increase in WAL count?


Oops.  This turns out not to be a COMMIT time, but instead it's happening
in a NOTIFY operation just after the COMMIT.  What would cause a
previously-quick NOTIFY step to become many minutes long?


-- 
Jeff Boes                                             vox 616.226.9550
Database Engineer                                     fax 616.349.9076
Nexcerpt, Inc.                                      jboes@nexcerpt.com



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

* Re: Very long COMMIT times?
@ 2001-11-12 23:43  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Jeff Boes <jboes@nexcerpt.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Tom Lane @ 2001-11-12 23:43 UTC (permalink / raw)
  To: Jeff Boes <jboes@nexcerpt.com>; +Cc: pgsql-admin

"Jeff Boes" <jboes@nexcerpt.com> writes:
>> Did this come about because of the increase in WAL count?

No.

> Oops.  This turns out not to be a COMMIT time, but instead it's happening
> in a NOTIFY operation just after the COMMIT.  What would cause a
> previously-quick NOTIFY step to become many minutes long?

Have you vacuumed pg_listener recently?

			regards, tom lane



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


end of thread, other threads:[~2001-11-12 23:43 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-11-12 22:19 Very long COMMIT times? Jeff Boes <jboes@nexcerpt.com>
2001-11-12 23:00 ` Jeff Boes <jboes@nexcerpt.com>
2001-11-12 23:43   ` Tom Lane <tgl@sss.pgh.pa.us>

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