Re: ADD/DROP constraints

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Greg Stark <gsstark(at)mit(dot)edu>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: ADD/DROP constraints
Date: 2006-06-09 18:41:03
Message-ID: 20418.1149878463@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Greg Stark <gsstark(at)mit(dot)edu> writes:
> There seems to be something I'm missing wrt the conbin string.

You can't access fields that lie to the right of a variable-width field
using C struct field names. You need to use heap_getattr() or one of
its relatives to obtain a pointer to such a field. You ought to be
checking for NULL, too.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2006-06-09 18:42:29 Re: That EXPLAIN ANALYZE patch still needs work
Previous Message Greg Stark 2006-06-09 18:33:13 Re: That EXPLAIN ANALYZE patch still needs work