Remove uses of raw libpq

This page is a capture in the next bucket of the product backlog — a pre-sprint idea, not yet pulled into a sprint as a story.

We have added support for the missing features in sqlgen so that we can replace uses of raw libpq. The PRs have been merged in main sqlgen, we just need a release. Do a search for all uses of raw libpq and replace it with appropriate sqlgen calls.

We need to monitor sqlgen releases and then vcpkg updates.

Actually we now have a port with latest.

Merged PRs:

Emacs 29.1 (Org mode 9.6.6)