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 1nmmmV-0008RD-GU for pgsql-general@arkaria.postgresql.org; Fri, 06 May 2022 01:29:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nmmmT-0004WN-A2 for pgsql-general@arkaria.postgresql.org; Fri, 06 May 2022 01:29:17 +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 1nmmmT-0004WD-00 for pgsql-general@lists.postgresql.org; Fri, 06 May 2022 01:29:17 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nmmmQ-000224-Eh for pgsql-general@lists.postgresql.org; Fri, 06 May 2022 01:29:16 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 2461TBNQ2772413; Thu, 5 May 2022 21:29:11 -0400 From: Tom Lane To: Jerry Sievers cc: pggeneral Subject: Re: Psycopg3 fails to resolve 'timezone localtime' on MacOS In-reply-to: <108B3AA1-8FBF-4C76-98BE-490156DAA5B5@comcast.net> References: <108B3AA1-8FBF-4C76-98BE-490156DAA5B5@comcast.net> Comments: In-reply-to Jerry Sievers message dated "Thu, 05 May 2022 20:03:54 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2772411.1651800551.1@sss.pgh.pa.us> Date: Thu, 05 May 2022 21:29:11 -0400 Message-ID: <2772412.1651800551@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Jerry Sievers writes: > Psycopg3 fails to resolve timezone localtime on MacOS (Catalina). I doubt Postgres will accept that zone name anywhere. It's not a standard name as far as the tzdb data set is concerned. (Having said that, it's far from clear to me whether this code fragment is trying to set the PG server's timezone setting or not. Your issue may be purely a Python one.) regards, tom lane