Re: C function woes - Mailing list pgsql-general

From Tom Lane
Subject Re: C function woes
Date
Msg-id 10631.982776207@sss.pgh.pa.us
Whole thread Raw
In response to Re: C function woes  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-general
Peter Eisentraut <peter_e@gmx.net> writes:
> Is it good practice to scribble around in data type internals?  Why not

> text *
> hello()
> {
>     return textin("hello world");
> }

Well, he could do that if he wanted, but that doesn't teach him anything
about how to prepare his own datatype, which I suppose is the real point
of the exercise.

(Actually, the above code will be *less* portable to 7.1 than the other
version, because the calling convention of textin() changed ...)

            regards, tom lane

pgsql-general by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: Weird indices
Next
From: Tom Lane
Date:
Subject: Re: Re: Deferred NOT NULL?