20#ifndef COMPATIBILITY_H
21#define COMPATIBILITY_H
24#include "nodes/pg_list.h"
39#if PG_VERSION_NUM >= 130000
40 return list_delete_cell(list, cell);
42 return list_delete_cell(list, cell, prev);
57static inline ListCell *
my_lnext(
const List *l,
const ListCell *c)
59#if PG_VERSION_NUM >= 130000
66#if PG_VERSION_NUM < 130000
83#if PG_VERSION_NUM < 140000
85#define F_COUNT_ANY 2147
89#define F_SUM_INT4 2108
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).