From: | David Rowley <dgrowleyml(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Peter Eisentraut <peter(at)eisentraut(dot)org>, "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, James Coleman <jtc331(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Should we document how column DEFAULT expressions work? |
Date: | 2024-07-02 01:48:28 |
Message-ID: | CAApHDvqxraGnZGy2Aa+r2X7-BgrdkcmUFs=9UOfQoR2B+i2WaA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, 2 Jul 2024 at 02:43, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> I'd be more excited about this discussion if I didn't think that
> the chances of removing 'now'::timestamp are exactly zero. You
> can't just delete useful decades-old features, whether there's
> a better way or not.
Do you have any thoughts on rejecting trailing punctuation with the
timestamp special values?
For me, I've mixed feelings about it. I think it would be good to
break things for people who are doing this and getting the wrong
behaviour who haven't noticed yet, however, there could be a series of
people doing this and have these embedded in statements that are
parsed directly before execution, and they just happen to get the
right behaviour. It might be better not to upset the latter set of
people needlessly. Perhaps the former set of people don't exist since
the behaviour is quite different and it seems quite obviously wrong.
David
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2024-07-02 03:23:34 | Re: Use pgstat_kind_infos to read fixed shared stats structs |
Previous Message | Tom Lane | 2024-07-02 01:29:44 | Re: ALTER TABLE SET ACCESS METHOD on partitioned tables |