Re: owner of type 'mmm' apperars to be invalid

From: Richard Huxton <dev(at)archonet(dot)com>
To: "cristi" <cristi(at)dmhi(dot)ct(dot)ro>, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: owner of type 'mmm' apperars to be invalid
Date: 2002-11-05 13:21:31
Message-ID: 200211051321.31846.dev@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Tuesday 05 Nov 2002 1:03 pm, cristi wrote:
> It shouldn't be this the solution of the problem?
>
> salt=# delete from pg_type where typname='refcursor';
> DELETE 1
> salt=# delete from pg_type where typname='eee';
> DELETE 1
> salt=# delete from pg_type where typname='mmm';
> DELETE 1
>
> Now, I don't have the error message!
>
> Mr.Richard Huxton, thank you very much!

But - you have deleted the "refcursor" type which is not a good idea! If you
don't use cursors you might get away with it, but I'd be nervous about it.

If you create a new database does it contain the refcursor type? If so, drop
and recreate the database, restoring the data to it. If not, I think you'll
need to restore the template1 db - there's an article on
techdocs.postgresql.org about this (byJosh IIRC).
--
Richard Huxton

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Rison, Stuart 2002-11-05 13:33:32 Copying a rowtype variable.
Previous Message cristi 2002-11-05 13:03:00 Re: owner of type 'mmm' apperars to be invalid