File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2018-2023 Tada AB and other contributors, as listed below.
2+ * Copyright (c) 2018-2025 Tada AB and other contributors, as listed below.
33 *
44 * All rights reserved. This program and the accompanying materials
55 * are made available under the terms of the The BSD 3-Clause License
3333#include "pljava/JNICalls.h"
3434
3535#if PG_VERSION_NUM < 90600
36- #define GetOldestSnapshot () NULL
36+ #define get_toast_snapshot () NULL
37+ #elif PG_VERSION_NUM < 180000
38+ #define get_toast_snapshot () GetOldestSnapshot()
39+ #else
40+ #include <access/toast_internals.h>
3741#endif
3842
3943#define _VL_TYPE struct varlena *
@@ -145,7 +149,7 @@ jobject pljava_VarlenaWrapper_Input(
145149 goto justDetoastEagerly ;
146150 if ( VARATT_IS_EXTERNAL_ONDISK (vl ) )
147151 {
148- pin = GetOldestSnapshot ();
152+ pin = get_toast_snapshot ();
149153 if ( NULL == pin )
150154 {
151155 /*
You can’t perform that action at this time.
0 commit comments