pg_dump Error - Mailing list pgsql-admin

From Nigel Bishop
Subject pg_dump Error
Date
Msg-id 72558D9A7573814BB4082A28843E03D40B414D@intyodc01.uk.ioko365.com
Whole thread Raw
Responses Re: pg_dump Error  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-admin
Hi

I'm getting an error with pg_dump:

I'm using

pg_dump -v -C -U username database > ./dumpfile.dmp

and it errors with:

pg_dump: saving database definition
pg_dump: reading namespaces
pg_dump: reading user-defined types
pg_dump: reading user-defined functions
pg_dump: reading user-defined aggregate functions
pg_dump: reading user-defined operators
pg_dump: reading user-defined operator classes
pg_dump: reading user-defined tables
pg_dump: Attempt to lock table "Foo" failed.  ERROR:  MySchema:
permission denied
pg_dump: *** aborted because of error


Issueing a SELECT * FROM PG_TABLES;

Shows:

MySchema   | Foo            | postgres   | t          | f        | f


If I try to drop this it errors saying the table foo doesn't exist.

Where did this object come from and how can I resolve the pg_dump error


TIA


Nigel

pgsql-admin by date:

Previous
From: Jeff Keller
Date:
Subject: Re: Capacity Planning
Next
From: "Donald Fraser"
Date:
Subject: Binary/source for 7.4.3