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 1iaAQl-0008Oe-Jj for pgsql-general@arkaria.postgresql.org; Thu, 28 Nov 2019 03:25:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iaAQj-0005Mz-V3 for pgsql-general@arkaria.postgresql.org; Thu, 28 Nov 2019 03:25:21 +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 1iaAQi-0005Mg-PO for pgsql-general@lists.postgresql.org; Thu, 28 Nov 2019 03:25:21 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iaAQf-00041Y-Ay for pgsql-general@postgresql.org; Thu, 28 Nov 2019 03:25:19 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 599172263A; Wed, 27 Nov 2019 22:25:16 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Wed, 27 Nov 2019 22:25:16 -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=q TyPOB6/JCuV8H0i7T/vt3Q+c0qhmHM44onBr0QTnpc=; b=zZN2+xbIjubQELqrh NbyrfubsLJv5qLXi/1T+lfDQJrFGPBskMF6V3RoWT3nNFBKEs2jRogLv0/3JgWNJ khZQ4RdtsVONuXP7Gi7qiikizmhcv+cLbCRO4s8B2uIkE9f4wt9tRl0MAULhCXTQ mJQJU+GCpjuQ1+86Oi1Hej51vhbfrN/ouo22EuaQW05PNra7lhMYlCjpzw39u9Uc OHU9MREkvk55LuhtHClMe1wQek+cghzjOpCDhGKVI35GFVEgv8kZCojlKbUaOraV /JfCjqP/7wKGwS8yXJvNeVPPW9vseQCee8bmj2IRypB9n4VwS0qnIEV/55KEb/w7 1m1Lw== 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=qTyPOB6/JCuV8H0i7T/vt3Q+c0qhmHM44onBr0QTn pc=; b=JylQoiZ0EljvCYZBODZXGaLz7DautnrPfIm0C/awG7zAkPgI7qQVjLqV1 dFLNBqHUJEmHrEnQu0cd1qUaqWY+0XjuY1QTeJoTW15qRRUyYJKuNxZ14ZTbgken it08RGgZPuiVW9TYpHv6Mu6q06FjVu/w/xlRsyMXqtzrRNn0P+Kbjjy30lXSwcxL /rF5LrAuC44Ei4GsQJzc/4cFktFl81Ls7qLui2YkgPDsI8fKwYX45C0BR0NN3PFa vMDNhRuTTsfpFB4Obb4u2gam2CiCfgnRZCD840Y9M9AWLGRh1uHQp5pwUMLaZtvk EvpT+HBHURRY1++f5HimT5DmJSIOw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudeiiedgheelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtke ertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuffhomhgrihhnpehpohhsthhgrhgvsh hqlhdrohhrghenucfkphepudejgedrvddurdeikedrvdegfeenucfrrghrrghmpehmrghi lhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhenucevlh hushhtvghrufhiiigvpedt X-ME-Proxy: Received: from [192.168.1.2] (174-21-68-243.tukw.qwest.net [174.21.68.243]) by mail.messagingengine.com (Postfix) with ESMTPA id 76A7480066; Wed, 27 Nov 2019 22:25:15 -0500 (EST) Subject: Re: ROLE VALID UNTIL timezone? To: Ron , "pgsql-general@postgresql.org" References: <4375fad2-334f-3d9a-6b2c-ba0e4f337601@aklaver.com> From: Adrian Klaver Message-ID: Date: Wed, 27 Nov 2019 19:25:14 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <4375fad2-334f-3d9a-6b2c-ba0e4f337601@aklaver.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 11/27/19 2:25 PM, Adrian Klaver wrote: > 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. Decided to see if guess was correct: https://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=src/backend/commands/user.c;h=aab5aa855d2851222dc7738c7575ad805f6bce94;hb=HEAD Line 94 Datum validUntil_datum; /* same, as timestamptz Datum */ -- Adrian Klaver adrian.klaver@aklaver.com