pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: cjwhite@cisco.com
Cc: pgsql-admin@postgresql.org
Subject: Re: Error seen when vacuuming pg_largeobject table
Date: Mon, 26 Jan 2004 20:23:39 -0500
Message-ID: <7741.1075166619@sss.pgh.pa.us> (raw)
In-Reply-To: <002001c3e472$88698fd0$24976b80@amer.cisco.com>
References: <002001c3e472$88698fd0$24976b80@amer.cisco.com>

"Chris White (cjwhite)" <cjwhite@cisco.com> writes:
> VACUUM: DEBUG sql sql sql DEBUG: Index pg_largeobject_loid_pn_index:
> Pages 14; Tuples 1044: Deleted 232.
> ...
> VACUUM: WARNING sql sql sql ERROR: Cannot insert a duplicate key into
> unique index pg_largeobject_loid_pn_index

> When I run postgres with the -P and -O options to reindex the index,
> everything seem to run okay, I see no error messages. However, when I
> restart postmaster and try and do a vacuum again, I get the same error
> messages.

I don't think you can have reindexed the index.  With only 1044 rows in
it, it shouldn't take up more than 3 or 4 pages when freshly created;
certainly not 14.  Are you sure you reindexed in the right database?

If you're sure it's not pilot error, let's see the exact transcript of
what you did with the standalone postgres, and also the exact transcript
(no "sql sql sql") of the failing VACUUM afterwards.  Also, what PG
version is this?

			regards, tom lane



view thread (14+ messages)  latest in thread

Message-ID: <7741.1075166619@sss.pgh.pa.us>
Permalink:  ../7741.1075166619@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/7741.1075166619@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, cjwhite@cisco.com
  Subject: Re: Error seen when vacuuming pg_largeobject table
  In-Reply-To: <7741.1075166619@sss.pgh.pa.us>
  References: <002001c3e472$88698fd0$24976b80@amer.cisco.com> <7741.1075166619@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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