Re: libpq analog of \c

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Igor Korot <ikorot01(at)gmail(dot)com>
Cc: "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: libpq analog of \c
Date: 2026-10-05 06:28:05
Message-ID: CAKFQuwaARKAxNHRYfpgVaybyhv8JvsgHqxqB6QHn8-Q+N6H-nA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sunday, October 4, 2026, Igor Korot <ikorot01(at)gmail(dot)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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Laurenz Albe 2026-10-05 06:35:09 Re: libpq analog of \c
Previous Message Igor Korot 2026-10-05 06:09:00 libpq analog of \c