Re: relscan.h split
| От | Tom Lane |
|---|---|
| Тема | Re: relscan.h split |
| Дата | |
| Msg-id | 3678.1213490931@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: relscan.h split (Alvaro Herrera <alvherre@commandprompt.com>) |
| Список | pgsql-patches |
Alvaro Herrera <alvherre@commandprompt.com> writes:
> Tom Lane wrote:
>> Also, it seemed like some of those .c files had no business poking into
>> the scan structs anyway; particularly contrib. Did you check whether
>> the inclusions could be avoided?
> Not really, unless we were to provide something a routine that returns
> the current block of a scan.
Current buffer you mean. That wouldn't be a bad idea --- the wart I
added to genam.c the other day to recheck the current tuple could be
replaced with that, I think, though it wouldn't really be much less
warty.
BTW I think your change in pgstattuple.c is probably dangerous: if the
relation gets extended between where heap_beginscan_strat sets
rs_nblocks and where you put RelationGetNumberOfBlocks, I think the
block counting will get messed up. That one really does need access
to the internals.
Other than that, this looks pretty sane to me.
regards, tom lane
В списке pgsql-patches по дате отправления: