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

From: Andreas Zeugswetter <andreas(dot)zeugswetter(at)telecom(dot)at>
To: hackers(at)postgresql(dot)org
Subject: Re: [HACKERS] Patch for user-defined C-language functions
Date: 1999-09-14 07:44:25
Message-ID: 37DDFCD9.41DB3DA7@telecom.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> Postgresql operator with the following syntax
>
> CREATE FUNCTION mytype3 ( mytype2 )
> RETURNS mytype3
> AS 'mytypes.so', 'mytype2_to_mytype3'
> LANGUAGE 'C'
>
> The syntax for the AS clause, which was 'AS <link-file>' becomes
>
> AS <link_file>[, <link_name>]

Sounds great !

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)]

This is also how Illustra and now Informix does it.
(Instead of AS they say EXTERNAL NAME)

Andreas

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ansley, Michael 1999-09-14 07:57:29 RE: [HACKERS] Status report: long-query-string changes
Previous Message Thomas Lockhart 1999-09-14 02:59:01 Re: [HACKERS] Is "isolation" a restricted word?