Re: ERROR: type "temp_gc" already exists

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Janning Vygen <vygen(at)gmx(dot)de>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: ERROR: type "temp_gc" already exists
Date: 2005-09-10 16:05:40
Message-ID: 18660.1126368340@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Janning Vygen <vygen(at)gmx(dot)de> writes:
> i guess the table was dropped but not the corresponding type.
> How can things like this happen?

Corrupted pg_depend table maybe? You might try REINDEXing pg_depend
to be on the safe side. Also please look to see if there are any
relevant entries in it (look for objid = the type's OID, or refobjid
= 16562879 which we can see was the table's OID).

> How can i fix it? Can i just drop the type from pg_type?

If there's no pg_depend entry then DROP TYPE should work. Otherwise
you might have to resort to manually DELETEing the pg_type row.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joshua D. Drake 2005-09-10 17:23:56 Re: Postgresql Hosting
Previous Message Michael Fuhr 2005-09-10 13:23:38 Re: back references using regex