Re: varchar in c extension function - Mailing list pgsql-novice

From Terry Lee Tucker
Subject Re: varchar in c extension function
Date
Msg-id 200411050713.05937.terry@esc1.com
Whole thread Raw
In response to varchar in c extension function  (Kjetil Haaland <kjetil.haaland@student.uib.no>)
Responses Re: varchar in c extension function  (Kjetil Haaland <kjetil.haaland@student.uib.no>)
List pgsql-novice
If I understand your question correctly, all of this type of work is described
under "Server Programming", in "C Language Functions". I'm looking at the
documentation for release 7.3. Attached is a C function that is called by
several of my triggers which interfaces with a third party mileage program
API.

Hope this helps...

On Friday 05 November 2004 07:00 am, Kjetil Haaland saith:
> Hello
>
> Is there any way to take a varchar as an input to a c function? I want to
> take a varchar and a cstring as inputs to a function and then use them as
> cstrings in my c program.
>
> Does anyone know how to do this?
>
> -Kjetil
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

--
Quote: 52
"Honesty does not require posturing. In fact, the two things are incom-
 patible. Nor does objectivity require neutrality.... Objectivity refers
 to an honest seeking of the truth, whatever that truth may turn out to
 be and regardless of what its implications might be. Neutrality refers
 to a preconceived 'balance,' which subordinates the truth to this pre-
 conception.... The truth is where you find it -- and you don't find it
 with a preconceived 'balance' expressed in mealy mouth words."

 --Thomas Sowell

 Work: 1-336-372-6812
 Cell: 1-336-363-4719
email: terry@esc1.com

Attachment

pgsql-novice by date:

Previous
From: Kjetil Haaland
Date:
Subject: varchar in c extension function
Next
From: graeme
Date:
Subject: Re: Question on locking