RefLib

Reference library for AI

Back

postgresql_16:5.3.11 Library Functions

PostgreSQL 16 > Client Interfaces > ECPG — Embedded SQL in C > Library Functions

The libecpg library primarily contains “hidden” functions that are used to implement the functionality expressed by the embedded SQL commands. But there are some functions that can usefully be called directly. Note that this makes your code unportable.

> Note > On Windows, if the ecpg libraries and an application are compiled with different flags, this function call will crash the application because the internal representation of the FILE pointers differ. Specifically, multithreaded/single-threaded, release/debug, and static/dynamic flags should be the same for the library and all applications using that library.

> Note > It is a bad idea to manipulate database connection handles made from ecpg directly with libpq routines.

Back