Do all rows from a set have the same TupleDesc?

Поиск
Список
Период
Сортировка
От Raúl Marín Rodríguez
Тема Do all rows from a set have the same TupleDesc?
Дата
Msg-id CAM6_UM5nQfPJtF_cmNY2g=X4FH2Bd3ZLquTtLY1GHOqn4-6rqw@mail.gmail.com
обсуждение исходный текст
Ответы Re: Do all rows from a set have the same TupleDesc?
Список pgsql-hackers
Hi,

I have an user defined aggregate (Postgis' St_AsMVT) that receives rows as
input and I was wondering if all these tuples have the same TupleDesc.

In case it's important, here is how it's normally called:
```
SELECT St_AsMVT(q) FROM (
SELECT * FROM tilertest.tract9double
) q;
```

The idea behind this question is that, if this were true, I could cache
some information (number of attributes, oids, some internal stuff related
to each attribute) until the end of the aggregation to avoid having to
retrieve or calculate them for each one of the rows.

All the tests I've made seem to confirm this is true, but I was wondering if 
there is any guarantee.

Regards

--
Raúl Marín Rodríguez 
carto.com

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Improve behavior of concurrent TRUNCATE
Следующее
От: Ashutosh Bapat
Дата:
Сообщение: Re: TupleTableSlot abstraction