Re: How to create c language in postgresql database. Thanks.

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: How to create c language in postgresql database. Thanks.
Date: 2012-06-12 18:12:50
Message-ID: 4FD786A2.7030402@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 06/12/12 9:53 AM, leaf_yxj wrote:
> I need to create c language in the postgresql database. I only know to
> create as follows.
>
> Create language c ;
>

to clarify what tom said, you externally compile your C functions into
.so/.dll files, then bind them in with CREATE FUNCTION name(args)
RETURNS ..... AS 'path/filename' LANGUAGE C

see http://www.postgresql.org/docs/current/static/xfunc-c.html

--
john r pierce N 37, W 122
santa cruz ca mid-left coast

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message yxj 2012-06-12 18:24:41 Re: How to create c language in postgresql database. Thanks.
Previous Message Dmitriy Igrishin 2012-06-12 18:04:19 Re: How to declare return type for a function returning several rows and columns?