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 1wG88G-005uc1-1J for pgsql-hackers@arkaria.postgresql.org; Fri, 24 Apr 2026 04:27:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wG88F-004HqZ-0Q for pgsql-hackers@arkaria.postgresql.org; Fri, 24 Apr 2026 04:27:11 +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 1wG88E-004HqR-2k for pgsql-hackers@lists.postgresql.org; Fri, 24 Apr 2026 04:27:10 +0000 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wG88C-00000002WJC-36o7 for pgsql-hackers@lists.postgresql.org; Fri, 24 Apr 2026 04:27:09 +0000 Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-43cf7683a28so4977764f8f.2 for ; Thu, 23 Apr 2026 21:27:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1777004828; cv=none; d=google.com; s=arc-20240605; b=B7lgQKR9YSJ6A/ImoaptxYadOctLHL4myBoX+3tUicvcvDw6glSM3iG5qlQf57RY4O Z1EXTtuh5wZTYmXb7DakQxiGEUXUrORbigiGr+Xnv9moFKjS5Yn34xfUbqWC6rxVRiKb 0iMPuGvgmsO/09LAJBQRkJY8snK9oqtVHGO1Nsxj6e/u8+iJ+9UoiUlGNAElZfwi8AaC HpByf6hNaPWRBX9IJNkO0AGMlOAn3oBMTpGuzKac+N+Xfh7RPMAg+GOWloa9aCRgOlcn Vbuhi7m1AVmQnnPBEgRrRFtZSBJI75uYuowXD0/IwWEt2wrJl+8ijnvPNV38gFD/E+5n wfww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=eiHdcUU/RI1J4e6my9rO6l3B5xKmbvVW9QLZCNPD/So=; fh=pcpmQlqMqoPoJ+XuYlARvkC0Vrx7TPk2FtqJG+0gppw=; b=ft3WtCoHVlvh2gCD5l3ljhycsuf2RFEqFLGNyz3PWoj+EjgY/lL8XiMtErhSteny0F gp9QcAu2aLfaMey92UVbsEzaj8fPu9tzNBAyEDn2NRzmBbja+DUVemh//pCa98BQqUs+ J5FNuSiFwAJVF6D59ljfYJAL9Z55ledIkRiYiTFuw2SDy78uUuyC1GA8pmCvb//9MQc5 ocwLyAKG1G7tjkXLfC2rzGuQkCe+NM0GJ0wlBE7HHglvdgdd5cuN2rRJ0lzIq+KjjEjw oF8+1UK5k71Wt6acMNmTIgrJQxqLFK4nLMYz/msVi0vJXKnyWy7VGhJx4Wbg3/cyAEIU vNdw==; 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=1777004828; x=1777609628; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=eiHdcUU/RI1J4e6my9rO6l3B5xKmbvVW9QLZCNPD/So=; b=HYYCpKZoLAW1uSkks4eM4xIkwjRpES+iLrjsK0jDRL2DPVCVDyyEkTtWmlE/QISIDR oggDAs/NLpNN/Ea1ltbrA43/EJ0Kdwr3eLmwsOPzfZ8M//wl1IRsNDMRsQep2UKWrg7o 56frCVJf1kGVK3BgmuRok2muQqytdI1dej53kRankI6vrfO7jaUtnIK20bNus94MANoB 1XP218zLfJLllYWzuHpUWkZim15FUPW/Ml7UoKB0lzEqqLM7iOQT+KdjIC7d7P/96bRf H5Uo+AXKHHdVKfSFk3XlmuCwiQnxHvFuLsXuLsNHiwduhu/Loo6BJtCaXlQ9HX7zp/ZN 0WSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777004828; x=1777609628; h=content-transfer-encoding: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=eiHdcUU/RI1J4e6my9rO6l3B5xKmbvVW9QLZCNPD/So=; b=iCdL7B8sxbqitRhYmD22KAwMR+REt3g7WtzrIWLW63DA6hZTJxNVs8ohRn8wPONss0 uVhok7iQooTqaxxwQ/iaTcpKeUw1CQHvUIrX4oCKRerE4ez7NRUBLrdgNaEd35HD7pJj 78X5CyCeW67R0Aiq2qQQK6stVo0ciAM2G60tini1U1QRyu23Ekwd0OaA6n1HTNvXCG9z /FEMC8INOtwXvlUE0u9DTEatpcyTb3EWc/wpObpsD+KFyAW2aZRHStbP+jlPh7JUoTUV DMQzcDrgglvTZqN58ZhuYub01uZb1XjprLP4dCldoouS1Dg3gA1mXf/FVvOH51PqubXv P8iA== X-Forwarded-Encrypted: i=1; AFNElJ8oCAEt8JtO8O4vlzctc5ddSY7YV3XPfe09J7Ifj0peDE05stMV2DpWaKiiNXEIdpYQUCjvlrS+ikXVJqeu@lists.postgresql.org X-Gm-Message-State: AOJu0YxUT9wSbKtEK0ITEKBK3cuGdhwaaugrlMWExzO9e1GZroTaHBYv aSdCbQuYvkHwH2fp6V4Bb733K2JsXYL1opWY1WAZ4kzRR/5nCaRig/CYe/0gUfjYStmfNwf/z8a +MIAZLsLNIj4kNEL8qzht5WCofzcTEis= X-Gm-Gg: AeBDietHoVZh+WwGYl3TnLAVj6urRBaC0cqFqrAdP4q8QVnjXiaG4pI7GtWSXBXSSb2 N9pG9b/ifA2ooroIhYWFdVKJwLJg+Ti5oBOxudFSUf2LkXVeUsPIyyJeLr+V8UcX2sRoOfahgOS WeXHS2MRjXJXeejNuzJ5qRts85Po1ruxPyCLtRVkFv3iqaFGnXpzjm4PtkGWWuN8/UxRsWsxWql d78HjoFbwUK/AJ1ISdzqot5TsKmZPk2kdo2/JKR+4Otpd5kQ47R0Hc6g6nhDHx0+oNYjCe7IaWV s404hsKiWe4XhLW4sR7B1AAa1ioVrym3WPW/MfnCX2qxEmmAK5NW0K55kCALtYlSTZx7bwHt5w= = X-Received: by 2002:a05:6000:2387:b0:43c:f447:f9cc with SMTP id ffacd0b85a97d-43fe3e1e15fmr45809506f8f.46.1777004827637; Thu, 23 Apr 2026 21:27:07 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ashutosh Bapat Date: Fri, 24 Apr 2026 09:56:54 +0530 X-Gm-Features: AQROBzCISfQdMK-N8qQiTaamBQBGVYaq6_TFKRb-xkEQ9vWSXWCibhl-6McpeSU Message-ID: Subject: Re: [Patch] Block ALTER TABLE RENAME COLUMN when column is used by property graph To: =?UTF-8?Q?=C3=81lvaro_Herrera?= Cc: SATYANARAYANA NARLAPURAM , PostgreSQL Hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Apr 23, 2026 at 7:19=E2=80=AFPM =C3=81lvaro Herrera wrote: > > On 2026-Apr-23, Ashutosh Bapat wrote: > > > Name of the property is derived from the name of the column it > > references if the property name is not specified at the time of > > creating the property. But these two are different. Changing column > > name can not be expected to change the property name automatically. > > Hmm, but we do rename constraints when we rename indexes, and other > similar things, don't we? > Properties are much closer to the view columns compared to constraints. I am not able to see the significance of this comparison. But more important is the reason mentioned in the last sentence of my response which you have not included in your reply. "If two elements have the same label, the set of property names associated with that label is expected to be the same for those two elements as well." . A property is associated with an element table through one or more labels. These labels in turn can be associated with more than one element. Every element associated with a given label has to define the same set of properties (names and types). When there is only one element defining a given property it may appear that the property name is linked to the column name if the first was derived from the latter. But that's not true when multiple elements define the same property. Unlike a constraint or an index, a property is not associated with only one table - it can be associated with multiple tables. Hence changing property name as a result of changing name of a column is not correct. --=20 Best Wishes, Ashutosh Bapat