Permission of prepared statements (was: pg_stat_statements) - Mailing list pgsql-hackers

From ITAGAKI Takahiro
Subject Permission of prepared statements (was: pg_stat_statements)
Date
Msg-id 20080616162234.752E.52131E4D@oss.ntt.co.jp
Whole thread Raw
In response to Re: pg_stat_statements  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.us> wrote:

> We don't have any system-wide names for statements, so this seems
> pretty ill-defined and of questionable value.  Showing the text of
> statements in a view also has security problems.

I found we can execute prepared statements and view the sql source through
pg_prepared_statements even after we execute SET SESSION AUTHORIZATION.
Is this an expected behavior?

It is not a problem in normal use because the *real* user is same
before and after changing ROLEs, but we should be careful about
sharing connections between different users in connection pooling.
Almost connection poolings don't do that, though.

Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center




pgsql-hackers by date:

Previous
From: Andrew Sullivan
Date:
Subject: Re: TODO Item: Allow pg_hba.conf to specify host names along with IP addresses
Next
From: Peter Eisentraut
Date:
Subject: Re: TODO Item: Allow pg_hba.conf to specify host names along with IP addresses