Re: [PATCH] Generate random dates/times in a specified range

From: Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com>
To: Marcos Pegoraro <marcos(at)f10(dot)com(dot)br>
Cc: Damien Clochard <damien(at)dalibo(dot)info>, Greg Sabino Mullane <htamfids(at)gmail(dot)com>, Vik Fearing <vik(at)postgresfriends(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: [PATCH] Generate random dates/times in a specified range
Date: 2025-09-10 16:59:08
Message-ID: CAEZATCX9iU1nxPsgYFQahiDJccY85iWOessgV=3Czo0iCMw=wQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, 10 Sept 2025 at 14:30, Marcos Pegoraro <marcos(at)f10(dot)com(dot)br> wrote:
>
> This patch adds functions func-datetime.sgml but those functions depend on setseed function, which is not there.
> Wouldn't it be good to add a note that setseed() will change the result of those random functions ?

Agreed. I think something like the attached ought to be sufficient.

Regards,
Dean

Attachment Content-Type Size
random-date-timestamp-docs.diff text/x-patch 1.3 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2025-09-10 17:28:49 Re: plan shape work
Previous Message Jeff Davis 2025-09-10 16:58:08 Re: Incorrect logic in XLogNeedsFlush()