Re: TupleDescInitEntry failing to initialize varlen members - Mailing list pgsql-hackers

From Tom Lane
Subject Re: TupleDescInitEntry failing to initialize varlen members
Date
Msg-id 20167.1322779413@sss.pgh.pa.us
Whole thread Raw
In response to TupleDescInitEntry failing to initialize varlen members  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
List pgsql-hackers
Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> I just noticed in gdb that TupleDescInitEntry does not initialize
> attacl, attoptions, attfdwoptions.

Indeed not, because it's not building a tuple.  It's building an array
of C structs, and there's nothing useful to do with those fields.

(Robert's proposal to not even have such fields be C-visible might make
you feel better.)
        regards, tom lane


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: patch for type privileges
Next
From: Josh Berkus
Date:
Subject: Re: to_date() marked stable?