Re: Toasted table not deleted when no out of line columns left

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gregory Stark <stark(at)enterprisedb(dot)com>
Cc: Simon Riggs <simon(at)2ndQuadrant(dot)com>, Hans-Jürgen Schönig <hs(at)cybertec(dot)at>, Zoltan Boszormenyi <zb(at)cybertec(dot)at>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Toasted table not deleted when no out of line columns left
Date: 2008-09-22 15:03:54
Message-ID: 23327.1222095834@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Gregory Stark <stark(at)enterprisedb(dot)com> writes:
> Hmm.... I wonder if this doesn't have the same problems you're describing with
> the toaster. If someone has a cursor WITH HOLD against the table they don't
> get a session level lock against the tables which fed the cursor do
> they?

Hmm, interesting point. The tuples are read out and saved in a
tuplestore before we release locks, but I'm not sure if there is
anything in that codepath that would detoast toast references.
Seems like you're right that there would need to be.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2008-09-22 15:11:04 Re: WIP patch: Collation support
Previous Message Zdenek Kotala 2008-09-22 15:02:04 Re: WIP patch: Collation support