23#ifndef COMPATIBILITY_H
24#define COMPATIBILITY_H
27#include "nodes/pg_list.h"
42#if PG_VERSION_NUM >= 130000
43 return list_delete_cell(list, cell);
45 return list_delete_cell(list, cell, prev);
60static inline ListCell *
my_lnext(
const List *l,
const ListCell *c)
62#if PG_VERSION_NUM >= 130000
69#if PG_VERSION_NUM < 130000
86#if PG_VERSION_NUM < 140000
88#define F_COUNT_ANY 2147
92#define F_SUM_INT4 2108
95#if PG_VERSION_NUM >= 130000 && PG_VERSION_NUM < 140000
99#define list_make5(x1, x2, x3, x4, x5) lappend(list_make4(x1, x2, x3, x4), x5)
102#if PG_VERSION_NUM < 130000
107#define TYPALIGN_INT 'i'
108#define TYPALIGN_CHAR 'c'
111#if PG_VERSION_NUM < 140000
117#define F_ARRAY_AGG_ANYNONARRAY 2335
static List * my_list_delete_cell(List *list, ListCell *cell, ListCell *prev)
Version-agnostic wrapper around list_delete_cell().
static ListCell * my_lnext(const List *l, const ListCell *c)
Version-agnostic wrapper around lnext().
List * list_insert_nth(List *list, int pos, void *datum)
Insert datum at position pos in list (PG < 13 backport).