Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w1RGz-000Iof-38 for pgsql-general@arkaria.postgresql.org; Sat, 14 Mar 2026 15:51:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w1RGy-002GkZ-25 for pgsql-general@arkaria.postgresql.org; Sat, 14 Mar 2026 15:51:29 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w1RGy-002GkQ-0s for pgsql-general@lists.postgresql.org; Sat, 14 Mar 2026 15:51:29 +0000 Received: from mail-ot1-x32a.google.com ([2607:f8b0:4864:20::32a]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w1RGw-000000007jb-2VLK for pgsql-general@lists.postgresql.org; Sat, 14 Mar 2026 15:51:27 +0000 Received: by mail-ot1-x32a.google.com with SMTP id 46e09a7af769-7d75e74f5adso3156233a34.3 for ; Sat, 14 Mar 2026 08:51:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1773503486; cv=none; d=google.com; s=arc-20240605; b=KEl36Al7BaMPb0kH9Pqee2EKTU3qgux+U8JqOF+HG2YrX+I5/PYTGVlhCAOYl5+jME JB/001cZwdp6g/1Rn9HnWSq2kZX2F2Brxk4uhW59oBYyONzi5qcgUhh4CqhMD2Rr3Hg/ GlKn1AbI8JPDm0grzqUmTpWcaaSVkSn5cRxJgfgjX2zVmCkknXyluhFF2uPYOjU8kFYx Q5G7zBNbYmFJ2brY1efm2IZ/Rwkfq1SZ/Xf00iftJV/0xe49mBEbnm49/CzcuLXunpEX ooJnpq8gI3+OQEVhq88facv7FGYPUoghIoqGgR/PP5I4zAKHs9dHYbkWe3vh5/PQyknx OJxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:dkim-signature; bh=MGBgd7YzDCrBcU4tClrVwIVa8cWfjzn2pEcD0OVcugg=; fh=pRNiz5fbrZR0J88EsNkEMhD8AT4BKg1ndV3d+DPnN4o=; b=J8Dsy4OCO2WyIGwP7b8uEj5DTaKBAQzVsDDdnY8/8KKC4aD8UZQZjmPJurtBZLzxCR R6Y4jWfSb0I1SERcw6CDcAFtR9cyEauvRirTzkNQl1fKbigeaTtq398V8w5I590o44to b1wjzX5hsKQdp4Cgmi4/9GGdnJ17pC5bWUUs8P/mT5i3Ob7XBG8ZVdZ+aR2ZsLcettFR h6cDEzkR+CKDaGQvFJ0f01YnBhu4EbY3bT7ePHmd5HsJRTYr0U3fJmuE7AOAzUoSBfY/ D/oAANhIfErzsIeX/7gVvYBzL9IoyvSQYeweDSz/9hPySNS9ln0OEz3tsU78jumWVIig imug==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773503486; x=1774108286; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=MGBgd7YzDCrBcU4tClrVwIVa8cWfjzn2pEcD0OVcugg=; b=nok7KQwrc2WR7nDfOTVgA/mlgaGdALngfxPIVY48w805mOAkKlrvGFtrPdkn0n4RHh ypzF3wx1NmIIw2jySE2V3sOixR3VjtCC+jhNAYj2vDIA7ztyA5ccL2C5ZJX4Rv9AUYPU SlABrdQ0gSgE79I/zvZsuVOVUDVe5EgttoLCnJ3PqgCPj485IacyN0UVOyOcWgb4yN3d d3B3F6Qbvt3rST621tSaZPMdI61WC6N8JdWeu9bn9cpuXW0vm/ETVZ6DMr+tMo5UU5os CnEo3NABdiysaxIqVpaQi6yFGenow6xebkpnh8WduMuArSTf96e8nj3Rqu0hx+8kXdex LUgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773503486; x=1774108286; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=MGBgd7YzDCrBcU4tClrVwIVa8cWfjzn2pEcD0OVcugg=; b=hR5+0E4d/N2z7Aziq0eQvCJamITSVOfi6zjiqpZf0ja3w3JKepBIQ5h9XfBPrEJc+p Gz6hbwCSqmztlBqz7uQ0Lu/JWWzIJKo7d2a3GHa1zVL3dvNu8wd9NRNPgM+kShTr54dN C03wxAQddroUXdikbLkXSz5BOHio351Vazsjv9eLWel89o8vSUXM5Nnu3ggxU6fiABL5 cmDEFBlnMzlvYnlpB3zb0hvYvoeK/qLN69MKSn2PjoVwERWJUTXtFa58ETTHKNlho7nA sl4G6oKeJygcfDxwrgYs8kBM8AcQ2C8b+Fu1eIU16TT7UFP8eZuypDBDPklb1vFE/CEa 4/gA== X-Forwarded-Encrypted: i=1; AJvYcCVYLD+hzXKs7IhKPwoWHtfs9VTBOE1gl9PK71jl161lOy4kX76NP9f2DZPPXVIP4+ymxvBFTTO1p70JzQy3@lists.postgresql.org X-Gm-Message-State: AOJu0YwIM4D+Xq1modjezugoOn7vBjnKnq5o/ge1A/OutH1s3AF3EZBT hBGGadt6lRWznnIObgYM1XB0/hy4u2mNWLyimH3SPKAkNW9CEuzynq/lp9CAQGuiSzqcvBqzNHw FzTLyKW90X+Lgd+pNDjR+bw6KH1txZlk= X-Gm-Gg: ATEYQzweXeOuiJLvQXMOXY1/8M4oF6E7HwiVSLvzruQnCfvnnvFdbRJhWF52jNOQa1g z3D4zA7Lxjj2tedazrHLBnIvXYHqnqCidUqeF9tpxusEfeET4Mjml5MrxAVfM99slGM/nOFTyzd uMgijg9dg7wy4joTbBERutBB6shGEQPFoivax8KXrCaO5PUm0Uk73NlUwGoe3QCZqeNF3QBFVUr w40Wx9oGRTzlHqNTYy95wZK7nPQKIts5OVRrIhfOdNTrTMD+YAyjVBFZeQGkyfECwrOiqW8NNMY LUnq X-Received: by 2002:a05:6820:2918:b0:67b:c368:135b with SMTP id 006d021491bc7-67bda9dd424mr4953550eaf.33.1773503486383; Sat, 14 Mar 2026 08:51:26 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:6802:5086:b0:61e:a2ca:c8a0 with HTTP; Sat, 14 Mar 2026 08:51:24 -0700 (PDT) In-Reply-To: References: From: "David G. Johnston" Date: Sat, 14 Mar 2026 08:51:24 -0700 X-Gm-Features: AaiRm53g-GtFhGtvS2CX0SPlmKMwbZd26kE72_t2dLrWUTBZPpLiBJ5v_KrjLnI Message-ID: Subject: Re: Does included columns part of the PK To: Adrian Klaver Cc: Igor Korot , "pgsql-generallists.postgresql.org" Content-Type: multipart/alternative; boundary="00000000000050583e064cfdf56b" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000050583e064cfdf56b Content-Type: text/plain; charset="UTF-8" On Saturday, March 14, 2026, Adrian Klaver wrote: > 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. > They are referring to the unique index that backs the PK constraint. David J. --00000000000050583e064cfdf56b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Saturday, March 14, 2026, Adrian Klaver <adrian.klaver@aklaver.com> wrote:
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.

They are referring to the unique index tha= t backs the PK constraint.

David J.=C2=A0
--00000000000050583e064cfdf56b--