Re: Is there a way to change current time?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Is there a way to change current time?
Дата
Msg-id 3778411.1618496013@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Is there a way to change current time?  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-performance
Bruce Momjian <bruce@momjian.us> writes:
> On Thu, Apr 15, 2021 at 04:45:44PM +0300, Warstone@list.ru wrote:
>> 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.

I think there are OS-level solutions for this on some operating systems.
If nothing else, you could manually set the system clock; but what you'd
really want is for the phony time to be visible to just some processes.

            regards, tom lane



В списке pgsql-performance по дате отправления:

Предыдущее
От: Justin Pryzby
Дата:
Сообщение: Re: Is there a way to change current time?
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: Is there a way to change current time?