Re: Does included columns part of the PK

From: Igor Korot <ikorot01(at)gmail(dot)com>
To: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Does included columns part of the PK
Date: 2026-03-17 01:11:26
Message-ID: CA+FnnTyH7Hp2tO03UnLE_cpZ_rerdttV02_gVBxM5jiz3Z2GSg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-odbc

Adrian,,

On Mon, Mar 16, 2026 at 5:44 PM Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> wrote:
>
> On 3/16/26 4:38 PM, Igor Korot wrote:
> > Adrian,
> >
> > Most important - do you agree that those fields should not be in this
> > recordset?
>
> I don't see anything here:
>
> https://learn.microsoft.com/en-us/sql/odbc/reference/syntax/sqlprimarykeys-function?view=sql-server-ver17
>
> that says they should be returned. Though the above also says:
>
> " Additional columns beyond column 6 (PK_NAME) can be defined by the
> driver."
>
> That is not the case here, where additional rows are used. However it
> does allow for more information to be supplied.
>
> My purely un-expert analysis is, no the extra rows should not be there.

Thx for confirming.

I already forwarded the email with the query results over to ODBC list.

Hopefully someone can come back soon.

Are you reading that list as well? If not I will update this thread
with the results.

Thank you.

>
> >
> > Thank you.
>
> --
> Adrian Klaver
> adrian(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter Kleiner 2026-03-17 02:16:26 Re: Using \copy to populate a table
Previous Message Adrian Klaver 2026-03-17 00:44:45 Re: Does included columns part of the PK

Browse pgsql-odbc by date

  From Date Subject
Next Message 白彩花 2026-03-26 04:14:57 psqlODBCのWindows 11 25H2対応状況についての確認
Previous Message Adrian Klaver 2026-03-17 00:44:45 Re: Does included columns part of the PK