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.94.2) (envelope-from ) id 1tzSte-002KC4-7E for pgsql-general@arkaria.postgresql.org; Tue, 01 Apr 2025 04:06:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tzStb-00Fkcr-Ag for pgsql-general@arkaria.postgresql.org; Tue, 01 Apr 2025 04:06:39 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tzSta-00Fkcj-W7 for pgsql-general@lists.postgresql.org; Tue, 01 Apr 2025 04:06:38 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tzStY-002gIp-1J for pgsql-general@postgresql.org; Tue, 01 Apr 2025 04:06:38 +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 53146Yhg278823; Tue, 1 Apr 2025 00:06:34 -0400 From: Tom Lane To: Jayadevan M cc: "pgsql-general@postgresql.org" Subject: Re: Doubt on pg_timezone_names and pg_timezone_abbrevs In-reply-to: References: Comments: In-reply-to Jayadevan M message dated "Tue, 01 Apr 2025 09:08:50 +0530" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <278821.1743480394.1@sss.pgh.pa.us> Date: Tue, 01 Apr 2025 00:06:34 -0400 Message-ID: <278822.1743480394@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Jayadevan M writes: > I used 'IST' in a query like this - * (timestamp_hour) at time zone 'IST' > time_ist *and did not get the expected output - timestamp in Indian > Standard Time. I think IST defaults to 'Israel Standard Time', a/k/a Asia/Jerusalem, a/k/a UTC+2. To get it to mean Indian Standard Time a/k/a Asia/Calcutta you need set timezone_abbreviations TO 'India'; (or more likely, adjust that in your installation's postgresql.conf). See https://www.postgresql.org/docs/current/datetime-config-files.html regards, tom lane