Re: Is there a way to change current time?

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: "Warstone(at)list(dot)ru" <warstone(at)list(dot)ru>
Cc: "pgsql-performance(at)lists(dot)postgresql(dot)org" <pgsql-performance(at)lists(dot)postgresql(dot)org>
Subject: Re: Is there a way to change current time?
Date: 2021-04-15 13:58:23
Message-ID: 20210415135823.GA17119@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Thu, Apr 15, 2021 at 04:45:44PM +0300, Warstone(at)list(dot)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(at)momjian(dot)us> https://momjian.us
EDB https://enterprisedb.com

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

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Justin Pryzby 2021-04-15 14:01:56 Re: Is there a way to change current time?
Previous Message Warstone 2021-04-15 13:45:44 Is there a way to change current time?