Re: table size growing out of control

Поиск
Список
Период
Сортировка
От Jan Wieck
Тема Re: table size growing out of control
Дата
Msg-id 3D35B0F9.BD9A6419@Yahoo.com
обсуждение исходный текст
Ответ на table size growing out of control  (Robert Treat <rtreat@webmd.net>)
Ответы Re: table size growing out of control  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Tom Lane wrote:
>
> Jan Wieck <JanWieck@Yahoo.com> writes:
> > Tom Lane wrote:
> >> Good point.  What do people think of making the pg_stat_activity view do
> >> COALESCE(current_query, '<unknown>')
> >> so that there's a clear flag that you're not seeing anything?
>
> > Shouldn't be done on the view. The builtin function used to extract that
> > information from the stats file can do it much better.
>
> No, I think the view is exactly the right place to do it.  If we do it
> in the function then we are forcing a UI-prettiness issue onto
> applications that may not want it; but they'll have no way to bypass it.
>
> > So it could return <permission denied> or similar in that case to
> > distinguish.
>
> I don't think it's all that important to distinguish the reason why
> you're not seeing it.  Returning NULL from the function is a perfectly
> good convention at the level of the function.

Could you then please explain why you want to change anything at all?
Doesn't NULL perfectly express "unknown", at least if it's in the result
set of an ANSI compliant database?


Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #

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

Предыдущее
От: nconway@klamath.dyndns.org (Neil Conway)
Дата:
Сообщение: Re: just a quick one ...
Следующее
От: "Randall Barber"
Дата:
Сообщение: Oracle to PGSQL -- need help