libpq, connection error - question

From: David CARLIER <devnexen(at)gmail(dot)com>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: libpq, connection error - question
Date: 2025-04-17 18:05:51
Message-ID: CA+XhMqzSx8rEn6EgZV-uxd6HCC6PZwVoW7hSJdXL3Qts5wSmLg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Hi,

in case of PQconnectdb call failure, is it possible to get SQLstate code
such as 28P01 and if yes in which circumstance(s) ? I can t seem to get it
from PQerrorMessage.

Thanks in advance.

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Tom Lane 2025-04-17 18:57:43 Re: libpq, connection error - question
Previous Message Tom Lane 2024-12-21 16:06:58 Re: libpq: make PGresult* "const" in PQcmdStatus()/PQcmdTuples()?