pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: ROLE VALID UNTIL timezone?
Date: Wed, 27 Nov 2019 19:25:14 -0800
Message-ID: <ba37c697-bf91-9cd6-d461-9079dab35daf@aklaver.com> (raw)
In-Reply-To: <4375fad2-334f-3d9a-6b2c-ba0e4f337601@aklaver.com>
References: <b5127b1b-1643-b298-ba0e-4b8f16c65789@gmail.com>
	<4375fad2-334f-3d9a-6b2c-ba0e4f337601@aklaver.com>

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=aab5aa855...

Line 94

Datum       validUntil_datum;   /* same, as timestamptz Datum */


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (3+ messages)

Message-ID: <ba37c697-bf91-9cd6-d461-9079dab35daf@aklaver.com>
Permalink:  ../ba37c697-bf91-9cd6-d461-9079dab35daf@aklaver.com/
Also on:    postgresql.org/message-id/ba37c697-bf91-9cd6-d461-9079dab35daf@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, ronljohnsonjr@gmail.com
  Subject: Re: ROLE VALID UNTIL timezone?
  In-Reply-To: <ba37c697-bf91-9cd6-d461-9079dab35daf@aklaver.com>
  References: <b5127b1b-1643-b298-ba0e-4b8f16c65789@gmail.com> <4375fad2-334f-3d9a-6b2c-ba0e4f337601@aklaver.com> <ba37c697-bf91-9cd6-d461-9079dab35daf@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox