| From: | Bruce Momjian <bruce(at)momjian(dot)us> |
|---|---|
| To: | Brian Witt <bwitt(at)bart(dot)gov> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: use log_statement to log only SELECTs? |
| Date: | 2009-11-29 11:00:49 |
| Message-ID: | 200911291100.nATB0nc11249@momjian.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Brian Witt wrote:
> Hi,
>
> I've been looking for a way to use log_statement to log only select
> statements; is this possible? (I'm using PostgreSQL 8.1.18)
>
> I'd like to know if someone tried to read the data back from the
> database, but don't care to see the inserts or updates since these may
> have sensitive data like credit card data which I don't want logged in
> the logs. I really don't even care if the SELECT was successful or not,
> or what the results of the SELECT were.
No, log_statement doesn't allow do that, and I can't think of another
option.
--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ If your life is a hard drive, Christ can be your backup. +
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Irene Barg | 2009-11-29 11:49:22 | Re: vacuumdb -z do a reindex? |
| Previous Message | CyTG | 2009-11-29 10:27:04 | Help, server cannot start anymore |