pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: Aleksander Alekseev <aleksander@timescale.com>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: TimestampTz->Text->TimestampTz casting fails with DateStyle 'Postgres'
Date: Thu, 12 Dec 2024 18:36:39 -0500
Message-ID: <957591.1734046599@sss.pgh.pa.us> (raw)
In-Reply-To: <2119430fb8604d819f55d6b65eeebf257e5d90a9.camel@cybertec.at>
References: <CAJ7c6TOATjJqvhnYsui0=CO5XFMF4dvTGH+skzB--jNhqSQu5g@mail.gmail.com>
	<3416600.1730987836@sss.pgh.pa.us>
	<CAJ7c6TMzJDLutYt+pcm1Jt+sDSRHjvjezM9o8heEoo_LwgP75A@mail.gmail.com>
	<CAJ7c6TMpBUMLqep4ycxySN+SFsf-eG2v-nUaVSzu2jSd5eDMAA@mail.gmail.com>
	<Z1eKmoJHXVd8_oz1@paquier.xyz>
	<4167039.1733796752@sss.pgh.pa.us>
	<394372.1733884998@sss.pgh.pa.us>
	<521765.1733949428@sss.pgh.pa.us>
	<536069.1733956838@sss.pgh.pa.us>
	<2119430fb8604d819f55d6b65eeebf257e5d90a9.camel@cybertec.at>

Laurenz Albe <laurenz.albe@cybertec.at> writes:
> I agree that something should be done, but I'd have no problem
> with deprecating the Postgres datestyle.  People who depend on
> it can switch to using to_date() and to_timestamp(), which
> shouldn't impose too much hardship if we give them enough time.

It's not like to_timestamp doesn't have the same problem...

Anyway, I've started a -hackers thread about this issue at [1].
Whatever we do probably deserves wider discussion than it will
get on pgsql-bugs.

			regards, tom lane

[1] https://www.postgresql.org/message-id/957280.1734046384%40sss.pgh.pa.us





view thread (12+ messages)  latest in thread

Message-ID: <957591.1734046599@sss.pgh.pa.us>
Permalink:  ../957591.1734046599@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/957591.1734046599@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, laurenz.albe@cybertec.at, aleksander@timescale.com, michael@paquier.xyz, pgsql-bugs@lists.postgresql.org
  Subject: Re: TimestampTz->Text->TimestampTz casting fails with DateStyle 'Postgres'
  In-Reply-To: <957591.1734046599@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox