Re: Is there a way to change current time? - Mailing list pgsql-performance

From Bruce Momjian
Subject Re: Is there a way to change current time?
Date
Msg-id 20210415135823.GA17119@momjian.us
Whole thread Raw
In response to Is there a way to change current time?  (Warstone@list.ru <warstone@list.ru>)
Responses Re: Is there a way to change current time?  (Justin Pryzby <pryzby@telsasoft.com>)
Re: Is there a way to change current time?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-performance
On Thu, Apr 15, 2021 at 04:45:44PM +0300, Warstone@list.ru wrote:
> Hi,
>  
> Is there any way to set time that CURRENT_TIMESTAMP and/or now() will give next
> time? (We need it only for testing purposes so if there is any hack, cheat,
> etc. It will be fine)

No, it gets the time from the operating system.

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EDB                                      https://enterprisedb.com

  If only the physical world exists, free will is an illusion.




pgsql-performance by date:

Previous
From: Warstone@list.ru
Date:
Subject: Is there a way to change current time?
Next
From: Justin Pryzby
Date:
Subject: Re: Is there a way to change current time?