File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -245,7 +245,11 @@ initRumState(RumState * state, Relation index)
245245 if (state -> oneCol )
246246 {
247247 state -> tupdesc [i ] = CreateTemplateTupleDesc (
248+ #if PG_VERSION_NUM >= 120000
249+ OidIsValid (rumConfig -> addInfoTypeOid ) ? 2 : 1 );
250+ #else
248251 OidIsValid (rumConfig -> addInfoTypeOid ) ? 2 : 1 , false);
252+ #endif
249253 TupleDescInitEntry (state -> tupdesc [i ], (AttrNumber ) 1 , NULL ,
250254 origAttr -> atttypid ,
251255 origAttr -> atttypmod ,
@@ -266,7 +270,11 @@ initRumState(RumState * state, Relation index)
266270 else
267271 {
268272 state -> tupdesc [i ] = CreateTemplateTupleDesc (
273+ #if PG_VERSION_NUM >= 120000
274+ OidIsValid (rumConfig -> addInfoTypeOid ) ? 3 : 2 );
275+ #else
269276 OidIsValid (rumConfig -> addInfoTypeOid ) ? 3 : 2 , false);
277+ #endif
270278 TupleDescInitEntry (state -> tupdesc [i ], (AttrNumber ) 1 , NULL ,
271279 INT2OID , -1 , 0 );
272280 TupleDescInitEntry (state -> tupdesc [i ], (AttrNumber ) 2 , NULL ,
You can’t perform that action at this time.
0 commit comments