Thanks to visit codestin.com
Credit goes to postgrespro.com

Re: pg_locks view versus prepared transactions - Mailing list pgsql-hackers

From Tom Lane
Subject Re: pg_locks view versus prepared transactions
Date
Msg-id [email protected]
Whole thread Raw
In response to Re: pg_locks view versus prepared transactions  ("Merlin Moncure" <[email protected]>)
List pgsql-hackers
"Merlin Moncure" <[email protected]> writes:
>> I was also wondering about adding a current-XID column to
>> pg_stat_activity, and encouraging people to join pg_locks and
>> pg_stat_activity on XID instead of PID.

> That would be awesome.  Is there any performance penalty to do this?

I gave up on the idea after I realized that current XID tends to change
a lot faster than the pg_stats mechanism is designed to track.
(Consider the half-second lag for starters...)  Turning pg_stats into a
realtime mechanism would be horridly expensive.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: pg_locks view versus prepared transactions
Next
From: Tom Lane
Date:
Subject: Re: pg_locks view versus prepared transactions