Re: Upgraded, now permission denied.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jason Whitener <jwhitene(at)pcc(dot)edu>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Upgraded, now permission denied.
Date: 2014-06-12 02:11:02
Message-ID: 3251.1402539062@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Jason Whitener <jwhitene(at)pcc(dot)edu> writes:
> Queries that used to run on 8.1 now complain about relations not found,
> like:
> Select * from uiddate where dateonline >= '#hourago#'
> returns: ERROR: relation "uiddate" does not exist Position: 15

> The database name is 'mypcc'. The schema is 'public'. I can visibly see
> the table 'uiddate' in the PgAdmin gui.

> If I do a query like:
> SELECT * FROM public.uiddate where dateonline >= '2014-06-11 14:33:14';
> It returns:
> ERROR: permission denied for schema public

I suspect these are both symptoms of the same problem, namely that
the "public" schema lacks public access permissions. I'm not sure
exactly how it got that way --- might be interesting to look at

select * from pg_namespace where nspname = 'public';

and if you still have the pg_dump file from 8.1, look to see if
there are any grant/revoke commands for schema public in it.

But in any case, the fix is probably

grant all on schema public to public;

regards, tom lane

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Keith 2014-06-12 04:18:25 Re: Upgraded, now permission denied.
Previous Message David G Johnston 2014-06-12 00:01:41 Re: Need help with this Function. I'm getting an error