Re: Why does pg_stat_activity Truncate Queries?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: josh(at)agliodbs(dot)com
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Why does pg_stat_activity Truncate Queries?
Date: 2004-09-07 22:43:26
Message-ID: 5791.1094597006@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Josh Berkus <josh(at)agliodbs(dot)com> writes:
> I was just noticing that pg_stat_activity is truncating queries which are
> logged to it at about 150 chars.

256, I would expect.

> I can't think of any good reason for this.

There is good reason to limit the packet size, but to a kilobyte or so.
Feel free to bump up PGSTAT_ACTIVITY_SIZE to 1000 or so in
src/include/pgstat.h (and yes, this is already done for 8.0).

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas F.O'Connell 2004-09-07 22:59:37 Re: contrib/start-scripts/linux on Debian
Previous Message Tom Lane 2004-09-07 22:36:50 Re: Making AFTER triggers act properly in PL functions