mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-06 21:06:48 +02:00
Backpatch introduction of TupleDescAttr(tupdesc, i).
2cd7084524
/c6293249d
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-
This commit is contained in:
parent
41803d55a2
commit
6c036d0108
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user