Chapter 1. libpq -- C Library

Table of Contents
1.1. Introduction
1.2. Database Connection Functions
1.3. Command Execution Functions
1.3.1. Main Routines
1.3.2. Escaping strings for inclusion in SQL queries
1.3.3. Escaping binary strings for inclusion in SQL queries
1.3.4. Retrieving SELECT Result Information
1.3.5. Retrieving SELECT Result Values
1.3.6. Retrieving Non-SELECT Result Information
1.4. Asynchronous Query Processing
1.5. The Fast-Path Interface
1.14. Example Programs

1.1. Introduction

libpq is the C application programmer's interface to PostgreSQL. libpq is a set of library routines that allow client programs to pass queries to the PostgreSQL backend server and to receive the results of these queries. libpq is also the underlying engine for several other PostgreSQL application interfaces. So some aspects of libpq's behavior will be important to you if you use one of those packages.