Re: [HACKERS] Patch for user-defined C-language functions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andreas Zeugswetter <andreas(dot)zeugswetter(at)telecom(dot)at>
Cc: hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Patch for user-defined C-language functions
Date: 1999-09-14 14:53:09
Message-ID: 16365.937320789@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Andreas Zeugswetter <andreas(dot)zeugswetter(at)telecom(dot)at> writes:
> But I think the intuitive Syntax in SQL would use ():
> CREATE FUNCTION mytype3 ( mytype2 )
> RETURNS mytype3
> AS 'mytypes.so(mytype2_to_mytype3)'
> LANGUAGE 'C'
> Syntax:
> AS <link_file>[(symbol_name)]

I think Bernard had the better solution --- the above presumes that
filenames won't ever have parens in them. (Which, admittedly, is a
bad idea under most Unix shells --- but that doesn't mean we should
perpetuate the problem.) Also, I'd rather see us keep the platform-
dependent ".so" extension at the end of its string, where it's easy
to spot and fix when needed.

regards, tom lane

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Lockhart 1999-09-14 14:58:30 Re: [HACKERS] serial type
Previous Message Tom Lane 1999-09-14 14:39:44 Re: [HACKERS] serial type