Re: Increasing the length of pg_stat_activity.current_query...

From: Greg Stark <gsstark(at)mit(dot)edu>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Increasing the length of pg_stat_activity.current_query...
Date: 2004-11-07 00:28:16
Message-ID: 87oeialcyn.fsf@stark.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Sean Chittenden <sean(at)chittenden(dot)org> writes:

> Having a 1K query isn't uncommon on some of the stuff I work on, an 8K query...
> that's a tad different and would stick out like a sore thumb.

Just as a point of reference, I've been processing my logs to see how large my
queries work out to. They seem to max out at just over 5k, (5330 bytes to be
exact).

This is excluding "CREATE FUNCTION" calls where the body of the function can
of course be much larger but isn't interesting for stats.

> Would you be open to increasing this further after the 8.0 release? I
> haven't heard of anyone complaining about dropped/fragmented pgstat
> messages. :) -sc

From my own experience I would suggest 8k. If it's good enough for NFS
defaults it ought to be good enough for Postgres.

Realistically, you shouldn't be expecting any real quantities of dropped
packets on a local area network, so fragmented UDP packets aren't really a
problem. Anyone running their stats collector over a long haul internet
connection with dropped packets is probably doing something pretty unusual.

I think historically implementations didn't handle fragmented UDP packets at
all, or perhaps not over 32k. But any platform today ought to be happy with
packets at least up to 32k and any modern platform quite a bit larger.

--
greg

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Mark Kirkwood 2004-11-07 00:54:06 Re: Proposal for Recover mode in pg_ctl (in 8.0)
Previous Message Tom Lane 2004-11-07 00:16:52 Re: Proposal for Recover mode in pg_ctl (in 8.0)