From: | "Jenny -" <nat_lazy(at)hotmail(dot)com> |
---|---|
To: | tgl(at)sss(dot)pgh(dot)pa(dot)us |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: row level lock and table level locks |
Date: | 2003-09-09 01:09:33 |
Message-ID: | BAY1-F123BekWo76Uai0000172c@hotmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
>TupleTables are just temporary data structures to hold transiently
>created tuples during execution of a query. There's usually one for
>each plan node.
So, if i have the following transaction:
begin work;
select * from students where a age=19 for update;
lock table studens in share mode;
commit;
The TupleTable will exist for the query from the point the query is made
untill the transaction is committed? or does the TupleTable go away as soon
as query is finished executing?
I would think the TupleTable for that query is held untill the transaction
is committed since lock on the tuple is endtill the end of transaction
Thanks
>From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
>To: "Jenny -" <nat_lazy(at)hotmail(dot)com>
>CC: pgsql-hackers(at)postgresql(dot)org
>Subject: Re: [HACKERS] row level lock and table level locks Date: Mon, 08
>Sep 2003 12:49:51 -0400
>
>"Jenny -" <nat_lazy(at)hotmail(dot)com> writes:
> > I found out that TupleTable stores per-tuple information(it stores
> > HeapTupleData) and that also there are multiple TupleTables in the db at
>a
> > time.Based on what are diffrent TupleTables created?
>
cc>
> regards, tom lane
>
>---------------------------(end of broadcast)---------------------------
>TIP 4: Don't 'kill -9' the postmaster
_________________________________________________________________
Express yourself with MSN Messenger 6.0 -- download now!
http://www.msnmessenger-download.com/tracking/reach_general
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2003-09-09 02:33:35 | Re: row level lock and table level locks |
Previous Message | Ron Mayer | 2003-09-08 23:46:13 | Re: ISO 8601 'Time Intervals' of the 'format with time-unit deignators' |