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 1w1Qra-000ISl-28 for pgsql-general@arkaria.postgresql.org; Sat, 14 Mar 2026 15:25:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w1QrY-002CyS-1X for pgsql-general@arkaria.postgresql.org; Sat, 14 Mar 2026 15:25:13 +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 1w1QrY-002CyJ-0T for pgsql-general@lists.postgresql.org; Sat, 14 Mar 2026 15:25:12 +0000 Received: from fout-b1-smtp.messagingengine.com ([202.12.124.144]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w1QrW-000000007af-27q9 for pgsql-general@lists.postgresql.org; Sat, 14 Mar 2026 15:25:12 +0000 Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42]) by mailfout.stl.internal (Postfix) with ESMTP id 044891D000D3; Sat, 14 Mar 2026 11:25:09 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-02.internal (MEProxy); Sat, 14 Mar 2026 11:25:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1773501909; x=1773588309; bh=zKwcBQ893u+fX0tykf9LHFYhWR5pjOShObPeaVj8qPg=; b= mKpTtIGT2YrdAk8rqjvwOj80QFm2vFJnMzRANNx29ziDjwMio0hf30zBD3jE4RJR xEKULGm8Jgc8TWxmX9F8W9XDO6MEcU8fUDK8fJJs7iuTP+CFh4WswKaPuubBJC4j qTWCZpkOdqLVbrYgBXZO7ptNkU43cmV6vn5QEAfwLvittjS0yOAAYLW9HbdGSxLC KAj/rYI5b7z8aldFBv+c4Xqnr2qXgVXk/upYXKei8NVdwjseCiFP3S0SYrmJ5W4T nmr54B7iSZRcE7ls+WOSQeH3F88BJq7gxZDRNA4izpipYy0LfpG8O13NCiRNjUDt YlsmNsmrjxLda8asubGx5Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1773501909; x=1773588309; bh=z KwcBQ893u+fX0tykf9LHFYhWR5pjOShObPeaVj8qPg=; b=sasvn/VuSycfk4RzD wwdq7eqaOBE7GzWWUqqvHU9/rqJQWn+/qLBVnYY5x3ZaOA4K77cdAoQ+4WnxKSN6 dmfFsrinXUE25mqwpe9OWcrNGPcqOWOR8tIlnXdoiYZ5IfCJvXL67CgyEOWOs8jL 4OZ9yBavb/alwnayVho6alot9pX8d9KmodLzYbTcYogW6g225mvRpj8nmrYobIRW eMIP4KxWT2YkpFilpTzsDMvHlACDhdKAdZ2fd9pPXTp+oNDw0g8o44GwoljkYA7J 53Ja7Xh/XKUKAH104kH/iqE3C10t3Ff/e9OWm6Oxdnl7sqGaj4vdAjwVoGiuZ8yR k0BbQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvledvledvucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepkfffgggfuffvfhfhjggtgfesthejredttddvjeenucfhrhhomheptegurhhirghn ucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmqe enucggtffrrghtthgvrhhnpeeivdfhieehheegueeileejieettdejhedugeefleekvdel keehtdfgiefffeekudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmpdhnsggp rhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehikhhorhhoth dtudesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhgvghnvghrrghlsehl ihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 14 Mar 2026 11:25:09 -0400 (EDT) Message-ID: Date: Sat, 14 Mar 2026 08:25:08 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Does included columns part of the PK To: Igor Korot , "pgsql-generallists.postgresql.org" References: Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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.klaver@aklaver.com