Skip to content
Snippets Groups Projects
Commit d34a74dd authored by Andres Freund's avatar Andres Freund
Browse files

Backpatch introduction of TupleDescAttr(tupdesc, i).

2cd70845 / c6293249 change the way individual attributes in a
TupleDesc are stored / accessed.  To reduce the effort of making
extensions compatible with postgresql 11, and to ease future
backpatching, backpatch introduction of TupleDescAttr() to all
releases.  Do not backpatch change in storage, as that'd be a breaking
change for existing and working extensions.

Author: Andres Freund
Discussion: https://postgr.es/m/20170820181723.tdswdinzptbcwhrr@alap3.anarazel.de
Backpatch: 9.2-
parent 958ffb8c
No related branches found
No related tags found
No related merge requests found
......@@ -81,6 +81,9 @@ typedef struct tupleDesc
} *TupleDesc;
/* Accessor for the i'th attribute of tupdesc. */
#define TupleDescAttr(tupdesc, i) ((tupdesc)->attrs[(i)])
extern TupleDesc CreateTemplateTupleDesc(int natts, bool hasoid);
extern TupleDesc CreateTupleDesc(int natts, bool hasoid,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment