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 1wEjbT-004LPx-0D for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Apr 2026 08:03:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wEjbS-001PR8-0Z for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Apr 2026 08:03:34 +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 1wEjbR-001PR0-2S for pgsql-hackers@lists.postgresql.org; Mon, 20 Apr 2026 08:03:33 +0000 Received: from mail-vk1-xa34.google.com ([2607:f8b0:4864:20::a34]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wEjbP-00000001tMN-2pyP for pgsql-hackers@lists.postgresql.org; Mon, 20 Apr 2026 08:03:32 +0000 Received: by mail-vk1-xa34.google.com with SMTP id 71dfb90a1353d-56d9f191ae6so1823587e0c.3 for ; Mon, 20 Apr 2026 01:03:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1776672211; cv=none; d=google.com; s=arc-20240605; b=PRQEN1B3w5i+h0sJMBrwpz1wOacNrIV15KUOflzDXCKj7IbftYvRX357lFGtD69tk/ ERS+L21luulk/fdoSZlHIK1AEU7aFkySl4bm7CZH0O5eb6XbEOYynGWcULwFBg/HGMrO BMWRR/rOpAzefmD5pa+XHM9n64vS08Pld+/7XTUz2f7Wek8Ms7NB6+ABj5DEt40EK1nZ 7CJ4Tb/xL/PbYeez6Kw5fh7S1xx8KVsYbYas9ILw3GhajMuYpdOZlankHe6ktfMv8iV6 It+2BAr2Ti7Z0YhRhkGZ9K7cvo/huNLxleLOyKHaH9myC7sXFVf1AFUh1aIwjvu8Wj1k XYgA== 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=4fAL4neDkUqJrzgroI36Vc3/LD82OT9PbKNRTVIWx0I=; fh=3tYH/hSrrcFXDNFZxQ87rOAxyC9W9gdzqfcTcCbnQxk=; b=kUiwQRS6rOWoc8vNJwVkMVyd+Blgzgk83XiOKRUG0bdJpEuQDnoHAo9amWMhB2x5zo Pr2uQNW8fhCgiHc4ZbBJ09qd6bmrnzX3YnQz3a0U0YAODD58qQ8KZyMvYPEx9PKwfk9H WnLm19xkh/lLxvWZ1H7oeT41WkLaBTAD9SGj8f/effVISX7RLpG00L1poc6U8aN9oUS6 t63jwHp0Kq9n+OBH/X2noVhr59yTnTaaIWbROXrpOV6GwjqU5AqgqXnqEZRS5DTIxUtd vIN8wKtsTNG0uwzmV6Wz46nxRH6cvB3235qbV6sCP7ZnFy1yesF/LBQ76iPp+7jOwNMT XlfA==; 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=1776672211; x=1777277011; 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=4fAL4neDkUqJrzgroI36Vc3/LD82OT9PbKNRTVIWx0I=; b=CUZ2yzQ3OrOhG643NSlt9dwkpwQlL2sfGVuJsAJ77Jy16AKyQp3vMY86v7WSs5szHn 7uBTymKtUVw0DaiaPiSRwCWAS0wj5MMXHd7O6NnkMusqWArMEd4gnnS76FgWqr0IakG7 bhwJ1oI8651zEei3p+SJz/sfZk+edHjpb45AWN7HBNCHOIq3uUy10SKIakgFLzUz5V8p 9IP08cZhKlI1YsNba132G1DJOdSbBjQ0ZKWGLR4nwj8ChY4f8BJcUhueuP1QUfEj6gsz ackq9CJcK1IW24TsvIHByL5mhrj6HdsZKYqg91rddfb+kyERq6yyLprGpqbcQFVq4WRz 3t3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776672211; x=1777277011; 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=4fAL4neDkUqJrzgroI36Vc3/LD82OT9PbKNRTVIWx0I=; b=qc/oVRAZYb+S4LMW0qMw3g0PAfL9VkeYeX5Hs/eQawa/cq1mQIumszpPm7IY9DShwn 5d6E/z1OgBoZ2f9/V/Q27zO6vCOkGZE0q64LqquG14Ti1UcrNki3TdpFpDjNOLzA5q6V 7hAfRCH3gdYP+gJAXAx6SEH5KqMqhCKUEeWlMrOjw9gSbpPV6BT4A5ecCvp2h38qItv8 Hyqz5RtJ2Bgv/3DrX3PF/DSQBrbqzT2RBGr9x/PMscp4GqSHLdfP4bo2D89akda2ZpMJ wkHJ391tpdBfpjV/Bg8frHb+V3H/7PdFDV9aGkmeuleF7q3ybow072b09ZH4XLe0GW2O Cq+A== X-Gm-Message-State: AOJu0YzeAQ3zoZmJrwaWV7q5E7jdHNeq/fkP9G9/zp2r1S7hHHML7EvO VjOOxtNo2Df503QJaldH+nU/ySsSY9F/QZrPfCFy2q8cPflvL9OeSTUZ1759keL2z8CqAnw4K6K 8MXs2f2EB4U0yXnRSOqSOCj+CEZlAuhg= X-Gm-Gg: AeBDievhTS7ONLtSWZCs06w8GZKfQdQCP+bQfcLeyCCaf4hWZA0F8D49wmK5bztoKXQ NsIdpyXYEcc6NKmTojBP96g0cNV+Ml3uvJvryMP2BP0pE4ien/6kNO20fRlV1JQP3PWq1w7iDUb bCl+TmBgKVGtklAnPy9SsjdT3v0uv+5FshgTVFOoniNJSqTNJKvNb/34uloGMuPAENJudpr5faG A+ParcAfkOpjuzsRWUZMYW2F2b36COsELgdEwpvMEl2R+SIxf5cMN3xgwEvTyWgN7OPloZ/WDr4 NLQ6G+0owE/AFjLcuYPumacbfung0nTXQqhNT+srFiKNJQPiyQk= X-Received: by 2002:a05:6122:322b:b0:56b:1eb:d396 with SMTP id 71dfb90a1353d-56fa5add31fmr5655475e0c.14.1776672211175; Mon, 20 Apr 2026 01:03:31 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: SATYANARAYANA NARLAPURAM Date: Mon, 20 Apr 2026 01:03:18 -0700 X-Gm-Features: AQROBzBj5x0tIFu13e8AncreuAe-AWGCr_BNHZojI7W5IUfZQfWAbtPOiGjUWBM Message-ID: Subject: Re: [BUG]: WHERE CURRENT OF cursor fail on tables that have virtual generated columns To: Dean Rasheed Cc: PostgreSQL Hackers Content-Type: multipart/alternative; boundary="000000000000078c63064fdfbc91" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000078c63064fdfbc91 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi On Mon, Apr 20, 2026 at 12:56=E2=80=AFAM Dean Rasheed wrote: > On Mon, 20 Apr 2026 at 01:33, SATYANARAYANA NARLAPURAM > wrote: > > > > On Sun, Apr 19, 2026 at 3:42=E2=80=AFAM Dean Rasheed > wrote: > >> > >> Hmm, it seems to me that a much simpler fix is to check for use of > >> WHERE CURRENT OF on a view at parse time, and throw the error there. > > > > This patch looks simple and neat, is there any reason why it was done > differently earlier? > > > > I'm not sure, but possibly because it used to be possible to turn a > table into a view by defining a SELECT rule on it, which could have > rendered a parse-time check insufficient. That's no longer the case > though, and we now have similar parse-time relkind tests elsewhere > (e.g., for MERGE). > > > Updated the patch to include a test case to reject view update with > WHERE CURRENT OF. > > > > That's already tested in portals.sql, which seems like a better place > for that test, since it's not related to virtual generated columns. I > don't think another test is necessary -- admittedly portals.sql only > tests DELETE, but the UPDATE code is the same, so I think the existing > test is sufficient. We don't obsessively try to achieve 100% coverage > in our tests. > Sounds good. Thanks for letting me know. --000000000000078c63064fdfbc91 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi

--000000000000078c63064fdfbc91--