How to Know the number of attrs?

Поиск
Список
Период
Сортировка
От jacktby jacktby
Тема How to Know the number of attrs?
Дата
Msg-id E9579DE1-E808-4C90-9C7A-B5E4DD16E838@gmail.com
обсуждение исходный текст
Список pgsql-hackers
typedef struct TupleDescData
{
    int            natts;            /* number of attributes in the tuple */
    Oid            tdtypeid;        /* composite type ID for tuple type */
    int32        tdtypmod;        /* typmod for tuple type */
    int            tdrefcount;        /* reference count, or -1 if not counting */
    TupleConstr *constr;        /* constraints, or NULL if none */
    /* attrs[N] is the description of Attribute Number N+1 */
    FormData_pg_attribute attrs[FLEXIBLE_ARRAY_MEMBER];
}            TupleDescData;

Hi, the attrs use FLEXIBLE_ARRAY_MEMBER, so which API should I use to get the real length of this array?


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

Предыдущее
От: jacktby jacktby
Дата:
Сообщение: How to Know the number of attrs?
Следующее
От: Erik Wienhold
Дата:
Сообщение: Re: How to Know the number of attrs?