Re: Query column null

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Yambu <hyambu(at)gmail(dot)com>, Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Query column null
Date: 2020-11-27 07:40:13
Message-ID: dcf256f9e9db553993c78770bc51b06c7f9a5194.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Thu, 2020-11-26 at 20:50 +0200, Yambu wrote:
> A strange thing is happening in my csv logs, i cannot see the query that ran whenever there is a duration in the logs, is there something i'm missing?
>
> When i run the below query it returns nothing
>
> select message,query from postgres_log where message ilike '%duration%' and query is not null limit 1;
>
> Note: I loaded the csv logs into postgres_log table.

Hard to say with that information, but perhaps you set "log_duration = on".

If you use "log_min_duration_statement = 0", you might get what you want.

Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Kanninen Anssi EXT 2020-11-27 12:46:13 Working systemd script?
Previous Message Nikhil Shetty 2020-11-27 05:18:54 Re: Swapping master and slave