data volume resizing and large objects - Mailing list pgsql-general

From beer@cmu.edu
Subject data volume resizing and large objects
Date
Msg-id 7916966e0801040906u1508ca83w7d220336894e998e@mail.gmail.com
Whole thread Raw
Responses Re: data volume resizing and large objects  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Hello All

I recently ran out of disk space on the volume hosting my default tablespace.  As it turned out, the sysad didnt allocate all of the disk to the volume when he installed it, so he resized the volume and restarted the database.  The server came up fine so I assumed all was well ( the server would not start before the resize ), however now when i get failures whenever I try to insert lobs via my application. 

My application is written in perl and uses DBD::Pg and DBI to access the database.  The failure occurs when i attempt to call lo_creat:

     $dbh->func($mode, 'lo_creat');

lo_creat fails with:
    
     ERROR: large object <oid> already exists

This leads me to believe that my database lost its list of existing lob oids and is experiencing collisions but I am not sure where to go from here.  I could really use some additional insight into what is happening here and perhaps some direction in how to remedy the problem.

TIA

-bill

pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: A counter argument about DISTINCT and GROUP BY in PostgreSQL
Next
From: "Scott Marlowe"
Date:
Subject: Re: Fail to connect after server crash