Received: from sss.pgh.pa.us (sss.pgh.pa.us [209.114.132.154]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f0G1nb027940 for ; Mon, 15 Jan 2001 20:49:37 -0500 (EST) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.1/8.11.1) with ESMTP id f0G1nKJ29597; Mon, 15 Jan 2001 20:49:20 -0500 (EST) To: andrew@ernie.2sheds.de cc: pgsql-admin@postgresql.org Subject: Re: Vacuum causing stange changes in DB In-reply-to: <20010116023354.A21361@ernie.2sheds.de> References: <20010116023354.A21361@ernie.2sheds.de> Comments: In-reply-to andrew@ernie.2sheds.de message dated "Tue, 16 Jan 2001 02:33:54 +0100" Date: Mon, 15 Jan 2001 20:49:20 -0500 Message-ID: <29594.979609760@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200101/86 X-Sequence-Number: 459 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