Skip to content

Instantly share code, notes, and snippets.

#C libpq essentials

Overview

  • libpq is a C library that enables a programmer to connect with a PostgreSQL database to send queries and access related results.
  • C code compiled with gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0
  • Database instance running PostgreSQL 14.6 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44), 64-bit
  • Test was performed on Ubuntu 20.04 using WSL2 for Windows10.
  • Your credentials need to be added for the test file to produce the output section.