Re: [GENERAL] Shared Objects (Dynamic loading)

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Jasbinder Bali <jsbali(at)gmail(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: [GENERAL] Shared Objects (Dynamic loading)
Date: 2006-08-24 12:19:07
Message-ID: 20060824121906.GA94438@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-novice

On Thu, Aug 24, 2006 at 03:51:28AM -0400, Jasbinder Bali wrote:
> Actually my function accepts char, so what should be the SQL analogue for
> that in postgres?

You might be able to declare the SQL function to accept a cstring
argument but you really should write the code to conform to
PostgreSQL's preferred (version-1) calling conventions. That might
mean writing simple wrapper function that calls the real function.

If you're doing text manipulation then it would probably be a lot
easier in PL/Perl than in C.

--
Michael Fuhr

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Emi Lu 2006-08-24 12:59:10 Length limit for query
Previous Message Silvela, Jaime (Exchange) 2006-08-24 12:17:57 Can't open Postgres at all!!!

Browse pgsql-novice by date

  From Date Subject
Next Message Jasbinder Bali 2006-08-24 16:08:58 Dynamic loading (datatype mismatch)
Previous Message Michael Fuhr 2006-08-24 11:58:07 Re: [GENERAL] Shared Objects (Dynamic loading)