Re: Order of pg_stat_activity timestamp columns

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: Order of pg_stat_activity timestamp columns
Дата
Msg-id 9837222c1003171351s2c3199aer2e7e3a9a9196f76d@mail.gmail.com
обсуждение исходный текст
Ответ на Order of pg_stat_activity timestamp columns  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: Order of pg_stat_activity timestamp columns
Список pgsql-hackers
On Wed, Mar 17, 2010 at 21:42, Bruce Momjian <bruce@momjian.us> wrote:
> Has anyone ever noticed that the order of pg_stat_activity timestamp
> columns is illogical:
>
>  xact_start       | timestamp with time zone |
>  query_start      | timestamp with time zone |
>  backend_start    | timestamp with time zone |

Well, 7.4 had only "query start". 8.1 added backend. 8.3 added
transaction. So I guess my original guess that things were just added
on the end was wrong :-)


> query_start is always between the other two timestamps.  Moving
> query_start before xact_start would make the most sense.  I wouldn't
> bring this up except we just added application_name before these
> columns, so we are already going to have different column locations for
> these fields in 9.0.
>
> Should we move query_start?

Or perhaps we should consider moving application_name to the end so it
*doesn't* break them?

-- Magnus HaganderMe: http://www.hagander.net/Work: http://www.redpill-linpro.com/


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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: An idle thought
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Getting to beta1