Skip to content

Commit d13ae48

Browse files
author
Arseny Kositsyn
committed
[PGPRO-12159] Fixed test crashes on version 13 of PostgreSQL.
The crashes were due to the fact that the MONEYOID is not defined on versions below 14. Tags: rum
1 parent 267267f commit d13ae48

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/rum_debug_funcs.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ rum_page_opaque_info(PG_FUNCTION_ARGS)
318318
values[3] = Int32GetDatum(opaq->freespace);
319319

320320
#if PG_VERSION_NUM >= 160000
321-
values[4] = ItemPointerGetDatum(construct_array_builtin(flags, nflags, TEXTOID));
321+
values[4] = PointerGetDatum(construct_array_builtin(flags, nflags, TEXTOID));
322322
#else
323323
values[4] = PointerGetDatum(construct_array(flags, nflags,
324324
TEXTOID, -1, false, TYPALIGN_INT));
@@ -1478,6 +1478,7 @@ get_datum_text_by_oid(Datum info, Oid info_oid)
14781478
str_info = OidOutputFunctionCall(F_FLOAT8OUT, info);
14791479
break;
14801480

1481+
#if PG_VERSION_NUM >= 140000
14811482
/*
14821483
* TODO: The oid of the function for displaying this
14831484
* type as text could not be found.
@@ -1486,6 +1487,7 @@ get_datum_text_by_oid(Datum info, Oid info_oid)
14861487
/* str_addInfo = OidOutputFunctionCall(, addInfo); */
14871488
/* break; */
14881489
return CStringGetTextDatum("MONEYOID is not supported");
1490+
#endif
14891491

14901492
case OIDOID:
14911493
str_info = OidOutputFunctionCall(F_OIDOUT, info);

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