Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lKM8u-00035i-VP for pgsql-bugs@arkaria.postgresql.org; Thu, 11 Mar 2021 14:18:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lKM8t-0000cZ-HC for pgsql-bugs@arkaria.postgresql.org; Thu, 11 Mar 2021 14:18:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lKM8t-0000cS-B4 for pgsql-bugs@lists.postgresql.org; Thu, 11 Mar 2021 14:18:23 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lKM8q-0000uD-N4 for pgsql-bugs@lists.postgresql.org; Thu, 11 Mar 2021 14:18:22 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1lKM8p-0002Dq-5H; Thu, 11 Mar 2021 09:18:19 -0500 Date: Thu, 11 Mar 2021 09:18:19 -0500 From: Bruce Momjian To: mjfshark@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16923: Timestamptz always returns utc time when resultformat is in binary format. Message-ID: <20210311141819.GE11261@momjian.us> References: <16923-02bede34869fc819@postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16923-02bede34869fc819@postgresql.org> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Mar 11, 2021 at 12:54:11PM +0000, PG Bug reporting form wrote: > The following bug has been logged on the website: > > Bug reference: 16923 > Logged by: Mark Ford > Email address: mjfshark@gmail.com > PostgreSQL version: 12.3 > Operating system: Windows 10 > Description: > > Tested server version 12.3, client versions 10.13 (32bit and 64bit) and > 13.2.(64bit) > Issue: > Using libpq.dll and requesting a result set in binary format. Timestamptz > results are returned in UTC timezone instead of the current session's > timezone setting. Note that in text format the timestamptz is returned > properly converted. Also note that Timetz results are converted correctly > regardless of the result set format (binary or text.) > > Expected results: > The documentation seems to state that Timestamptz fields will be returned > converted to the currently set timezone session property and doesn't mention > the above behavior. This combined with timetz fields being converted > regardless of output format seems inconsistent. I think you need to show us the commands you ran, and their output. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com The usefulness of a cup is in its emptiness, Bruce Lee