Skip to content

Commit 6c036d0

Browse files
committed
Backpatch introduction of TupleDescAttr(tupdesc, i).
2cd7084 / c629324 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-
1 parent 41803d5 commit 6c036d0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/include/access/tupdesc.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ typedef struct tupleDesc
8181
} *TupleDesc;
8282

8383

84+
/* Accessor for the i'th attribute of tupdesc. */
85+
#define TupleDescAttr(tupdesc, i) ((tupdesc)->attrs[(i)])
86+
8487
extern TupleDesc CreateTemplateTupleDesc(int natts, bool hasoid);
8588

8689
extern TupleDesc CreateTupleDesc(int natts, bool hasoid,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy