Re: "txn" in pg_stat_activity

From: Neil Conway <neilc(at)samurai(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: "txn" in pg_stat_activity
Date: 2007-09-11 01:11:57
Message-ID: 1189473117.8242.39.camel@dell.linuxdev.us.dell.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, 2007-09-10 at 21:04 -0400, Tom Lane wrote:
> I have just noticed that a column "txn_start" has appeared in
> pg_stat_activity since 8.2. It's a good idea, but who chose the name?

Me.

> I'm inclined to rename it to "xact_start", which is an abbreviation
> that we *do* use in the code, and in some user-visible places, eg,
> pg_stat_database has "xact_commit" and "xact_rollback" columns.

I personally find "xact" to be a less intuitive abbreviation of
"transaction" than "txn", but for the sake of consistency, I agree it is
probably better to use "xact_start".

-Neil

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tatsuo Ishii 2007-09-11 01:14:40 Re: invalidly encoded strings
Previous Message Tom Lane 2007-09-11 01:04:45 "txn" in pg_stat_activity