From: | Alvaro Herrera <alvherre(at)surnet(dot)cl> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Merlin Moncure <merlin(dot)moncure(at)rcsonline(dot)com>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: pg_locks view versus prepared transactions |
Date: | 2005-06-20 21:04:42 |
Message-ID: | 20050620210442.GA9278@surnet.cl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Mon, Jun 20, 2005 at 04:18:03PM -0400, Tom Lane wrote:
> However, all you could get from ProcArray would be the database in
> which the backend is running, and maybe the owning user's ID if we
> cared to expend the extra space to store it there. We're certainly
> not going to add current_query or any such thing into that array.
You could show the current transaction Id, which is also useful.
(Presently there's no way to know even a backend's own TransactionId,
and people is suggested to use hacks like insert a row in a table and
check its xmin.)
Maybe we could add an adittional view, with all the info from ProcArray,
which is useful sometimes. Then you could join that to pg_locks, and it
would work even if the statistic collector is disabled.
--
Alvaro Herrera (<alvherre[a]surnet.cl>)
"La felicidad no es mañana. La felicidad es ahora"
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2005-06-20 21:09:39 | Re: WAL bypass for CTAS |
Previous Message | Simon Riggs | 2005-06-20 20:55:12 | Re: WAL bypass for CTAS |