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 -

Re: [GENERAL] permission denied for relation

2014-01-30 Thread Ovid
cause this works (password in .pgpass, though the fact that I'm connecting suggests that my password is fine): $ psql -U veure_user -d veure psql (9.1.11) Type "help" for help. Cheers, Ovid -- IT consulting, training, international recruiting        http://www.allaroundtheworld.fr/.

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://ww

[GENERAL] permission denied for relation

2014-01-30 Thread Ovid
privileges on the "mydatabase" database. Can someone point me in the right direction? 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/

[GENERAL] Altering parent table breaks child table defaults

2013-10-07 Thread Ovid
  INSERT INTO temp_person (name) VALUES ('ovid');     SELECT * FROM temp_person_two;      person_id | name | has_default     ---+------+-              1 | ovid | en     (1 row ) Finally, alter the parent table by adding a new, unrelated column. Attempt to insert da

[GENERAL] stack depth limit exceeded

2010-09-05 Thread Ovid
until this mornings 'stack depth' errors. Can anyone give me a pointer as to what's going on? Is there more information I can provide to help diagnose this? Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog- http://blogs.perl.org/use

[GENERAL] Sorting with materialized paths

2010-05-09 Thread Ovid
* id 5 * id 9 * id 7 How would I work that out? Can I do that in straight SQL or should additional information be added to this table? Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog- http://blogs.perl.org/users/ovi

Re: Fw: [GENERAL] Clipping values

2010-03-24 Thread Ovid
LEAST function! I love you (platonically, of course. My fiancée might have issues otherwise). Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog - http://blogs.perl.org/users/ovid/ Twitter - http://twitter.com/OvidPerl Official Perl 6 Wiki - http://www.perlfoundation

Fw: [GENERAL] Clipping values

2010-03-24 Thread Ovid
id = row.id END LOOP But, of course, doing that for four percentages (with at least one having a different increment value than .1) Cheers, Ovid -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

[GENERAL] Clipping values

2010-03-24 Thread Ovid
END IF; RETURN; END; $$ LANGUAGE plpgsql; Better yet, am I approaching this entirely the wrong way? If there is a simpler solution to gradually increase those variables over time, I'd welcome it. If this is not clear, please let me know and I can try to explain mor

[GENERAL] Self-referential records

2010-01-24 Thread Ovid
ECT id INTO :parent_id FROM refers WHERE name=''; INSERT INTO refers (name, parent_id) VALUES ('yyy', :parent_id); Obviously the above is gibberish, but hopefully it makes clear what I'm trying to do :) Oh, and "parent_id" is NOT NULL because I hate the lo