Re: C function argument types

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: C function argument types
Дата
Msg-id 22565.1274292929@sss.pgh.pa.us
обсуждение исходный текст
Ответ на C function argument types  (Bogdan Vlad <bogdancvlad@gmail.com>)
Список pgsql-hackers
Bogdan Vlad <bogdancvlad@gmail.com> writes:
> How can I determine the pg_class oid of the argument type in a
> polymorphic C function when it's called with a table row?

You're confusing pg_class oid with pg_type oid.  The type oid
of the function argument is necessarily going to be a *type* oid.

You can look at the pg_type row to find the associated pg_class oid,
if it's a composite type (it might not be!)
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Building the 64-bit Postgres
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: pg_upgrade - link mode and transaction-wraparound data loss