Skip to content

Commit cd89098

Browse files
committed
Improve support of current master
1 parent 6e9f384 commit cd89098

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/rumutil.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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,

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