Skip to content

Commit 390feca

Browse files
committed
Dropped the last compatibility macros for PG 8.2
1 parent a92fefa commit 390feca

File tree

2 files changed

+1
-38
lines changed

2 files changed

+1
-38
lines changed

lib/pgut/pgut-be.h

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -53,34 +53,6 @@ extern int no_such_variable
5353
#endif
5454

5555

56-
#if PG_VERSION_NUM < 80300
57-
58-
#define PGDLLIMPORT DLLIMPORT
59-
#define SK_BT_DESC 0 /* Always ASC */
60-
#define SK_BT_NULLS_FIRST 0 /* Always NULLS LAST */
61-
#define MaxHeapTupleSize MaxTupleSize
62-
63-
#define PG_GETARG_TEXT_PP(n) PG_GETARG_TEXT_P(n)
64-
#define VARSIZE_ANY_EXHDR(v) (VARSIZE(v) - VARHDRSZ)
65-
#define VARDATA_ANY(v) VARDATA(v)
66-
#define SET_VARSIZE(v, sz) (VARATT_SIZEP(v) = (sz))
67-
#define pg_detoast_datum_packed(v) pg_detoast_datum(v)
68-
#define DatumGetTextPP(v) DatumGetTextP(v)
69-
#define ItemIdIsNormal(v) ItemIdIsUsed(v)
70-
#define IndexBuildHeapScan(heap, index, info, sync, callback, state) \
71-
IndexBuildHeapScan((heap), (index), (info), (callback), (state))
72-
#define planner_rt_fetch(rti, root) \
73-
rt_fetch(rti, (root)->parse->rtable)
74-
#define heap_sync(rel) ((void)0)
75-
#define ItemIdIsDead(itemId) ItemIdDeleted(itemId)
76-
#define GetCurrentCommandId(used) GetCurrentCommandId()
77-
#define stringToQualifiedNameList(str) \
78-
stringToQualifiedNameList((str), "pg_bulkload")
79-
#define PageAddItem(page, item, size, offnum, overwrite, is_heap) \
80-
PageAddItem((page), (item), (size), (offnum), LP_USED)
81-
82-
#endif
83-
8456
#if PG_VERSION_NUM < 80400
8557

8658
#define MAIN_FORKNUM 0
@@ -171,10 +143,7 @@ extern Datum ExecFetchSlotTupleDatum(TupleTableSlot *slot);
171143

172144
#endif
173145

174-
#if PG_VERSION_NUM < 80300
175-
#define RelationSetNewRelfilenode(rel, xid) \
176-
setNewRelfilenode((rel))
177-
#elif PG_VERSION_NUM < 90000
146+
#if PG_VERSION_NUM < 90000
178147
#define RelationSetNewRelfilenode(rel, xid) \
179148
setNewRelfilenode((rel), (xid))
180149
#endif

lib/pgut/pgut-spi.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@
1212

1313
#include "executor/spi.h"
1414

15-
#if PG_VERSION_NUM < 80300
16-
17-
typedef void *SPIPlanPtr;
18-
19-
#endif
20-
2115
#if PG_VERSION_NUM < 80400
2216

2317
extern int SPI_execute_with_args(const char *src, int nargs, Oid *argtypes,

0 commit comments

Comments
 (0)