Re: [GENERAL] permission denied for relation

2014-01-30 Thread Ovid
I turned on log_connections and that is indeed the problem. Looks like it's my software and not pg. Thanks all!   Cheers, Ovid -- IT consulting, training, international recruiting        http://www.allaroundtheworld.fr/. Buy my book! - http://bit.ly/beginning_perl Live and work overseas - http://

Re: [GENERAL] permission denied for relation

2014-01-30 Thread Klaus Ita
select current_user; On Thu, Jan 30, 2014 at 3:53 PM, Adrian Klaver wrote: > On 01/30/2014 06:13 AM, Ovid wrote: > >> First: CREATE ROLE and CREATE DATABASE; >>> >> >> After: CREATE TABLEs; >>> >> >> Last: GRANT SELECT,INSERT,UPDATE and DELETE. >>> >> >> OK, I dropped the database. Since I hav

Re: [GENERAL] permission denied for relation

2014-01-30 Thread Tom Lane
Adrian Klaver writes: > I would tend to go with Raymond, are you sure about the user you are > connecting as? That's my thought as well. > It would be helpful to tail the Postgres log and see what the connection > info is. Note you will need to turn on "log_connections" to have the relevant i

Re: [GENERAL] permission denied for relation

2014-01-30 Thread Adrian Klaver
On 01/30/2014 06:13 AM, Ovid wrote: First: CREATE ROLE and CREATE DATABASE; After: CREATE TABLEs; Last: GRANT SELECT,INSERT,UPDATE and DELETE. OK, I dropped the database. Since I have the user already created, I recreated the database. Then I created all of the tables. Then I did this: p

Re: [GENERAL] permission denied for relation

2014-01-30 Thread Raymond O'Donnell
On 30/01/2014 14:13, Ovid wrote: >> First: CREATE ROLE and CREATE DATABASE; > >> After: CREATE TABLEs; > >> Last: GRANT SELECT,INSERT,UPDATE and DELETE. > > OK, I dropped the database. Since I have the user already created, I > recreated the database. Then I created all of the tables. Then I did

Re: [GENERAL] permission denied for relation

2014-01-30 Thread Ovid
> First: CREATE ROLE and CREATE DATABASE; > After: CREATE TABLEs; > Last: GRANT SELECT,INSERT,UPDATE and DELETE. OK, I dropped the database. Since I have the user already created, I recreated the database. Then I created all of the tables. Then I did this: postgres=# GRANT SELECT ON ALL TABL

Re: [GENERAL] permission denied for relation

2014-01-30 Thread JotaComm
Hello, 2014-01-30 Ovid > And in the above, by "veure_user" in the pg_hba.conf, I obviously meant " > some_user". > > Cheers, > Ovid > -- > IT consulting, training, international recruiting >http://www.allaroundtheworld.fr/. > Buy my book! - http://bit.ly/beginning_perl > Live and work o

Re: [GENERAL] permission denied for relation

2014-01-30 Thread Ovid
And in the above, by "veure_user" in the pg_hba.conf, I obviously meant "some_user".   Cheers, Ovid -- IT consulting, training, international recruiting        http://www.allaroundtheworld.fr/. Buy my book! - http://bit.ly/beginning_perl Live and work overseas - http://www.overseas-exile.com/ O

[GENERAL] permission denied for relation

2014-01-30 Thread Ovid
Hi all, Struggling to figure out what I'm doing wrong with postgresql 9.1.11. I've created a user and database like this:     CREATE USER some_user WITH ENCRYPTED PASSWORD '...';     CREATE DATABASE mydatabase ENCODING 'UTF8' OWNER some_user TEMPLATE template0;     GRANT ALL PRIVILEGES ON ALL

[GENERAL] Permission denied for relation pg_database , one role has problem

2012-08-26 Thread Jukka Inkeri
And many others errors when xsome user connect to database x, schema xxx. PG 8.4. Problems started about same time as search_path has SET. search_path has reset, but did'nt help. ALTER DATABASE x SET search_path=some, public; -- xxx wasn't in that list ALTER DATABASE x RESET search_path; - has

Re: [GENERAL] Permission denied for relation pg_database , one role has problem

2012-08-25 Thread Tom Lane
Jukka Inkeri writes: > Only one group has this priviledge problem, xgroup. > pg_log after tried to connect: > 2012-08-25 11:39:36 EEST ERROR: permission denied for relation pg_database > 2012-08-25 11:39:36 EEST STATEMENT: SET DateStyle=ISO; > SELECT oid, pg_encoding_to_char(encoding) AS e

[GENERAL] Permission denied for relation pg_database , one role has problem

2012-08-25 Thread Jukka Inkeri
And many others errors when xsome user connect to database x, schema xxx. PG 8.4. Problems started about same time as search_path has SET. search_path has reset, but did'nt help. ALTER DATABASE x SET search_path=some, public; -- xxx wasn't in that list ALTER DATABASE x RESET search_path; - has

Re: [GENERAL] permission denied for relation

2007-01-01 Thread Andreas Kretschmer
Armon Ezra <[EMAIL PROTECTED]> schrieb: > while browsing a web site (which I am trying to handle), I get an error > message like this: > *" Warning*: pg_query() [function.pg-query]: Query failed: ERROR: > permission denied for relation -table name- in... on line 45 " > I believe it ha

[GENERAL] permission denied for relation

2007-01-01 Thread Armon Ezra
while browsing a web site (which I am trying to handle), I get an error message like this: *" Warning*: pg_query() [function.pg-query]: Query failed: ERROR: permission denied for relation -table name- in... on line 45 " I believe it has a connection to upgrading to postgresql8 , but I