| From: | Yambu <hyambu(at)gmail(dot)com> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: Query duration and query text |
| Date: | 2020-11-30 21:38:42 |
| Message-ID: | CALhHtcBJWFubydvXUBU2_6uq72pfYFF5RV4aYQ6O=8iC9S-_4w@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-admin |
Thanks it works
On 30 Nov 2020 7:28 PM, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Yambu <hyambu(at)gmail(dot)com> writes:
> > May i know why the query and the duration are recorded as separate lines
> in
> > postgres csv logs?
>
> log_statement and log_duration are independent features.
>
> > Is there a way I can make the query and the duration to be in the same
> line?
>
> If you drop those and instead set log_min_duration_statement = 0 (or
> some positive value) then the statement will be printed with the duration.
>
> regards, tom lane
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Walters Che Ndoh | 2020-12-01 02:49:39 | killing idle_connections |
| Previous Message | Tom Lane | 2020-11-30 17:28:35 | Re: Query duration and query text |