Re: Does included columns part of the PK

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Igor Korot <ikorot01(at)gmail(dot)com>, "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Does included columns part of the PK
Date: 2026-03-14 15:25:08
Message-ID: b3f6ecfb-8772-4e15-a772-8e64fb573d49@aklaver.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-odbc

On 3/14/26 12:09 AM, Igor Korot wrote:
> Hi, ALL,
> Have one weird question ;-)
>
> When I connect with ODBC and call SQLPrimaryKey() the function returns

Are you actually using the SQLPrimaryKeys(), not SQLPrimaryKey()?

> all fields including
> "included" fields.

Define 'included' fields.

> I'm getting only direct PK fields.

Define direct PK fields.

>
> I presume that libpq is correct and the ODBC driver is the one that
> needs to be fixed.

Returning the actual results from each case would help.

Have you cranked up the logging on the Postgres server to see what query
ODBC is using?

>
> Just wanted to ask this list before going to complain to the ODBC list... ;-)
>
> Thank you.
>
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2026-03-14 15:51:24 Re: Does included columns part of the PK
Previous Message Adrian Klaver 2026-03-14 15:14:56 Re: compatibility between PostgreSQL JDBC driver version 42.7.10 and Java 25

Browse pgsql-odbc by date

  From Date Subject
Next Message David G. Johnston 2026-03-14 15:51:24 Re: Does included columns part of the PK
Previous Message David G. Johnston 2026-03-14 15:07:37 Re: Does included columns part of the PK