pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: shashidhar Reddy <shashidharreddy001@gmail.com>
To: Erik Wienhold <ewie@ewie.name>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Postgres 11.5 not logging all sqls
Date: Mon, 25 Sep 2023 12:23:54 -0700
Message-ID: <e9eebc13-db7d-471a-bff1-6b800f4c0752@aklaver.com> (raw)
In-Reply-To: <CAH=zU4ufoBJDtN+DOki9_iP_i2bXOdRzcM41jePw+NB6kdTwwA@mail.gmail.com>
References: <CAH=zU4sA3GXxV_a1jm5Y0Mba=j7=U5ZBebAsyOERtH_D1WAi7A@mail.gmail.com>
	<4rmaktkbnnhwgji2jegd5lsbmuf4t544syt3sttsdycibmnyfy@jz27gtl66ueg>
	<CAH=zU4ufoBJDtN+DOki9_iP_i2bXOdRzcM41jePw+NB6kdTwwA@mail.gmail.com>

On 9/25/23 11:55, shashidhar Reddy wrote:
> Thank you Erik,
> 
> Not all queries are truncated at same size,different queries different 
> sizes but all 11.5 servers are behaving in same manner.

FYI, the last minor release for version is 11.21. You are missing 16 
bug/security fixes. I would update to 11.21 and then see if the issue 
persists.

> 
> 
> On Mon, 25 Sept, 2023, 5:33 pm Erik Wienhold, <ewie@ewie.name 
> <mailto:ewie@ewie.name>> wrote:
> 
>     On 2023-09-25 16:54 +0530, shashidhar Reddy wrote:
>      > We are using postgres 11.5 on Ubuntu we have enabled logging and set
>      > log_statements to all but when I checked the statements in the
>     logs I can
>      > see only first few lines of the query and also when I check in
>     pgadmin for
>      > current queries I could see only few lines. Some one please help
>     me to get
>      > full queries in the logs and in pgadmin4.
> 
>     * Could be that the logging collector truncates messages.  Are all
>        messages truncated to the same length?
> 
>     * pgAdmin reads pg_stat_activity.query which is subject to config
>        track_activity_query_size[1].  That should, however, not affect
>        logging.
> 
>     * Maybe a bug 11.5 which is already 4 years old.
> 
>     [1]
>     https://www.postgresql.org/docs/11/runtime-config-statistics.html#GUC-TRACK-ACTIVITY-QUERY-SIZE <https://www.postgresql.org/docs/11/runtime-config-statistics.html#GUC-TRACK-ACTIVITY-QUERY-SIZE;
> 
>     -- 
>     Erik
> 

-- 
Adrian Klaver
adrian.klaver@aklaver.com






view thread (9+ messages)  latest in thread

Message-ID: <e9eebc13-db7d-471a-bff1-6b800f4c0752@aklaver.com>
Permalink:  ../e9eebc13-db7d-471a-bff1-6b800f4c0752@aklaver.com/
Also on:    postgresql.org/message-id/e9eebc13-db7d-471a-bff1-6b800f4c0752@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, shashidharreddy001@gmail.com, ewie@ewie.name
  Subject: Re: Postgres 11.5 not logging all sqls
  In-Reply-To: <e9eebc13-db7d-471a-bff1-6b800f4c0752@aklaver.com>
  References: <CAH=zU4sA3GXxV_a1jm5Y0Mba=j7=U5ZBebAsyOERtH_D1WAi7A@mail.gmail.com> <4rmaktkbnnhwgji2jegd5lsbmuf4t544syt3sttsdycibmnyfy@jz27gtl66ueg> <CAH=zU4ufoBJDtN+DOki9_iP_i2bXOdRzcM41jePw+NB6kdTwwA@mail.gmail.com> <e9eebc13-db7d-471a-bff1-6b800f4c0752@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox