Re: Problems with simple_heap_update and Form_pg_relcheck

From: Holger Krug <hkrug(at)rationalizer(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Problems with simple_heap_update and Form_pg_relcheck
Date: 2002-01-11 17:39:49
Message-ID: 20020111183949.B17918@dev12.rationalizer.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Jan 11, 2002 at 11:57:27AM -0500, Tom Lane wrote:
> Holger Krug <hkrug(at)rationalizer(dot)com> writes:
> > ((Form_pg_relcheck) GETSTRUCT(rctup))->rcerrhandlers = found + 1;
>
> What's an "rcerrhandlers"? It doesn't appear in current sources.

Yes, it's part of my project to add error handlers. It's the number
of error handlers for this constraint, currently my code allows
as values either 0 or 1.

> I have a feeling you added rcerrhandlers after the variable-length
> fields. Not good, at least not if you want to access it via a C
> struct. See, eg,
> http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/catalog/README

I have that feeling, too. Thanks for the prompt help.

--
Holger Krug
hkrug(at)rationalizer(dot)com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2002-01-11 17:42:40 Re: again on index usage
Previous Message Ross J. Reedstrom 2002-01-11 17:22:09 Re: again on index usage