Re: IDLE in transaction introspection

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: IDLE in transaction introspection
Дата
Msg-id CA+TgmoaTw-pYsC8ou=rdgqYfjXZSdP7rrP=chzpYGoPA8PCV5A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: IDLE in transaction introspection  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: IDLE in transaction introspection  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Tue, Nov 1, 2011 at 9:52 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Simon Riggs <simon@2ndQuadrant.com> writes:
>> Why not leave it exactly as it is, and add a previous_query column?
>
>> That gives you exactly what you need without breaking anything.
>
> That would cost twice as much shared memory for query strings, and twice
> as much time to update the strings, for what seems pretty marginal
> value.  I'm for just redefining the query field as "current or last
> query".

Not really.  You could just store it once in shared memory, and put
the complexity in the view definition.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: unite recovery.conf and postgresql.conf
Следующее
От: Marti Raudsepp
Дата:
Сообщение: Re: IDLE in transaction introspection