Re: varchar in c extension function

From: Terry Lee Tucker <terry(at)esc1(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: varchar in c extension function
Date: 2004-11-05 12:13:05
Message-ID: 200411050713.05937.terry@esc1.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)postgresql(dot)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(at)esc1(dot)com

Attachment Content-Type Size
foo.c text/x-csrc 1.9 KB

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message graeme 2004-11-05 12:19:05 Re: Question on locking
Previous Message Kjetil Haaland 2004-11-05 12:00:23 varchar in c extension function