On Sunday, October 4, 2026, Igor Korot <
ikorot01@gmail.com> wrote:
Hi,
What do issue in the libpq interface to
select the current database?
I don’t think there is an analog…I suggest you read the C code for how psql implements \connect if you want to see how it uses libpq to do its thing.
David J.