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.

Part 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 H 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

33. libpq - C Library
33.1. Database Connection Control Functions
33.2. Connection Status Functions
33.3. Command Execution Functions
33.4. Asynchronous Command Processing
33.5. Retrieving Query Results Row-By-Row
33.6. Canceling Queries in Progress
33.7. The Fast-Path Interface
33.8. Asynchronous Notification
33.9. Functions Associated with the COPY Command
33.10. Control Functions
33.11. Miscellaneous Functions
33.12. Notice Processing
33.13. Event System
33.14. Environment Variables
33.15. The Password File
33.16. The Connection Service File
33.17. LDAP Lookup of Connection Parameters
33.18. SSL Support
33.19. Behavior in Threaded Programs
33.20. Building libpq Programs
33.21. Example Programs
34. Large Objects
34.1. Introduction
34.2. Implementation Features
34.3. Client Interfaces
34.4. Server-side Functions
34.5. Example Program
35. ECPG - Embedded SQL in C
35.1. The Concept
35.2. Managing Database Connections
35.3. Running SQL Commands
35.4. Using Host Variables
35.5. Dynamic SQL
35.6. pgtypes Library
35.7. Using Descriptor Areas
35.8. Error Handling
35.9. Preprocessor Directives
35.10. Processing Embedded SQL Programs
35.11. Library Functions
35.12. Large Objects
35.13. C++ Applications
35.14. Embedded SQL Commands
35.15. Informix Compatibility Mode
35.16. Internals
36. The Information Schema
36.1. The Schema
36.2. Data Types
36.3. information_schema_catalog_name
36.4. administrable_role_authorizations
36.5. applicable_roles
36.6. attributes
36.7. character_sets
36.8. check_constraint_routine_usage
36.9. check_constraints
36.10. collations
36.11. collation_character_set_applicability
36.12. column_domain_usage
36.13. column_options
36.14. column_privileges
36.15. column_udt_usage
36.16. columns
36.17. constraint_column_usage
36.18. constraint_table_usage
36.19. data_type_privileges
36.20. domain_constraints
36.21. domain_udt_usage
36.22. domains
36.23. element_types
36.24. enabled_roles
36.25. foreign_data_wrapper_options
36.26. foreign_data_wrappers
36.27. foreign_server_options
36.28. foreign_servers
36.29. foreign_table_options
36.30. foreign_tables
36.31. key_column_usage
36.32. parameters
36.33. referential_constraints
36.34. role_column_grants
36.35. role_routine_grants
36.36. role_table_grants
36.37. role_udt_grants
36.38. role_usage_grants
36.39. routine_privileges
36.40. routines
36.41. schemata
36.42. sequences
36.43. sql_features
36.44. sql_implementation_info
36.45. sql_languages
36.46. sql_packages
36.47. sql_parts
36.48. sql_sizing
36.49. sql_sizing_profiles
36.50. table_constraints
36.51. table_privileges
36.52. tables
36.53. transforms
36.54. triggered_update_columns
36.55. triggers
36.56. udt_privileges
36.57. usage_privileges
36.58. user_defined_types
36.59. user_mapping_options
36.60. user_mappings
36.61. view_column_usage
36.62. view_routine_usage
36.63. view_table_usage
36.64. views