Freezing localtimestamp and other time function on some value - Mailing list pgsql-general

Hello!
Is there any method to freeze localtimestamp and other time function value.
Say after freezing on some value sequential calls to these functions
give you the same value over and over again.
This  is useful primarily for testing.

In oracle there is alter system set fixed_date command. Have Postgres
this functionality?

--
Alex Ignatov
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company



pgsql-general by date:

Previous
From: Alexander Pyhalov
Date:
Subject: pgpool-II: cannot use serializable mode in a hot standby
Next
From: Petr Korobeinikov
Date:
Subject: Re: Freezing localtimestamp and other time function on some value