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.96) (envelope-from ) id 1wISA6-00873W-1P for pgsql-bugs@arkaria.postgresql.org; Thu, 30 Apr 2026 14:14:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wISA5-007nae-1p for pgsql-bugs@arkaria.postgresql.org; Thu, 30 Apr 2026 14:14:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wISA5-007naW-0y for pgsql-bugs@lists.postgresql.org; Thu, 30 Apr 2026 14:14:41 +0000 Received: from mail-yw1-x1134.google.com ([2607:f8b0:4864:20::1134]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wISA3-000000040kv-1RQL for pgsql-bugs@lists.postgresql.org; Thu, 30 Apr 2026 14:14:41 +0000 Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-7991db3dc98so11024347b3.0 for ; Thu, 30 Apr 2026 07:14:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1777558478; cv=none; d=google.com; s=arc-20240605; b=PXHYkliV3F2nT3LliwYe8ZPLyM+YtV3O3ZcvrN+7f27wc0nmnMljY4qC+9CeHTMokc CZo7s7CWY+Ac784XpAy2/Qv2xOc7j5YbaV1+8NT+gpwYCkYs+95gNg8fmmNiE3kebTWB jB2IMHnqvNi42G2t8vNkbqqYHZSoZ99T5FU3dLxQwJ5vfqq6E0ngSvT9DRezvYEPoqcB Piw0RBnws1EyIkbuqgtiVfKMOreHmbW1GZh9bZA6JGW99arnytTQByfNOJDw6D8tjonL YX8ZGer03ZKcFs4TI22frvxMn4/LYOqdneCAAS8ro1qHOiQM40mez0H6CXFrzHv3Kk6S 252w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=vH7US5WJjOw600oH3aQppqMrjAZA/uEEIGtsU3a7Mwk=; fh=6oCwfOee6bem02UR+VLf0y0NTXWWVp10lrYqrCpx7UM=; b=JDpqDtaktmCKmyf7deBkR8VRjsAbJ33BWsHNFRAfSULTOeAo1Bh8pyuwMa+eojqCcm fFEo+WKf9FrpLqF6MtatXgpJDB10k0V/MmFPsCmHsooP77EzIQjbw44XsUKmmhqK3I0L 8KwcNeN2FpRbtUzGYgAFKFefm1kH0tEplnZm2O6XPRMzAsab3Bo9H2U63lFdZSd6g2Tu WpU2iExgyqGuhBBROHbYCjzRLjZIa7vbWAxq4SwCGH5qAv3QzGzkSKLZ8d676bh6Ks/Z w8k43M5P7mpy+pl3jc4xd7hOE4wFRy5yyLj+G0tjqfrz5mDPl7cHHSSgdq51gN87XpDq hxZg==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777558478; x=1778163278; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=vH7US5WJjOw600oH3aQppqMrjAZA/uEEIGtsU3a7Mwk=; b=IgMMwSZuqO/oYvGfYERzrjt8aWQnC9aHR/GWwItecDjirTzEvpKsD4VXOG3Xq0+B7D Vl5TfR0JZ9qmKtWp5vCSLYcHwdBbBkw7xH2YVD0F6EwFfdcvCJTOJtd9hJrpkQMuo0DQ x1t/kyDdKGwm/rgch9zsQyfFimKlvpIY9ATzm/K5f1s6nooFkFpD+RKKdP0JLC94+dXU oLzk6GPyyaIeVAFS21cdib9oXO8R8gbjPMEJN3nymu/fZoLwBUNGGz2ntOs4GmISfSlo z0TaqRwA8mUcR4D+7s4EdAVNe8oYHWZA6fA/iMgOuKeYa4PsSm7tUyNc0yk0B9DTgtgv x8Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777558478; x=1778163278; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=vH7US5WJjOw600oH3aQppqMrjAZA/uEEIGtsU3a7Mwk=; b=CnWzicFALOBHiJqTw8SOrV0BfpWWp7sfc9wlod5uSfuaEKRkYVGu8vKrJeFHlrDnNZ yfZPxqEeZJPODczl46xdJgxdk29M4bYtczPoh9yHRqIdSumG11HaQEZUqGSSuylMkrEE W+abcvJE1QydAIq5LW4wp8BYjRjN7DGCce7mDyrP195taaatC42BJaNWBgbPjO/ZGbS7 1cokCHI5mjLNi58wT+yJQJyazaeM44Ep7mv3pKeTQBU1MGsuf3YGelysT59JvDm2Nn1Z c6fJe1Wf8Rki6UrdUAQoHRUuSz0tPdjK6lIyyGS6bwQSH8KXRPMgFwfGbRf+1LYe4dje dg5Q== X-Forwarded-Encrypted: i=1; AFNElJ/saxjqOMBedB1FaouYrZDAcPhAS82zJ1nPf3rdRccdbQ9ml/Ua3DkI3/MSLyvgTK3LuwQwwHwmjZIl@lists.postgresql.org X-Gm-Message-State: AOJu0Ywi464D3NXX9yq6sD/FTazDk8Uh4rU8gQ1vuh1lkIGaLWwO5KDz mOnYsh29sA3tOAiiPqimHLH0UOzAP/RNTPqZWu103bM80/cwxUpUlM2+7QiLU3/GuQ3U2UX6Ud8 iAzsPXqt2H+xNo4rDZFeDDgc6LwDsaX8= X-Gm-Gg: AeBDievqvZmT8qNnR00Q9QUWDx8qeghhzfw9dzn27M1G3/jedCqk4Y37RVASGiHIfQF kwkSO7ljVtjSu6UuxbemqlkgGV30FfnJRKqZr2itVpjs4df9DlEn7c/favQjo1ep8HXI/iI5l6P XR1dE/9gN+RRust4QRJUrJq3SLcOyc5HBiDNxaJkZKXCIp58thsWtq0XQZnNME8KpuTOww/4RYP ugNLjYr8pt/mN+zqh1G3bO8oYuTzgweJh29bgsQSTD3pTKFgLObBIw5KkbfS37bpmlPIH6Nt/ym M3z0qpN14MzV1JIpAGp0A11WqnEVtMTe3CTWQOGKbgHVSTBOFg== X-Received: by 2002:a05:690c:8:b0:79a:60f6:c5ed with SMTP id 00721157ae682-7bd52809836mr32429687b3.6.1777558477700; Thu, 30 Apr 2026 07:14:37 -0700 (PDT) MIME-Version: 1.0 References: <1444609.1776958814@sss.pgh.pa.us> In-Reply-To: From: Ayush Tiwari Date: Thu, 30 Apr 2026 19:44:24 +0530 X-Gm-Features: AVHnY4Jr6M28pWRR28zsquhy_8KvIrmFK067EUd8kH9jkHJd6b-O7SzefstcihM Message-ID: Subject: Re: to_date()/to_timestamp() silently accept month=0 and day=0 To: Michael Paquier Cc: Peter Eisentraut , Tom Lane , Daniel Gustafsson , pgsql-bugs@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000a188ea0650ae15fb" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000a188ea0650ae15fb Content-Type: text/plain; charset="UTF-8" Hi, On Mon, 27 Apr 2026 at 04:13, Michael Paquier wrote: > On Fri, Apr 24, 2026 at 05:41:50PM +0200, Peter Eisentraut wrote: > > Complaints from whom? Oracle rejects these, and PostgreSQL generally > also > > rejects these dates/times in other contexts. I think this should be > > rejected. > > From folks who hypothetically rely on the existing zeroed inputs. :) > Perhaps it's a far-fetched argument, and just to be clear I would not > really object to a change of behavior on HEAD for v20, just to see > where it goes in 2027. > I'll add this to the commitfest, so that we can circle back on this once v20 development starts. I think parallely we can commit Daniel's v2 patch, since that correctly documents what Postgres has right now, and we'll know what exactly to change if we decide to go the other way. Regards, Ayush --000000000000a188ea0650ae15fb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,


O= n Mon, 27 Apr 2026 at 04:13, Michael Paquier <michael@paquier.xyz> wrote:
On Fri, Apr 24, 2026 at 05:41:50PM +0200, = Peter Eisentraut wrote:
> Complaints from whom?=C2=A0 Oracle rejects these, and PostgreSQL gener= ally also
> rejects these dates/times in other contexts.=C2=A0 I think this should= be
> rejected.

From folks who hypothetically rely on the existing zeroed inputs.=C2=A0 :)<= br> Perhaps it's a far-fetched argument, and just to be clear I would not really object to a change of behavior on HEAD for v20, just to see
where it goes in 2027.

I'll add thi= s to the commitfest, so that we can circle back on this
once v20 = development starts.

I think parallely we can commi= t Daniel's v2 patch, since
that correctly=C2=A0documents what= Postgres has right now, and we'll
know what exactly to chang= e if we decide to go the other way.

Regards,
Ayush=C2= =A0
--000000000000a188ea0650ae15fb--