pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: andrew@ernie.2sheds.de
Cc: pgsql-admin@postgresql.org
Subject: Re: Vacuum causing stange changes in DB
Date: Mon, 15 Jan 2001 20:49:20 -0500
Message-ID: <29594.979609760@sss.pgh.pa.us> (raw)
In-Reply-To: <20010116023354.A21361@ernie.2sheds.de>
References: <20010116023354.A21361@ernie.2sheds.de>

andrew@ernie.2sheds.de writes:
> I have a perl script which inserts records based on certain
> critera. I have noticed that if I do a vacuum WHILE my script
> is running, that I get a message:
> DBD::Pg::st execute failed: ERROR:  Unable to locate type oid 150 in catalog

Hmm ... considering that OID 150 is not a type at all (it's the function
int4ge), this would seem to indicate that garbage data is being picked
up and fed to a catalog lookup.  I suspect that what you are seeing is
an example of the infamous catalog-cache-entry-dropped-while-in-use
problem, and that the intended type-OID value is being picked up from a
catalog cache row that isn't there anymore due to vacuum having forced
it to be invalidated.

How reproducible is the behavior --- do you get an error consistently,
or only sometimes?  Do you always see exactly this same message, or does
it vary?  The less reproducible it is, the more I'd tend to think it's
the entry-drop bug.

The bug is fixed (at long last) for 7.1, but in prior versions the only
good workaround is not to vacuum system tables while there are other
active backends.

			regards, tom lane



view thread (2+ messages)

Message-ID: <29594.979609760@sss.pgh.pa.us>
Permalink:  ../29594.979609760@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/29594.979609760@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, andrew@ernie.2sheds.de
  Subject: Re: Vacuum causing stange changes in DB
  In-Reply-To: <29594.979609760@sss.pgh.pa.us>
  References: <20010116023354.A21361@ernie.2sheds.de> <29594.979609760@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