Re: buffile.c resource owner breakage on segment extension

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andres Freund <andres(at)2ndquadrant(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: buffile.c resource owner breakage on segment extension
Date: 2013-11-01 19:28:54
Message-ID: 19266.1383334134@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Andres Freund <andres(at)2ndquadrant(dot)com> writes:
> While not particularly nice, given the API, it seems best for buffile.c
> to remember the resource owner used for the original segment and
> temporarily set that during the extension.

Hm, yeah, that seems right. It's just like repalloc keeping the memory
chunk in its original context. The comments here are a bit inadequate...

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jim Nasby 2013-11-01 20:18:02 Handle LIMIT/OFFSET before select clause (was: Feature request: optimizer improvement)
Previous Message Robert Haas 2013-11-01 19:21:48 Re: API bug in DetermineTimeZoneOffset()