diff options
author | Dean Rasheed <dean.a.rasheed@gmail.com> | 2025-09-09 10:39:30 +0100 |
---|---|---|
committer | Dean Rasheed <dean.a.rasheed@gmail.com> | 2025-09-09 10:39:30 +0100 |
commit | faf071b553830d39fc583beabcaf56ed65259acc (patch) | |
tree | 5ebd4632f87ab9df03cf59492825d4fda9198be6 /src/backend/executor/nodeWorktablescan.c | |
parent | 5ac3c1ac22cb325844d0bee37f79f2c11931b32e (diff) |
Add date and timestamp variants of random(min, max).
This adds 3 new variants of the random() function:
random(min date, max date) returns date
random(min timestamp, max timestamp) returns timestamp
random(min timestamptz, max timestamptz) returns timestamptz
Each returns a random value x in the range min <= x <= max.
Author: Damien Clochard <damien@dalibo.info>
Reviewed-by: Greg Sabino Mullane <htamfids@gmail.com>
Reviewed-by: Dean Rasheed <dean.a.rasheed@gmail.com>
Reviewed-by: Vik Fearing <vik@postgresfriends.org>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://postgr.es/m/f524d8cab5914613d9e624d9ce177d3d@dalibo.info
Diffstat (limited to 'src/backend/executor/nodeWorktablescan.c')
0 files changed, 0 insertions, 0 deletions