Search Postgresql Archives

Re: Accidentally truncated pg_type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/07/11 08:12, Matthew Byrne wrote:
> I have a large database full of irreplaceable data, and due to a
> ridiculous happenstance I accidentally executed this code (as a superuser,
> of course):
> 
> DELETE FROM pg_catalog.pg_type;
> 
> Now the database is *seriously* unhappy - every SQL command returns an
> error message.  How do I get at my data?

Oh, once you've copied your database you should stop the postmaster and
not start it again without further advice/instructions. The data in
pg_type may not have been vacuumed or overwritten yet if you haven't
been messing about trying to fix it before asking for help.

--
Craig Ringer

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux