Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd34a74d

Browse files
committed
Backpatch introduction of TupleDescAttr(tupdesc, i).
2cd7084 /c629324 change the way individual attributes in aTupleDesc are stored / accessed. To reduce the effort of makingextensions compatible with postgresql 11, and to ease futurebackpatching, backpatch introduction of TupleDescAttr() to allreleases. Do not backpatch change in storage, as that'd be a breakingchange for existing and working extensions.Author: Andres FreundDiscussion:https://postgr.es/m/20170820181723.tdswdinzptbcwhrr@alap3.anarazel.deBackpatch: 9.2-
1 parent958ffb8 commitd34a74d

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+
#defineTupleDescAttr(tupdesc,i) ((tupdesc)->attrs[(i)])
86+
8487
externTupleDescCreateTemplateTupleDesc(intnatts,boolhasoid);
8588

8689
externTupleDescCreateTupleDesc(intnatts,boolhasoid,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp