Re: [GENERAL] strange permission error

2012-10-03 Thread Mr Dash Four
2. If somebody manages to hijack your connection, you have much worse problems than whether they can read your system catalogs. They can at least copy, and probably modify, your user data. If I have restricted those permissions (i.e. access to specific schemas only, allowing specific operation

Re: [GENERAL] strange permission error

2012-10-02 Thread Mr Dash Four
'user: ' *is* text by default.I didn't notice you displaying your table definitions, but assuming u_name is TExT or VARCHAR(...) it should have worked without any explicit casts u_name is a custom-defined type, consisting of user name (text/varchar), a number (longint), host name (text

Re: [GENERAL] strange permission error

2012-10-01 Thread Mr Dash Four
You caused it yourself, then. Don't do that. (Or if you must, it's your own responsibility to fix things when they break. But preventing read access to pg_catalog seems pretty crippling.) I don't want arbitrary program to have access to the system catalogue and read willy-nilly, thanks.

[GENERAL] strange permission error

2012-09-30 Thread Mr Dash Four
In my database I have restricted access to a particular user (non-superuser), which is used when a cron job passes a series of sql script files for execution via psql. During one such statement (below) I get the following set of error: ERROR: permission denied for schema pg_catalog CONTEXT: