Re: Problems when dumping a database - Mailing list pgsql-general

From Tressens Lionel
Subject Re: Problems when dumping a database
Date
Msg-id Pine.LNX.4.10.10102242021440.13004-100000@jaures.etud.insa-tlse.fr
Whole thread Raw
In response to Re: Problems when dumping a database  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Le 22.02.01 à 22:23, "Tom Lane" écrivait :

)> SELECT oid FROM pg_database WHERE datname = 'template1'
)
)> But this SELECT returns two tuples ! I have two identical tuples in
)> pg_database for template1.
)> Perhaps deleting one will help me, but which one (equal ?).
)
)This is definitely uncool, but I'm not sure if it's related to the
)pg_dump problem or not.  You could try deleting the one of larger OID
)(the correct OID for template1 is about 17000 depending on what version
)you're running) and then do a pg_database vacuum.

Thanks Tom, it worked.
I had these tuples :
template1=> select oid from pg_database where datname = 'template1';
   oid
------
 17120
459008
(2 rows)

I deleted the second one and it works now...

Thanks again.

Lionel


pgsql-general by date:

Previous
From: Adam Haberlach
Date:
Subject: Re: ...lame use of casting, looking for workaround...
Next
From: "bcs-brockmann.de"
Date:
Subject: key in psql