Skip site navigation (1) Skip section navigation (2)

Re: TupleDescInitEntry failing to initialize varlen members

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: TupleDescInitEntry failing to initialize varlen members
Date: 2011-12-01 22:43:33
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)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

In response to

pgsql-hackers by date

Next:From: Josh BerkusDate: 2011-12-01 22:52:44
Subject: Re: to_date() marked stable?
Previous:From: Peter EisentrautDate: 2011-12-01 21:19:04
Subject: Re: patch for type privileges

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group