Re: C function woes

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Chris Hayner <hayner80(at)astro(dot)ocis(dot)temple(dot)edu>, PostgreSQL-General <pgsql-general(at)postgresql(dot)org>
Subject: Re: C function woes
Date: 2001-02-21 17:23:27
Message-ID: 10631.982776207@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Peter Eisentraut <peter_e(at)gmx(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2001-02-21 17:30:27 Re: ELOG_TIMESTAMPS feature
Previous Message Stephan Szabo 2001-02-21 17:15:44 Re: Inheritance Question