Re: Happy column adding (was RE: [HACKERS] Happy column dropping)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Don Baccus <dhogaza(at)pacifier(dot)com>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp>, PostgreSQL Development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: Happy column adding (was RE: [HACKERS] Happy column dropping)
Date: 2000-01-25 17:39:25
Message-ID: 14178.948821965@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Don Baccus <dhogaza(at)pacifier(dot)com> writes:
> However, heap_getattr still won't see the default since it simply
> checks to see of the attribute number falls off the end of the
> tuple and then returns null.

Right.

> There's no provision for then pulling out the default value and
> returning it instead.

Would it even be possible to do that? I'm not sure that heap_getattr
has any way to find the default. It only has a TupleDesc, not a
reference to the relation itself...

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ross J. Reedstrom 2000-01-25 17:44:53 Re: Happy column adding (was RE: [HACKERS] Happy column dropping)
Previous Message Tom Lane 2000-01-25 17:23:15 Re: Happy column adding (was RE: [HACKERS] Happy column dropping)