Supported Versions: Current (17) / 16 / 15 / 14 / 13
Development Versions: devel
Unsupported versions: 12 / 11 / 10 / 9.6 / 9.5 / 9.4 / 9.3 / 9.2 / 9.1 / 9.0 / 8.4 / 8.3 / 8.2 / 8.1 / 8.0 / 7.4
This documentation is for an unsupported version of PostgreSQL.
You may want to view the same page for the current version, or one of the other supported versions listed above instead.

IV. Client Interfaces

This part describes the client programming interfaces distributed with PostgreSQL. Each of these chapters can be read independently. Note that there are many other programming interfaces for client programs that are distributed separately and contain their own documentation (Appendix G lists some of the more popular ones). Readers of this part should be familiar with using SQL commands to manipulate and query the database (see Part II) and of course with the programming language that the interface uses.

Table of Contents
30. libpq - C Library
30.1. Database Connection Control Functions
30.2. Connection Status Functions
30.3. Command Execution Functions
30.4. Asynchronous Command Processing
30.5. Cancelling Queries in Progress
30.6. The Fast-Path Interface
30.7. Asynchronous Notification
30.8. Functions Associated with the COPY Command
30.9. Control Functions
30.10. Miscellaneous Functions
30.11. Notice Processing
30.12. Event System
30.13. Environment Variables
30.14. The Password File
30.15. The Connection Service File
30.16. LDAP Lookup of Connection Parameters
30.17. SSL Support
30.18. Behavior in Threaded Programs
30.19. Building libpq Programs
30.20. Example Programs
31. Large Objects
31.1. Introduction
31.2. Implementation Features
31.3. Client Interfaces
31.4. Server-Side Functions
31.5. Example Program
32. ECPG - Embedded SQL in C
32.1. The Concept
32.2. Connecting to the Database Server
32.3. Closing a Connection
32.4. Running SQL Commands
32.5. Choosing a Connection
32.6. Using Host Variables
32.7. Dynamic SQL
32.8. pgtypes library
32.9. Informix compatibility mode
32.10. Using SQL Descriptor Areas
32.11. Error Handling
32.12. Preprocessor directives
32.13. Processing Embedded SQL Programs
32.14. Library Functions
32.15. Internals
33. The Information Schema
33.1. The Schema
33.2. Data Types
33.3. information_schema_catalog_name
33.4. administrable_role_authorizations
33.5. applicable_roles
33.6. attributes
33.7. check_constraint_routine_usage
33.8. check_constraints
33.9. column_domain_usage
33.10. column_privileges
33.11. column_udt_usage
33.12. columns
33.13. constraint_column_usage
33.14. constraint_table_usage
33.15. data_type_privileges
33.16. domain_constraints
33.17. domain_udt_usage
33.18. domains
33.19. element_types
33.20. enabled_roles
33.21. foreign_data_wrapper_options
33.22. foreign_data_wrappers
33.23. foreign_server_options
33.24. foreign_servers
33.25. key_column_usage
33.26. parameters
33.27. referential_constraints
33.28. role_column_grants
33.29. role_routine_grants
33.30. role_table_grants
33.31. role_usage_grants
33.32. routine_privileges
33.33. routines
33.34. schemata
33.35. sequences
33.36. sql_features
33.37. sql_implementation_info
33.38. sql_languages
33.39. sql_packages
33.40. sql_parts
33.41. sql_sizing
33.42. sql_sizing_profiles
33.43. table_constraints
33.44. table_privileges
33.45. tables
33.46. triggers
33.47. usage_privileges
33.48. user_mapping_options
33.49. user_mappings
33.50. view_column_usage
33.51. view_routine_usage
33.52. view_table_usage
33.53. views