Re: about call-convention in PostgreSQL programming

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: about call-convention in PostgreSQL programming
Дата
Msg-id 13565.1006354824@sss.pgh.pa.us
обсуждение исходный текст
Ответ на about call-convention in PostgreSQL programming  ("Seung Hyun Jeong" <jeongs@cs.man.ac.uk>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: internals.ps
Следующее
От: Tatsuo Ishii
Дата:
Сообщение: Re: Regression tests need updating...