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

From: Damien Clochard <damien(at)dalibo(dot)info>
To: Greg Sabino Mullane <htamfids(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: [PATCH] Generate random dates/times in a specified range
Date: 2025-07-24 15:20:12
Message-ID: ede3dd147d01ae9c47219e7ec5522115@dalibo.info
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Le 21.07.2025 21:06, Greg Sabino Mullane a écrit :
> Damien, maybe we can let the time ones go? Tom and I are not big fans
> of those, and nobody else has stepped up to defend them.
>

Sure !

Here's a second version with the following changes

- remove time and timetz variants
- disallow infinity boundaries
- remove unnecessary int32 cast
- add examples in the documentation
- run pgindent
- update tests
- fix typos

Thanks for the feedback and insights

--
Damien Clochard

Attachment Content-Type Size
v2-0001-Generate-random-dates-times-in-a-specified-range.patch text/x-diff 14.0 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message vignesh C 2025-07-24 15:31:50 Re: Logical Replication of sequences
Previous Message Tom Lane 2025-07-24 15:05:10 Re: track generic and custom plans in pg_stat_statements