aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/misc.c
diff options
context:
space:
mode:
authorAlexander Korotkov <akorotkov@postgresql.org>2020-04-08 11:37:27 +0300
committerAlexander Korotkov <akorotkov@postgresql.org>2020-04-08 11:37:27 +0300
commit1aac32df89eb19949050f6f27c268122833ad036 (patch)
tree7f1b7d61e1bdb19a5f9437d5198b63e4be4e2ecb /src/backend/utils/adt/misc.c
parent02a2e8b442002a698336954633b0ccc4e30061e6 (diff)
downloadpostgresql-1aac32df89eb19949050f6f27c268122833ad036.tar.gz
postgresql-1aac32df89eb19949050f6f27c268122833ad036.zip
Revert 0f5ca02f53
0f5ca02f53 introduces 3 new keywords. It appears to be too much for relatively small feature. Given now we past feature freeze, it's already late for discussion of the new syntax. So, revert. Discussion: https://postgr.es/m/28209.1586294824%40sss.pgh.pa.us
Diffstat (limited to 'src/backend/utils/adt/misc.c')
-rw-r--r--src/backend/utils/adt/misc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backend/utils/adt/misc.c b/src/backend/utils/adt/misc.c
index 03f997cba70..ee340fb0f02 100644
--- a/src/backend/utils/adt/misc.c
+++ b/src/backend/utils/adt/misc.c
@@ -372,6 +372,8 @@ pg_sleep(PG_FUNCTION_ARGS)
* less than the specified time when WaitLatch is terminated early by a
* non-query-canceling signal such as SIGHUP.
*/
+#define GetNowFloat() ((float8) GetCurrentTimestamp() / 1000000.0)
+
endtime = GetNowFloat() + secs;
for (;;)