Re: Lost my blobs and can't restore. - Mailing list pgsql-general

From Jerry LeVan
Subject Re: Lost my blobs and can't restore.
Date
Msg-id CCDB799A-E802-11D8-9CB1-000393779D9C@eku.edu
Whole thread Raw
In response to Lost my blobs and can't restore.  (Jerry LeVan <jerry.levan@eku.edu>)
List pgsql-general
Hmmm, still don't know if pg_restore will add the comments back....

Anyway I was able to recover my comments by sql that looks like

insert into pg_description values(22160 , 16404, 0, 'robasnowman.jpg')

the 22160 is the oid that represented the picture 'robasnowman.jpg'
     16404 is the oid that identifies large objects,
         0 is a subclass oid currently 0
     'robasnowman.jpg' or whatever you want is the 'comment'

You have to be superuser to write the table (I think)

Fortunately I am getting ready to release the next version 1.3.3 of
BiggerSQL , it has the capability to display images stored in oids
and bytea fields so I was able to make a reasonable comment.

Jerry


pgsql-general by date:

Previous
From: Gaetano Mendola
Date:
Subject: Re: probelm migrating from 7.3.4 to 7.42
Next
From: "Kevin Bartz"
Date:
Subject: Re: Out of swap space & memory