Skip to content

From PostgreSQL 18 onwards - TupleDesc struct uses compat_attribute. TupleDescAttr() is the recommended way to access attr now, which is available on postgresql 16 #2164

@sanchayanghosh

Description

@sanchayanghosh

Starting from PostgreSQL 18 onwards TupleDesc no longer contains attr. it now uses CompactAttr compact_attr.

In PostgreSQL 16, we still support both attr and compact_attrs.

We need to define a macro that can resolve to both tts_tupleDescriptor->attr[i] and to TupleDescAttr(tts_tupleDescriptor, i)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions