Do all rows from a set have the same TupleDesc? - Mailing list pgsql-hackers

From Raúl Marín Rodríguez
Subject Do all rows from a set have the same TupleDesc?
Date
Msg-id CAM6_UM5nQfPJtF_cmNY2g=X4FH2Bd3ZLquTtLY1GHOqn4-6rqw@mail.gmail.com
Whole thread Raw
Responses Re: Do all rows from a set have the same TupleDesc?
List 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 by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Improve behavior of concurrent TRUNCATE
Next
From: Ashutosh Bapat
Date:
Subject: Re: TupleTableSlot abstraction