X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id F1AA1474E61 for ; Wed, 19 Feb 2003 22:58:51 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 36806-03 for ; Wed, 19 Feb 2003 22:58:41 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 9FD5A475B8C for ; Wed, 19 Feb 2003 22:57:20 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.6/8.12.6) with ESMTP id h1K3vP5u016940; Wed, 19 Feb 2003 22:57:25 -0500 (EST) To: "Tim Lynch" Cc: pgsql-admin@postgresql.org Subject: Re: dumpBlobs(): could not open large object: ERROR: inv_open: large object 23312462 not found In-reply-to: <05c701c2d849$6d2b6d50$2c0210ac@loisaida> References: <05c701c2d849$6d2b6d50$2c0210ac@loisaida> Comments: In-reply-to "Tim Lynch" message dated "Wed, 19 Feb 2003 11:02:19 -0800" Date: Wed, 19 Feb 2003 22:57:24 -0500 Message-ID: <16939.1045713444@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new X-Archive-Number: 200302/327 X-Sequence-Number: 7525 "Tim Lynch" writes: > i've made a backup script, the meat and potatos of which are: > /usr/bin/pg_dump -Fc --blobs -f $dumpdir/$file $dbname > had been working, but recently: > pg_dump: dumpBlobs(): could not open large object: ERROR: inv_open: large > object 23312462 not found > for a variety of oids, not NULL or oid 0; over the last few days: 23170697 > 23208208 23240773 23312462 23318306 23356032 23356728 23495969 23554296 > 23578064 After looking at the code, the most plausible explanation seems to be that the index on pg_largeobject is broken. Try reindexing pg_largeobject. (You'l likely need to do this in single-user mode; read the REINDEX man page carefully.) 7.2.1 is by no means current, btw. I recommend an update to 7.2.4 at least, or 7.3 if you can. regards, tom lane