running transactions in postgresql
running transactions in postgresql
От:
"Jenny -" <nat_lazy@hotmail.com>
Дата:
hi,
Iam working on project that deals with analyzing the locking mechanism in postgresql.
I started a transaction in postgresql with 'begin work;' and noticed that even though no locks have been taken yet, there still exists data in LockData datastructures that indicates that the transaction i just started running is waiting for a lock.Does anyone know why this happens? I f not , could someone guide me to the appropriate site or mailinglist where my question can be answered.
thank you
Jenny
Protect your PC - Click here for McAfee.com VirusScan Online
Re: running transactions in postgresql
От:
Alvaro Herrera <alvherre@dcc.uchile.cl>
Дата:
On Tue, Jul 08, 2003 at 07:41:48AM -0700, Jenny - wrote: > [unquotable HTML, please post only text/plain!] At transaction start (src/backend/access/transam/xact.c::StartTransaction()), src/backend/storage/lmgr/lmgr.c::XactLockTableInsert() is executed, which takes a special lock on a ficticious XactLockTableId. Maybe that's what you are seeing? -- Alvaro Herrera () "Uno puede defenderse de los ataques; contra los elogios se esta indefenso"