Re: constants for return value from PQftype?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: constants for return value from PQftype?
Дата
Msg-id 23304.1010499724@sss.pgh.pa.us
обсуждение исходный текст
Ответ на constants for return value from PQftype?  (Adam Haberlach <adam@newsnipple.com>)
Список pgsql-general
Adam Haberlach <adam@newsnipple.com> writes:
> First, I had to modify PoPy.h so that it would not include
> <postgres.h> and <catalog/pg_type.h>, which don't seem to be
> moved into the normal include path by the install.

See "make install-all-headers".  You definitely need pg_type.h
for those constants.

This line looks pretty darn fragile:

    ftype = (ftype>1000 && ftype < 1028?PG_ARRAY:ftype);

A hardwired test on type OID range might or might not be wrong today,
but it will assuredly be wrong in future.

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: "Clark C . Evans"
Дата:
Сообщение: database count and creating from template
Следующее
От: "Clark C . Evans"
Дата:
Сообщение: Re: database count and creating from template