![]() |
ProvSQL C/C++ API
Adding support for provenance and uncertainty management to PostgreSQL databases
|
Backport implementations for missing PostgreSQL API functions. More...
#include "compatibility.h"
Go to the source code of this file.
Functions | |
| List * | list_insert_nth (List *list, int pos, void *datum) |
Insert datum at position pos in list (PG < 13 backport). | |
Backport implementations for missing PostgreSQL API functions.
Provides implementations of functions that do not exist in older PostgreSQL versions but are declared in compatibility.h.
Currently provides:
list_insert_nth() for PostgreSQL < 13, where the linked-list-based List implementation did not include this helper. Definition in file compatibility.c.
| List * list_insert_nth | ( | List * | list, |
| int | pos, | ||
| void * | datum | ||
| ) |
Insert datum at position pos in list (PG < 13 backport).
PostgreSQL 13 introduced list_insert_nth() when lists were reimplemented as arrays. This declaration provides the same function for older PostgreSQL versions; the implementation lives in compatibility.c.
| list | The list to insert into (may be NIL). |
| pos | Zero-based index at which to insert the new element. |
| datum | The value to insert. |
Definition at line 15 of file compatibility.c.
