Re: buffile.c resource owner breakage on segment extension
От | Andres Freund |
---|---|
Тема | Re: buffile.c resource owner breakage on segment extension |
Дата | |
Msg-id | 20131104094410.GG3567@awork2.anarazel.de обсуждение исходный текст |
Ответ на | Re: buffile.c resource owner breakage on segment extension (Tom Lane <tgl@sss.pgh.pa.us>) |
Список | pgsql-hackers |
On 2013-11-01 15:28:54 -0400, Tom Lane wrote: > Andres Freund <andres@2ndquadrant.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... Thanks for committing and sorry for the need to freshen up the comments. I don't think I had ever opened buffile.c before and thus wasn't sure if there isn't a better fix, so I didn't want to spend too much time on it before somebody agreed it is the right fix. Also, I was actually just trying to recover some data from a corrupted database and this stopped me from it ;) Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services
В списке pgsql-hackers по дате отправления: