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

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: Increasing the length of pg_stat_activity.current_query...
Дата
Msg-id 87oeialcyn.fsf@stark.xeocode.com
обсуждение исходный текст
Ответ на Re: Increasing the length of pg_stat_activity.current_query...  (Sean Chittenden <sean@chittenden.org>)
Список pgsql-hackers
Sean Chittenden <sean@chittenden.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



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Proposal for Recover mode in pg_ctl (in 8.0)
Следующее
От: Mark Kirkwood
Дата:
Сообщение: Re: Proposal for Recover mode in pg_ctl (in 8.0)