Re: [PATCH] Generate random dates/times in a specified range
Dean Rasheed <dean.a.rasheed@gmail.com>
From: Dean Rasheed <dean.a.rasheed@gmail.com>
To: Damien Clochard <damien@dalibo.info>
Cc: Vik Fearing <vik@postgresfriends.org>,
Greg Sabino Mullane <htamfids@gmail.com>, Tom Lane <tgl@sss.pgh.pa.us>, pgsql-hackers@lists.postgresql.org
Date: 2025-08-27T11:35:26Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
doc: Improve description of new random(min, max) functions.
- 9c24111c4dad 19 (unreleased) landed
-
Add date and timestamp variants of random(min, max).
- faf071b55383 19 (unreleased) landed
On Mon, 25 Aug 2025 at 12:42, Damien Clochard <damien@dalibo.info> wrote: > > Note that former random function variants are documented in > func/func-math.sgml but it felt more logical to document the new > variants in func-datetime.sgml. As a result the random variants would be > documented in 2 separate sections of chapter 9. Note the paragraph below the table listing the current random functions, explaining the PRNG and the interaction with setseed(). If you document the new functions in a separate section, that text would need updating to refer to 2 separate locations (and possibly more in the future), which seems a little messy. So I think it would be better to keep documenting all the random functions together in the same table. Regards, Dean