Re: about call-convention in PostgreSQL programming - Mailing list pgsql-hackers

From Tom Lane
Subject Re: about call-convention in PostgreSQL programming
Date
Msg-id 13565.1006354824@sss.pgh.pa.us
Whole thread Raw
In response to about call-convention in PostgreSQL programming  ("Seung Hyun Jeong" <jeongs@cs.man.ac.uk>)
List pgsql-hackers
"Seung Hyun Jeong" <jeongs@cs.man.ac.uk> writes:
> Relation open_gist(PG_FUNCTION_ARGS)
> {
>    char *index_name = (char *) PG_GETARG_POINTER(0);

You didn't say what datatype your function is declared to accept ...
but there is no Postgres datatype that is identical to a C string.
You have some conversion work to do if you want to, say, produce
a C string from a "text" input.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: internals.ps
Next
From: Tatsuo Ishii
Date:
Subject: Re: Regression tests need updating...