2

In the PostgreSQL source code there are 2 libpq folders :

  • src/interfaces/libpq
  • src/backend/libpq

What is the difference between them?

As from what I have seen only the one present in interfaces folder is compiled and referred.

C00kieMonsta
  • 338
  • 3
  • 20

2 Answers2

2

One's for backend (for the server to receive connections -- src/backend/libpq) and one's for frontend (for clients to make connections to the server -- src/interfaces/libpq)

Disclosure: I work for EnterpriseDB (EDB)

richyen
  • 8,114
  • 4
  • 13
  • 28
1

src/interfaces/libpq contains the code for the libpq client shared library.

src/backend/libpq contains the server-side implementation of the frontend/backend protocol.

Laurenz Albe
  • 209,280
  • 17
  • 206
  • 263