Re: about call-convention in PostgreSQL programming

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Seung Hyun Jeong" <jeongs(at)cs(dot)man(dot)ac(dot)uk>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: about call-convention in PostgreSQL programming
Date: 2001-11-21 15:00:24
Message-ID: 13565.1006354824@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Seung Hyun Jeong" <jeongs(at)cs(dot)man(dot)ac(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tatsuo Ishii 2001-11-21 15:05:42 Re: Regression tests need updating...
Previous Message Tom Lane 2001-11-21 14:53:22 Re: internals.ps