Re: owner of type 'mmm' apperars to be invalid - Mailing list pgsql-sql

From Richard Huxton
Subject Re: owner of type 'mmm' apperars to be invalid
Date
Msg-id 200211051057.56017.dev@archonet.com
Whole thread Raw
In response to owner of type 'mmm' apperars to be invalid  ("cristi" <cristi@dmhi.ct.ro>)
List pgsql-sql
On Tuesday 05 Nov 2002 5:57 am, cristi wrote:
>  When I'm trying to make pg_dump on a data base I have this message:
>
> WARNING: owner of type 'mmm' apperars to be invalid
> WARNING: owner of type 'eee' apperars to be invalid
> WARNING: owner of type 'refcursor' apperars to be invalid
>
> Where are these object and how can I destroy its?

richardh=> select oid,typname,typowner from pg_type where typname='refcursor';oid  |  typname  | typowner
------+-----------+----------1790 | refcursor |        1

richardh=> select * from pg_user where usesysid=1;usename  | usesysid | usecreatedb | usetrace | usesuper | usecatupd |
passwd   
| valuntil
----------+----------+-------------+----------+----------+-----------+----------+----------postgres |        1 | t
    | t        | t        | t         |  

I'd recommend you add a user with the required id, then dump the database and
fix the dump as required. The owner of "refcursor" should be postgres (or
whatever the system user is called) - if that user has been deleted, I'd be
surprised that's the only errors you get.

--  Richard Huxton


pgsql-sql by date:

Previous
From: "cristi"
Date:
Subject: owner of type 'mmm' apperars to be invalid
Next
From: "Michael Ansley (UK)"
Date:
Subject: Re: [GENERAL] Database Design tool