pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Are WALs affected by 'duplicate key' errors?
2+ messages / 2 participants
[nested] [flat]

* Are WALs affected by 'duplicate key' errors?
@ 2001-11-16 16:46 Jeff Boes <jboes@nexcerpt.com>
  2001-11-16 19:51 ` Re: Are WALs affected by 'duplicate key' errors? Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: Jeff Boes @ 2001-11-16 16:46 UTC (permalink / raw)
  To: pgsql-admin

A grim suspicion begins to dawn on me ...

We have an application that attempts many insertions into a table,
detecting the prior existance of the row by whether we get a 'duplicate
key in unique index' error.  When this application is running as multiple
copies and really cranking, we get 130K or more of these in a day.  Are
these filling up (and possibly messing up) our WALs?  We have experienced
a few shared-memory corruption errors, and a full-blown corruption
(although of a different table).


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



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

* Re: Are WALs affected by 'duplicate key' errors?
  2001-11-16 16:46 Are WALs affected by 'duplicate key' errors? Jeff Boes <jboes@nexcerpt.com>
@ 2001-11-16 19:51 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

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

"Jeff Boes" <jboes@nexcerpt.com> writes:
> We have an application that attempts many insertions into a table,
> detecting the prior existance of the row by whether we get a 'duplicate
> key in unique index' error.  When this application is running as multiple
> copies and really cranking, we get 130K or more of these in a day.  Are
> these filling up (and possibly messing up) our WALs?

Shouldn't be a problem.

> We have experienced a few shared-memory corruption errors, and a
> full-blown corruption (although of a different table).

The last couple of reports we got like that turned out to be hardware
problems (bad RAM, flaky disk controller, that sort of thing).  It
wouldn't be a waste of time to run some hardware diagnostics.

I have been thinking about your report of trouble with the 7.1.2 to
7.1.3 upgrade, and I have to confess bafflement.  There shouldn't be
any compatibility issue there AFAICS.  Are you sure there wasn't
anything else that changed at the same time?

			regards, tom lane



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


end of thread, other threads:[~2001-11-16 19:51 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-11-16 16:46 Are WALs affected by 'duplicate key' errors? Jeff Boes <jboes@nexcerpt.com>
2001-11-16 19:51 ` 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