Re: current_query in pg_stat_activity - Mailing list pgsql-novice

From Tom Lane
Subject Re: current_query in pg_stat_activity
Date
Msg-id 22063.1077635150@sss.pgh.pa.us
Whole thread Raw
In response to current_query in pg_stat_activity  (Oliver Fromme <olli@lurza.secnetix.de>)
Responses Re: current_query in pg_stat_activity
List pgsql-novice
Oliver Fromme <olli@lurza.secnetix.de> writes:
> The "current_query" column in the "pg_stat_activity" system
> table seems to be limited to 255 characters.  Is there a way
> to increase that limit, in order to see queries completely
> which are longer than 255 characters?

You could fool with PGSTAT_ACTIVITY_SIZE in pgstat.h, but you probably
need to keep it under 1000 --- note the comments associated with
PGSTAT_NUM_TABENTRIES.

            regards, tom lane

pgsql-novice by date:

Previous
From: "Crombleholme, Roy"
Date:
Subject: Re: installing pgsql
Next
From: Tom Lane
Date:
Subject: Re: installing pgsql