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 1wGBis-005yOt-2E for pgsql-bugs@arkaria.postgresql.org; Fri, 24 Apr 2026 08:17:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wGBir-005Svw-35 for pgsql-bugs@arkaria.postgresql.org; Fri, 24 Apr 2026 08:17:13 +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.96) (envelope-from ) id 1wGBir-005SvO-2J for pgsql-bugs@lists.postgresql.org; Fri, 24 Apr 2026 08:17:13 +0000 Received: from mail-yw1-x1133.google.com ([2607:f8b0:4864:20::1133]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wGBil-00000002Y0U-1gqw for pgsql-bugs@lists.postgresql.org; Fri, 24 Apr 2026 08:17:12 +0000 Received: by mail-yw1-x1133.google.com with SMTP id 00721157ae682-7986e538decso77528267b3.1 for ; Fri, 24 Apr 2026 01:17:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1777018627; cv=none; d=google.com; s=arc-20240605; b=JnTcSO6O3nRC44Q891br/iSI4fJPqpXAjK8yEnLFOS5wh1V5W/AJlUvNiUq4tWgsF4 CjU/HD85NTt6X1Ubl698zb7IHGk3rd13jnd3dtP08Ikn41xGbK2RPtGRK3xpXCSOdcWV RqR/n550RrcKs7CHSwB5jQ4jhS0ufxFtefl01f9tkSKvRWCb0EbRH8D0Uz7UuPhlMxdt kfUFC3kFxbOYa8FMfoHyprzCxT9eeyS7f9dZbV3I84oy4YPeGQufFX0QpdhPqfzTIcP0 dc/QerAe1VkvZf8a2apjJm6KuxCCqABEsz2bVuRji9I62+eZsviqhMOXOeyagoE9VGMd PoUw== 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=Wwhc+eGZIB8/V0nejdFCi3+X2lnEY9XiHMADLqvhGhM=; fh=Vcy6OLyuu/fRLsaAlk6F+MS95drOA67lhZkqsgtL8p8=; b=eODtnlwAYv+v6r1VZgzRVtUJv//2Ti5KnrqYvcRIHUDdxeHjiTh3Lji5/+7b2yh3e8 xrx5XmmAt/EvrtMm3subcRSYcYFKV9AQLGAoU+p2vYDDUiuSHQqwEGaJUzrWMP973vUA m4JqAEkYkrSeVxtt9dnZ+7RVsUckaefrBNCybR0eusmQxztrtBd3M1n8B9CfJ3dA5bOE yGjX10xENALla836F7rLy31dgF9WFddvQZVHwJDcSOXiVXp32n59nCULhK7uVQUdK+4i x+P1FjlQ0M57vXiqgv076bNR03bPUWyftbZcyyQfXDzrIf5qcCl4mabjWKi8PD2IaKbg NHKQ==; 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=1777018627; x=1777623427; 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=Wwhc+eGZIB8/V0nejdFCi3+X2lnEY9XiHMADLqvhGhM=; b=oU+5e0DkBb/rAfQ5l/7fSolBjzyiKeY9qjqzz+WYPcseLs0rnpd2kme9GIDnV/H2TH 7eBKxSRy4DpyZR2ipu26WlgcwJOpHyW3rw77PCEXz7nS0L/DC49JziLs7m2Qk4QjT5Qv 20omgd7LrveVZZGBAn/3QY42SKC8GTS0sk2UX9wcc97jWMB8PRFpYmjOFuXRzJpGP8wX wPDgJfTtwOIEy8jAhDyEwGUAYaRnFoNBnupwoNr43izOpjX04KU34AuvIgy9+ykAQxv9 5A0h1fZp1eqXPpV/l1B4X6tWV6OTnJP4CEspRSYOnm9ycxn3MPXRqQIwg0p3WWyMcyBA +uDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777018627; x=1777623427; 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=Wwhc+eGZIB8/V0nejdFCi3+X2lnEY9XiHMADLqvhGhM=; b=Yeet2uL9Ae10VOb5UplRroRM7/Rm5s3Mh6wE3HSs3Ndni4mEXFqafYzs6qlU2tBoaC l2fIJnv2/ZeIymxEGCc602nRv4ozT5OYTVeaBddN9bovvw8Ljqn3KICPUTAevs+CMr7Z MOhr1AUwbXTLWOMM+2TWM7YqueQ1bM38hUHCWRlOcnOHWq6YP9KTcQ3lSUPGuvl3FQNO XLLh+ENYN0x3H/XW8HhLFOtKkxZEBsRbTTN4OEKJgOLVbHoSwAxHcA67QWALDoHv+2e/ 4eGFz4LzHH+JCbJ2hfQywLbXTaBiLZnoAK+YUIt7V+eXvmNvjShQbSnXoPcVw4Fv8Cz0 AC1A== X-Forwarded-Encrypted: i=1; AFNElJ8wzv0PF4Mlic4d1i28hFgF91VXQRcBvEXWnegRhWUa54hCue3gaGtKhOQv4vxxBQaoQr+aE5ndoBU1@lists.postgresql.org X-Gm-Message-State: AOJu0Yxi8S1AibW+Y7CN/VQfahmhibjqoEltle0o/FeOyxVT4e8bpQeR 6hdhiY18nvefLBQlwEhQI8Ex7dncvZiJrPi6e7hL/WbnyI3kVag7gfn/qYSPePSY2Tdbl58/95d r1UW/zUpPpZXj2Y7D3sP1LapaJHdwt6M= X-Gm-Gg: AeBDieu00AkqWpSDMpwWHlSjeVfgBQxh/i6LThQYaBKef7CRKEFDm2PD0JtPVvj8Ami RWLe0ojZYxG4sxEuolGkjMa+kNjp14OgpbRX3YJ3NjL+bbC/CJdza9FKPQe3shpMvPJjiAy3ylb jcfbatTgF4PiSozahqH+uyEFDsGaHLlz4Y60eXHmnftKOQRo5UFxe0h97g56ecAq65N7RcVQncy KtQV7iP1Oij/jNVv0CcyzDq+2K0r0HuFps9tGLmEMYPor91BesSwvwKoM1ZW/mjgzH5GcKsMyB6 6ppBXdr56nyqwg8Nvg== X-Received: by 2002:a05:690c:c511:b0:7b8:7e2d:7d89 with SMTP id 00721157ae682-7b9ecfb52c7mr316038497b3.35.1777018626718; Fri, 24 Apr 2026 01:17:06 -0700 (PDT) MIME-Version: 1.0 References: <1444609.1776958814@sss.pgh.pa.us> In-Reply-To: From: Ayush Tiwari Date: Fri, 24 Apr 2026 13:46:56 +0530 X-Gm-Features: AQROBzDTlY7dMPmGiFGff2A7cRmLnCbcBTEJ5LkfkvDInrT_J9LnNQkuVBNbt7g Message-ID: Subject: Re: to_date()/to_timestamp() silently accept month=0 and day=0 To: Daniel Gustafsson Cc: Michael Paquier , Tom Lane , pgsql-bugs@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000013f550650306446" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000013f550650306446 Content-Type: text/plain; charset="UTF-8" Hi, On Fri, 24 Apr 2026 at 13:42, Daniel Gustafsson wrote: > > On 24 Apr 2026, at 00:14, Michael Paquier wrote: > > > > On Thu, Apr 23, 2026 at 10:06:41PM +0530, Ayush Tiwari wrote: > >> If we are not going to change the behaviour, imo, we should > >> atleast add a test case to depict this scenario and comment > >> that says this is expected behaviour according to the community. > > > > Yes, we could close the gap with some tests, at least. > > +1. Do you want to work on this Ayush? > Yes, I'll send a patch with test case today. Regards, Ayush --000000000000013f550650306446 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

On Fri, 24 Apr 2026 at 13:42= , Daniel Gustafsson <daniel@yesql.se<= /a>> wrote:
&= gt; On 24 Apr 2026, at 00:14, Michael Paquier <michael@paquier.xyz> wrote:
>
> On Thu, Apr 23, 2026 at 10:06:41PM +0530, Ayush Tiwari wrote:
>> If we are not going to change the behaviour, imo, we should
>> atleast add a test case to depict this scenario and comment
>> that says this is expected behaviour according to the community. >
> Yes, we could close the gap with some tests, at least.

+1. Do you want to work on this Ayush?

= Yes, I'll send a patch with test case today.

Regards,
Ayush= =C2=A0
--000000000000013f550650306446--