Re: tuplestore API problem

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: tuplestore API problem
Дата
Msg-id 23615.1238345955@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: tuplestore API problem  (Hitoshi Harada <umi.tanuki@gmail.com>)
Ответы Re: tuplestore API problem
Список pgsql-hackers
Hitoshi Harada <umi.tanuki@gmail.com> writes:
> 2009/3/29 Tom Lane <tgl@sss.pgh.pa.us>:
>> ... What might be a bit saner is to remember the slot last passed to
>> tuplestore_gettupleslot for each read pointer. �The implication would be
>> that we'd be assuming only one slot is used to fetch from any one read
>> pointer, but that is probably a reasonable restriction.

> Hm, this choice is better than mine. But if we take this, I suppose we
> need to consider the way to break the restriction, for the case we
> will be forced to use many TupleTableSlots on one read pointer.

I don't think we'd ever be "forced" to do that; and it would be easy to
add an Assert to tuplestore_gettupleslot to check that it gets the same
slot on each call.  Someone who needed to save previous tuples would be
advised to copy older tuples to some other slot after fetching them.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Hitoshi Harada
Дата:
Сообщение: Re: tuplestore API problem
Следующее
От: Tom Lane
Дата:
Сообщение: Re: psql \d* and system objects