Re: Problems when dumping a database

From: Tressens Lionel <tressens(at)etud(dot)insa-tlse(dot)fr>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Problems when dumping a database
Date: 2001-02-24 19:22:58
Message-ID: Pine.LNX.4.10.10102242021440.13004-100000@jaures.etud.insa-tlse.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message bcs-brockmann.de 2001-02-24 20:27:48 key in psql
Previous Message Adam Haberlach 2001-02-24 18:09:15 Re: ...lame use of casting, looking for workaround...