Re: ADD/DROP constraints - Mailing list pgsql-hackers

From Tom Lane
Subject Re: ADD/DROP constraints
Date
Msg-id 20418.1149878463@sss.pgh.pa.us
Whole thread Raw
In response to Re: ADD/DROP constraints  (Greg Stark <gsstark@mit.edu>)
Responses Re: ADD/DROP constraints  (Greg Stark <gsstark@mit.edu>)
List pgsql-hackers
Greg Stark <gsstark@mit.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


pgsql-hackers by date:

Previous
From: Greg Stark
Date:
Subject: Re: That EXPLAIN ANALYZE patch still needs work
Next
From: Tom Lane
Date:
Subject: Re: That EXPLAIN ANALYZE patch still needs work