Re: Lazy xid assignment V4

Поиск
Список
Период
Сортировка
От Robert Treat
Тема Re: Lazy xid assignment V4
Дата
Msg-id 200709051727.32697.xzilla@users.sourceforge.net
обсуждение исходный текст
Ответ на Re: Lazy xid assignment V4  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Lazy xid assignment V4  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Lazy xid assignment V4  ("Florian G. Pflug" <fgp@phlo.org>)
Список pgsql-patches
On Wednesday 05 September 2007 12:56, Tom Lane wrote:
> "Florian G. Pflug" <fgp@phlo.org> writes:
> > However, none of these are very strong reasons - certainly weaker than
> > doing what ensures to cause the least confusion. I'm therefore
> > starting to think that we should remove transaction, and keep the name
> > virtualtransaction for the VXID. That will ensure that clients who
> > *do* rely on pg_locks and the "transaction" column (which will be few,
> > I guess) at least fail early and visibly, instead of producing bogus
> > results...
>

Reading the docs, it says "Every transaction holds an exclusive lock on its
virtual transaction ID for its entire duration. If a permanent ID is assigned
to the transaction (which normally happens only if the transaction changes
the state of the database), it also holds an exclusive lock on its permanent
transaction ID until it ends."

ISTM that by removing the transaction column, there is no way to see the XID
for relations thats have been updated (which by definition will have locks on
them).  Am I mis-reading the docs, or have we lost that functionality?

--
Robert Treat
Build A Brighter LAMP :: Linux Apache {middleware} PostgreSQL

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: HOT patch - version 15
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Lazy xid assignment V4