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 1ueFLJ-006r6O-G9 for pgsql-hackers@arkaria.postgresql.org; Tue, 22 Jul 2025 15:55:50 +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 1ueFLI-009iWn-Dc for pgsql-hackers@arkaria.postgresql.org; Tue, 22 Jul 2025 15:55:48 +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 1ueFLI-009iWe-4G for pgsql-hackers@lists.postgresql.org; Tue, 22 Jul 2025 15:55:48 +0000 Received: from mail-il1-x12e.google.com ([2607:f8b0:4864:20::12e]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1ueFLG-000EFw-1y for pgsql-hackers@lists.postgresql.org; Tue, 22 Jul 2025 15:55:47 +0000 Received: by mail-il1-x12e.google.com with SMTP id e9e14a558f8ab-3e28cf0f464so30390735ab.1 for ; Tue, 22 Jul 2025 08:55:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1753199746; x=1753804546; 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=Lr5NkDzfBxiyhVlFGJn202K8/+QJ9pGIyYLPETAf9XM=; b=CLHmOMQPdq9sI/7D85Kpuqkjzs2wreaqjGlFpv2BElZKNv4cUpTY2qbhISapcI6TI+ iEFuY4sMTrGroMtqgJ0e1j6qv1GRWkummHqbHY7mU7yo/gKEZ/Ftan/XeugsyAEG8aKg Qpw1k47KsQeFLcqb7T0OVwf86ADmTSmP2e37b6JhNBnkatFq58oO+4GjpWZmMa/q5DFU WhbCA640Zk/N9zlOjDCa+7SK7fuSJgQQltiyaqmt4oalsNGS7BoGZsvSrU8ymHdfiROV cFXGpUdB7Cmsb0rO8lJjJc1SYbpS+tc3LX1H4ylmGLQouu2v1pirxQJPpufqSI/kYiET lq9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753199746; x=1753804546; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Lr5NkDzfBxiyhVlFGJn202K8/+QJ9pGIyYLPETAf9XM=; b=NRZWoLPoUHzjR4Xqw6atiIF1YGJbCft7Ya3Lf6N3bqTRasas4VQECRPWEFjY34xehF TDFoG8D8fk115U+JZqKWoFhMO882JSYnl0P8Ewq0vKl1nSIFK1AAx1l6/i1KJe39BtFM Cyi571SXFIqtzelyfO8/52MXXn6OTX1fNQLevqOs10j2w7E20qSyemcmSWKXnTXKrsJg TOhOI0d0bEjLHabr4gG2/RAoq6oHCXzpvDbW1uz9RRZwPeyP7FJjQYlDXDwhQs99UCfN +KyvfZMO+ajijz/tQwH6E7n3R3KFeRudeQFX+UAuS7cpJuZLbPatNnfWvItRDHdku9G/ mKSA== X-Forwarded-Encrypted: i=1; AJvYcCVN+c3BPotiyW6BpkuITion9+PxMYNayTsGdSprp6/f6x6y8W4dRYEdtAAkAUWoVg6UF5wOsZProBQgKPTZ@lists.postgresql.org X-Gm-Message-State: AOJu0Yw6EL+zuBxE0F0Ld1C6ofz96ywtZsMnZzJgJzY6hpQyQPZkdHIU tp7UVe8x2uIoiDsh66AyFkyvTKXZaWqi+v1gSYn/VZnu1hhuVe1CAOFd0wiMU8/GYck/yhLQRRb YNH896Y8U0gOsrH5G76AAh0UJ8v+bm/k= X-Gm-Gg: ASbGnctaL4Wp89qkwUFVT94UW2Fy7RbIbLIgWFv3/tk67Npv2iF37bE09DynB2uw8ou SsB6ooBLb2UI+K6wgYN3aAul5v7XT2eGiHZiyciTA/QJaWu3oudokl+G8K92Yeymaw1CMjlx5Gw 0JUi0nrXHEO2vEiqwX2/u8XgW4jclWGAKf/qRVZ+sAYSdsbPQNjcwTwAL08j5htcenffJmPyKNU JJvBl8= X-Google-Smtp-Source: AGHT+IEjzhYRe1mtll7dLQz+LEjgUF/zQIvAEG085oV/7YvKBqEiFj8L+DtES4hdYTjVernW5X7IP+O61rQq939XLCk= X-Received: by 2002:a05:6e02:3002:b0:3e2:aafc:a86 with SMTP id e9e14a558f8ab-3e2aafc1119mr188065845ab.20.1753199745728; Tue, 22 Jul 2025 08:55:45 -0700 (PDT) MIME-Version: 1.0 References: <04afcd1f-ed7d-4c0a-add1-50e3719ccbf9@postgresfriends.org> In-Reply-To: <04afcd1f-ed7d-4c0a-add1-50e3719ccbf9@postgresfriends.org> From: Corey Huinker Date: Tue, 22 Jul 2025 11:55:33 -0400 X-Gm-Features: Ac12FXxC9EZCunDbY_iejSOz8cUSomx63ob4YZhc8iluXV6x1xqHSU0QM9sGilo Message-ID: Subject: Re: CAST(... ON DEFAULT) - WIP build on top of Error-Safe User Functions To: Vik Fearing Cc: jian he , Isaac Morland , pgsql-hackers@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000108568063a86a0d3" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000108568063a86a0d3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Jul 22, 2025 at 2:45=E2=80=AFAM Vik Fearing wrote: > > On 22/07/2025 03:59, jian he wrote: > > Based on my reading of [4], it seems CAST(EXPRESSION AS TYPE DEFAULT > > def_expr ON ERROR) > > is not included in SQL:2023. > > > > [4] > https://peter.eisentraut.org/blog/2023/04/04/sql-2023-is-finished-here-is= -whats-new > > > It was accepted into the standard after 2023 was released. I am the > author of this change in the standard, so feel free to ask me anything > you're unsure about. > > That's excellent news. I was already planning on retrying this for v19, but I'll try sooner now. --000000000000108568063a86a0d3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable --000000000000108568063a86a0d3--