Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tLcsJ-00Fxsy-8T for pgsql-bugs@arkaria.postgresql.org; Thu, 12 Dec 2024 06:40:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tLcsF-0084Ff-Og for pgsql-bugs@arkaria.postgresql.org; Thu, 12 Dec 2024 06:40:36 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tLcsF-0084F2-Fk for pgsql-bugs@lists.postgresql.org; Thu, 12 Dec 2024 06:40:36 +0000 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tLcsE-002OlB-7O for pgsql-bugs@lists.postgresql.org; Thu, 12 Dec 2024 06:40:35 +0000 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-43624b2d453so2156085e9.2 for ; Wed, 11 Dec 2024 22:40:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1733985633; x=1734590433; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=Y3JS5af+sJRnWZi4CV/Bd9yxd/4TAEMkNiKr5sy7fAk=; b=d/oZFDHbKIO7e80tMOW6CQBgfYeihznxva4sI6paaBCpkSy+4Nd/IQQihtkuj/me5U 74Q+e0hQRVR6FIhR9OcLf+bBMoPjAFe0rCCHffj/gF0MsnM17+lcct8Y+A6ervlISLvW /0WIHsXiM8MtgjRx3KnjxNqUuXvRgXcc+gyL32Jm94bCOTWXf6BcrFR+RXbFSRTG/pTw CKmc176ccl9PvM2fBbU99T2tiWX6Q6JNNk/oeTeRHNrcd6HJJdpcHAL5DoSvu1Vg2fIQ C+d4rDJiA3rYmogXwNovo0EE5MRtYlHZDthkXLGv+6Mew4YW7xAQ8Pg73PnRQBZ7vZEA +w7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733985633; x=1734590433; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Y3JS5af+sJRnWZi4CV/Bd9yxd/4TAEMkNiKr5sy7fAk=; b=Wo02eleqoZ5AEU5IVoiNAfA6b+3mn76EESYWRMidm2cK9J6vOA2vYlCFpZriH/nVTX g2i0QTUBR3E5r69fAvqGF0d6ym8QEjeaqYmKm70CngPBi0tUX06AkaiMu3D0wyZsEYYQ WkgiByYbD7kcs0tHFXYtqiiveb8315LOxA5nwfxDXcT0zydm14J2156SAaUyBQsSXldk AohaRwvzXG/xRGCzS26a3Qb4VNCl6Q4YvxTOmrhl4IawIRd6cX+l0zYzzvOWh+XmufyS /Mzl6e12VWmFjCLGLzCuRxLf3XMSZQaHK0XFFNSzlftQwJ27ZyZfy3/odsgHRIkLSf1F otpA== X-Forwarded-Encrypted: i=1; AJvYcCU29wxPnzkVSxZkvjyEP8Nj7bB01VJCxWkwmEVu1sLg0Rv9JoY3KHtuLxWjE77pnaXgxT6rZ7aEuQtx@lists.postgresql.org X-Gm-Message-State: AOJu0Yxz+qlGgtki0yFcgWRSJn44MJHe3kz1rIqJDEYglVO1DP1oVtjs r5GeIQ08p4zw0Z3t7VYabiGT13I08v1368kR0JCBxvCm6OGBmCMhp83moghTKMStFENg33lX5mV / X-Gm-Gg: ASbGncveS47dAqO+oaxEzy4fBxk45fa/Xts2kdvgyMlEukJUfHrelrSkJfvQavleEma KsEtjt0krKqLFFTZP4ycDpS591YB94hjx+bRM2PZI8udjx/UMKEmxsSXrtNd06ssSG+PxLoxcf/ TNmLt2Z6ZIqY7CrqJNqZGWZ/cKxZh9YvocqbUsyVo0W//ul2/l+HvCkv6KNFJ1d+qyg2TKxyJtP X12R5DJt+U8dDgsFinryRsezqW/CTszFBCUKvpiwwYqNYJUR/tC92LxnkBs9jH5ImZiuLIM56I= X-Google-Smtp-Source: AGHT+IEvVG97GAEggtUcZbjyKnI2USCiBm2GruYWNtskIojzeO/mFdUH7m/dut2SYYXJCm715W2fdQ== X-Received: by 2002:a05:600c:1c01:b0:434:f0df:9fd with SMTP id 5b1f17b1804b1-4361c393cb6mr50810215e9.2.1733985632840; Wed, 11 Dec 2024 22:40:32 -0800 (PST) Received: from localhost.localdomain ([2001:871:260:168:2a46:3a5f:edaa:a7f]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-436256b4556sm6675025e9.33.2024.12.11.22.40.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Dec 2024 22:40:32 -0800 (PST) Message-ID: <2119430fb8604d819f55d6b65eeebf257e5d90a9.camel@cybertec.at> Subject: Re: TimestampTz->Text->TimestampTz casting fails with DateStyle 'Postgres' From: Laurenz Albe To: Tom Lane , Aleksander Alekseev Cc: Michael Paquier , pgsql-bugs@lists.postgresql.org Date: Thu, 12 Dec 2024 07:40:31 +0100 In-Reply-To: <536069.1733956838@sss.pgh.pa.us> References: <3416600.1730987836@sss.pgh.pa.us> <4167039.1733796752@sss.pgh.pa.us> <394372.1733884998@sss.pgh.pa.us> <521765.1733949428@sss.pgh.pa.us> <536069.1733956838@sss.pgh.pa.us> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.54.2 (3.54.2-1.fc41) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 2024-12-11 at 17:40 -0500, Tom Lane wrote: > So it feels like we'd better do something about this, if we > don't want to deprecate the Postgres datestyle entirely. 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. Yours, Laurenz Albe