PQtypesRegister(3)

PQtypesRegister3

Registers libpqtypes with the libpq event system.

Usage

#include <libpqtypes.h>

int PQtypesRegister(PGconn *conn);

Deprecated

THIS FUNCTION IS DEPRECATED. New applications should use PQinitTypes. This function is now a wrapper to PQinitTypes.

Overview

libpqtypes makes use of the libpq Event System. Before using libpqtypes, you must register libpqtypes as a libpq EventProc. The function takes a PGconn that libpqtypes will be registered with; each PGconn requires its own registration.

Return value

The function returns zero if it fails and non-zero if it succeeds.

Examples

Registering libpqtypes

The examples shows how to register libpqtypes with the libpq event system.


    

    
        

/* call prior to any other libpqtypes functions that operate on conn. */ PQtypesRegister(conn);

Releases

Unchanged in 5 releases since Debian 8 (Jessie).

  1. 8–12

Author

A contribution of eSilo, LLC. for the PostgreSQL Database Management System. Written by Andrew Chernow and Merlin Moncure.

Reporting bugs

Report bugs to <[email protected]>.

From libpqtypes-dev 1.5.1-9 in Debian 12 (Bookworm). Parsed by carta from the page's man source.