Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ia5lC-00032R-I8 for pgsql-general@arkaria.postgresql.org; Wed, 27 Nov 2019 22:26:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ia5lA-0006DM-Jv for pgsql-general@arkaria.postgresql.org; Wed, 27 Nov 2019 22:26:08 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ia5l8-0006DF-Hk for pgsql-general@lists.postgresql.org; Wed, 27 Nov 2019 22:26:08 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ia5l1-0001cl-7Z for pgsql-general@postgresql.org; Wed, 27 Nov 2019 22:26:05 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 79FDAAED; Wed, 27 Nov 2019 17:25:57 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Wed, 27 Nov 2019 17:25:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=1 PHgQX8sX0/3w345E34wT6iWhsOGsbBVFjMZQBFWoTs=; b=0kHKyq7DyHqm4Z+ui yndeQogu8ZLmZuOsh5adgBfkT/ZEUnXB6iyFBOuS22YRet/tTRnn8wjBv4BV4DOG zBapwcb+tGfe0MRUjs+yXrj4bMwVptm08GY1UWkxDwbTyRR5Q+gc4rZycPkuME6b EW0uvw25ZOd2UEOY1sKxv9ijmZKvlPVCD/J/elZN4WUbjZ3ySF+IoiEWT/33BrF7 YRphDTFYCpbyX5lDcsJYDe356B4lgi9TbOjc6/ZgXKGVL4+0kevApg8ip9l4wP2l Ary7Lnco3tzuqVwAyL+wtisFDxfgTMwBubxo/CMD9xmUCCxD5GROB3ax/m6d9mke OIpag== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=1PHgQX8sX0/3w345E34wT6iWhsOGsbBVFjMZQBFWo Ts=; b=yCPBuIQHo3JGVq51But9ACF1fQEWte7/IOT5ZpBkGUIlY8bU2qJOmqhxL xP3mtXoOUO+ec2cIv8tZCuCaefRuK4fpDol9U+EpyxzytA3xF6Y6E3dNpEcKdGnY jlQPu02KSVWBlhHG7GqxXjxs6rLZ+hmAGjsgNnLoeFcvRAWg2BLfvfeuqFyIovDq dB/+ifneYhTv3mfRHT5t2CGQ1xaGloO6wFEemTRzUlGG+PSdoBo7Zn7MGWELVFA+ nhmfpkRqyDAbXvQReBbTY+ZwauRGxAc4TiEM/YY9bHSifgRM38D+zCl5pNpY5KB+ OGA9dC/Qj1fgJkN2FpMmDeroqN4LA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudeihedgudehlecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesth ejredttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdr khhlrghvvghrsegrkhhlrghvvghrrdgtohhmqeenucfkphepjeegrdelgedrjeefrddvvd dvnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhl rghvvghrrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from ranger.suse (unknown [74.94.73.222]) by mail.messagingengine.com (Postfix) with ESMTPA id 71F143060057; Wed, 27 Nov 2019 17:25:56 -0500 (EST) Subject: Re: ROLE VALID UNTIL timezone? To: Ron , "pgsql-general@postgresql.org" References: From: Adrian Klaver Message-ID: <4375fad2-334f-3d9a-6b2c-ba0e4f337601@aklaver.com> Date: Wed, 27 Nov 2019 14:25:55 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 11/27/19 2:19 PM, Ron wrote: > Hi, > > In 9.6, does it default to UTC, the postgresql.conf timezone value > (US/Eastern) value or to local system time? > > test_(postgres)# show timezone; TimeZone ------------ US/Pacific test_(postgres)# create role ts_test valid until '12/31/2020'; CREATE ROLE ts_test | Cannot login +| {} | Password valid until 2020-12-31 00:00:00-08 | Best guess it operates like if specifying a value for a timestamptz field. -- Adrian Klaver adrian.klaver@aklaver.com