Re: libpq analog of \c - Mailing list pgsql-general

From David G. Johnston
Subject Re: libpq analog of \c
Date
Msg-id CAKFQuwaARKAxNHRYfpgVaybyhv8JvsgHqxqB6QHn8-Q+N6H-nA@mail.gmail.com
Whole thread
In response to libpq analog of \c  (Igor Korot <ikorot01@gmail.com>)
List pgsql-general
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.

pgsql-general by date:

Previous
From: Igor Korot
Date:
Subject: libpq analog of \c
Next
From: Laurenz Albe
Date:
Subject: Re: libpq analog of \c