Re: [HACKERS] tuplesort_gettuple_common() and *should_free argument
От | Robert Haas |
---|---|
Тема | Re: [HACKERS] tuplesort_gettuple_common() and *should_free argument |
Дата | |
Msg-id | CA+TgmoZX7c-9ZsjGT=34p5SdKa6-UKNYivz=1QUdMD=WvVGBYw@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: [HACKERS] tuplesort_gettuple_common() and *should_free argument (Peter Geoghegan <pg@heroku.com>) |
Ответы |
Re: [HACKERS] tuplesort_gettuple_common() and *should_free argument
|
Список | pgsql-hackers |
On Fri, Dec 9, 2016 at 5:59 PM, Peter Geoghegan <pg@heroku.com> wrote: > Attached patch 0001-* removes all should_free arguments. To reiterate, > this is purely a refactoring patch. I think this patch might have a bug. In the existing code, tuplesort_gettupleslot sets should_free = true if it isn't already just before calling ExecStoreMinimalTuple((MinimalTuple) stup.tuple, slot, should_free), so it seems that ExecStoreMinimalTuple() will always get "true" as the fourth argument. However the patch changes that line of code like this: + ExecStoreMinimalTuple((MinimalTuple) stup.tuple, slot, false); So the patch seems to have the effect of changing the fourth argument to this call to ExecStoreMinimalTuple() from always-true to always-false. I might be missing something, but my guess is that's not right. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
В списке pgsql-hackers по дате отправления: