Re: pgsql: Keep pg_stat_statements' query texts in a file, not in shared me

From: KONDO Mitsumasa <kondo(dot)mitsumasa(at)lab(dot)ntt(dot)co(dot)jp>
To: Peter Geoghegan <pg(at)heroku(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Keep pg_stat_statements' query texts in a file, not in shared me
Date: 2014-01-28 02:31:23
Message-ID: 52E7167B.8080806@lab.ntt.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

(2014/01/28 11:07), Peter Geoghegan wrote:
> On Mon, Jan 27, 2014 at 6:04 PM, KONDO Mitsumasa
> <kondo(dot)mitsumasa(at)lab(dot)ntt(dot)co(dot)jp> wrote:
>> It is written in documents; "For security reasons, non-superusers are not
>> allowed to see the text of queries executed by other users." Is root user
>> superuser? And initdb user might change to non-superuser after creating
>> database cluster. In japan, database operation user isn't always database
>> admin. Because database admin's salary is expensive than system operator's.
>
> initdb will not run as a superuser to begin with. It flatly refuses.
No. I don't say root user is superuser. Executing initdb user will be postgres
superuser. But it can change non-superuser after creating database.

> Why is your concern with pg_stat_statements after this patch in particular?
>
> You'll need to serialize the file at least once before seeing it, but
> then it's there for good (on old versions, before Magnus got annoyed
> that that affected basebackups).
I feel the sense of incongruity that is stored database data in text file.
I'd like to hear from other people...

Regards,
--
Mitsumasa KONDO
NTT Open Source Software Center

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Geoghegan 2014-01-28 02:33:11 Re: pgsql: Keep pg_stat_statements' query texts in a file, not in shared me
Previous Message Tom Lane 2014-01-28 02:21:42 Re: pgsql: Keep pg_stat_statements' query texts in a file, not in shared me

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Geoghegan 2014-01-28 02:33:11 Re: pgsql: Keep pg_stat_statements' query texts in a file, not in shared me
Previous Message Tom Lane 2014-01-28 02:21:42 Re: pgsql: Keep pg_stat_statements' query texts in a file, not in shared me