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 1wbWzB-002dkP-0y for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Jun 2026 05:14:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wbWz8-004V2b-1B for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Jun 2026 05:14:14 +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 1wbWz8-004V2S-09 for pgsql-hackers@lists.postgresql.org; Mon, 22 Jun 2026 05:14:14 +0000 Received: from mail-qv1-xf32.google.com ([2607:f8b0:4864:20::f32]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wbWz6-00000001XQq-1qOh for pgsql-hackers@lists.postgresql.org; Mon, 22 Jun 2026 05:14:12 +0000 Received: by mail-qv1-xf32.google.com with SMTP id 6a1803df08f44-8de7bfa323bso19349716d6.1 for ; Sun, 21 Jun 2026 22:14:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1782105251; cv=none; d=google.com; s=arc-20240605; b=d1pmiVI6LzR5YdiZkqMA31Uzpm4WzwnRq8I7D1BrXgK27TxriwH5AYfj37OH7m2BBg IY8CdqL4bwhkQTYNEwipDXWuTcZmVkPKAElYRwuuy+5Sgu/hQxgt0LO4s+6OiCIaSqjV g4Ll5Qt8fTFYFQDKBt4FzSn3RxJFsSaEnEuDHTTW5CrERrwQrOhYLQ1MtLLwsOZXasCK KiMvKyfRI4zr+ninz6d8aKQjHNhz9XWq28LpW/J2SjJSI9bat1Pb62tVZtO+gXJOKEd8 nvr72AFtlObdXhN4smqp0fgSrmi2t2sFRwgc6Uu599BrjDD2IU9I50FrbJyfIVzH3tjj TpZw== 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=LAurCy/Qr9r02i4thiuaVu+h7XZ9H2raNRJdbIu/YpY=; fh=2ASvnDuYD7rZ9en3aLwn/+6bJhkdYBj7dMBOOhZNv24=; b=DxgQnVMjxCt7A9JuJmEme3HY9kxzoX4BUw2ibQjxz7BwR/hkpt1CyWsvi0Y+f+RYrS wc4Gy8/7TPruHodO2VDEZZQUPpMx9rZWJNKOw662iFw0l7D2C/dGefzXwLFfY68L1YLZ Nz+PHrc/k7lPqTX9iehX/fZEd08Xe0su5hIBB/oihnxyx9piUUaT5/sLKs2h32O044OZ jZ/4WomyIf4CmIVCWVlA+OsMp8RWyCfZgrx53P6zbodBZ2w4Gpr1P95miUsAI8vttC4t BrTXYB8QmwSHUZfkzkbIffq1778RzSkJ44BEKkgSq+WlHU4FvCOPaktl5P7heL20BGCj zyUQ==; 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=1782105251; x=1782710051; 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=LAurCy/Qr9r02i4thiuaVu+h7XZ9H2raNRJdbIu/YpY=; b=NMHW7qJVD/oHWSw1JnUT20xzYPxSXSXmpJPxS4fPrYC7qSaQIPYi7VFb8F6cP36zax MvgSobnv9mHydoxvDDGrvsin48Auuq/qu4LDwwHDdQUJq6P3C8vGpPG8jXfrr+CmOyHq /1m75cR8JCufdU1TQs6AF3oskPfyRebpWcrEqm+m9M+NsT4ebrvk74Z3N4LEuL/XssUg XqoOtOKb6kuGx9zxTpEPiy2S1By6w++7NYYsI2qkBkvQXR2/UUXuVyfZzNxmhdy8EbeS DblvYRR6pUvqGjT9GkZcOqiOjIEA3V5gjRg+arrMElJB7JmCclVuku6VmayKt3uYRDmU skng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782105251; x=1782710051; 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=LAurCy/Qr9r02i4thiuaVu+h7XZ9H2raNRJdbIu/YpY=; b=dzftNVEd2RFg+geIzEMNnH8M1TQ1s1LqpklcxaKof+Y85wiM2tVAf7Nbte4uh9KK4A Qh/N8TPLrsWrAT7ivl5a89hgM+iSuj6WyuiupoD0lnfwnfyBvNlWIV9GJ9Dh5We8g2sy vNeQr4e+7VPN9vut/hdJX7M7nSSEhGFkFDWXtmc+icc9edo828llONH2meQWEvmD2ngJ JXVkNhvuRUqcW2nzzzPvKJYjJPQFbGShK/8lTfYI8xKQnBQfKkv3LdJKLtBTwdynoVpv T+0Oj0ivXLKxT5XIuj5lYfcpwsz4W2oMCgkzt5YcJ60+jR9yFcLKW6QjHxJMIXAYKtaM tFCA== X-Forwarded-Encrypted: i=1; AHgh+Rrf2Vr+xsxgHHPgekXz9p/9J3QVbENHcyWC2byLh+tcoIDi1JzX0eAxy+DwMByqOOgn2UriwXuSebf4kVHp@lists.postgresql.org X-Gm-Message-State: AOJu0YxrlXM9lBwt8F4/k1PAP91ybhGwRBX2n+yyr5tTgmaELP3cjxyI o51XC9K6wUeMb0AEFk9ilDWzAR/0mfXZ6Gf99sCE1IV3ua1ugOYmWVPuwdqk2NVLBt3bE0RMZQi NAwFKLql4wHgfYx9qc9LqSAWy1r6gqN8= X-Gm-Gg: AfdE7cmIvlC1hijYjJUTR2tCw5EZzaIAAd+K998WpR6lWQRPdk6LeRZ5xQ/ftAErVWU 9K0BbIGRvdzMpak8P/CdoycRCmGuxJPh22lLXn/vEtpDhi4pfu26pOxrq4YVFMToluwiInndtVe E+8VJYEVqJAwZLgM9/Tl6BFi3k1MG4qwnUrSgDgU2XdC8NrwP0WXq+3Dfn08W2XiK4e8GcjEa4o rbzO5l22+Kt7nTzpgiftdZI1zrFcYIf4fmSGP3VbN2gepFgmX9OiG1lkTmsrXEGLPHQ3eKF X-Received: by 2002:a05:6214:2a4b:b0:8e1:2195:742a with SMTP id 6a1803df08f44-8e12195774dmr88465836d6.37.1782105251126; Sun, 21 Jun 2026 22:14:11 -0700 (PDT) MIME-Version: 1.0 References: <0238206d-81c9-4bce-acb4-127fbc4a96ac@dunslane.net> <202603301544.utwvuj534m36@alvherre.pgsql> In-Reply-To: <202603301544.utwvuj534m36@alvherre.pgsql> From: solai v Date: Mon, 22 Jun 2026 10:44:09 +0530 X-Gm-Features: AVVi8CdlD8ogzK_OCds7weij_e7ZYoyzEPd4fgGu12kHjkhTe9Eh2A_yTZFhrHE Message-ID: Subject: Re: [PATCH] Add support for INSERT ... SET syntax To: Suraj Kharage Cc: Andrew Dunstan , "David G. Johnston" , PostgreSQL Hackers , =?UTF-8?Q?=C3=81lvaro_Herrera?= , Ajay Pal Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi Suraj, I tested v3 of the patch on current master. The patch applied and built cleanly on my setup. Before applying it, statements using the proposed INSERT...SET syntax resulted in a syntax error near SET, which is expected since PostgreSQL does not currently support this syntax. After applying the patch, the same statements worked as expected and rows were inserted successfully. I went through the functionality added by the patch and tested a few different scenarios, including basic INSERT...SET usage, DEFAULT values, expressions/functions, RETURNING, ON CONFLICT DO UPDATE, multi-row inserts, different column sets in multi-row inserts, and subqueries in assignments. All of them behaved as expected in my testing. I also verified the query that Ajay previously reported as causing a backend crash: INSERT INTO emp_test SET (empno,ename)=(SELECT 1,'aa'); With v3, I was not able to reproduce the crash. The query returned a normal syntax error, and the server continued to run normally afterward. In addition, I ran the regression test suite and all tests passed successfully. Overall, the patch worked well in my testing and I did not notice any regressions. Regards, solai