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 1u7Dgj-00CmBR-17 for pgsql-general@arkaria.postgresql.org; Tue, 22 Apr 2025 13:29:25 +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 1u7Dgf-00EN5e-HG for pgsql-general@arkaria.postgresql.org; Tue, 22 Apr 2025 13:29:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u7Dgf-00EN5R-6T for pgsql-general@lists.postgresql.org; Tue, 22 Apr 2025 13:29:22 +0000 Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1u7Dgc-001Pn9-2D for pgsql-general@postgresql.org; Tue, 22 Apr 2025 13:29:21 +0000 Received: by mail-pg1-x52b.google.com with SMTP id 41be03b00d2f7-af548cb1f83so4944013a12.3 for ; Tue, 22 Apr 2025 06:29:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1745328558; x=1745933358; darn=postgresql.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Stzz7CTXec9vWXYU3XX/YcTqpWOZHbqR0GaPI5Pp0hA=; b=TQafVWM9OJQH7pbxTSgiGkjHZyx+aibc5z+GNsN3vqZDa9DMO4EUZQlIrgNGkPI/2o sHHp6mqfcVFeU3tpkrI4nO2E1bq4AqkJPEu6IeOmSkRGSHYTsHS2zQ/ZwJ7i3kOcBe1y VFkSss3aDaY9viLOQ4JTaq/uMLE3L6YGR07ctEuFDBkXCsCqbqaJUJjKddDGNv2ZlK9a mq3IOW9USSenwXG4C+be4KU4vJQtMWhVIZk/ENg4zzVEz3E3FSRdnCw91WSZDBKKAtKi SiqaE5k97CoG9Ju1NMfjBjI3dsjFszl6IE9g6Afzgnj9j7/MMNg28ybxJ/1GiRTSiNpa mLFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745328558; x=1745933358; h=content-transfer-encoding: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=Stzz7CTXec9vWXYU3XX/YcTqpWOZHbqR0GaPI5Pp0hA=; b=XpgLsKQP3TrjK8owyEORepvnPl6QYOlenZghzDLHd9mfY74NdxTKNFWP9M2F+xV/va yxRtOzuDVYHyZx416n0evpLkn9dBeyFjQJhPEq+KyoNohpLpeIXVkm98EeO5Mzl34cms 5Tpnk0LrF8axKctSRuPpaHeGnn9Gx3Z7j1e2LWTVIjRK5IlnHlvAryZCEh45xvDiQVcM T4UUtWw6/o0BO2/fI5jqhV2Nha6mkRdBtfHJszg7dG+PGOJrnHTGqBeWK4GoeIU0yZTn NrWuF4oPx1cFkrfZ92Quuockt1V+BgWLs8yJAwitZ0tFSO4i6F2t2Mq6LmKe5hjbQ9Hy +8zg== X-Forwarded-Encrypted: i=1; AJvYcCXJZUUpvFeE/2XHOFUvjw9+FtghiC1Xa2tfIK3BlfmhUvkZI0k5Ty3q+kmCFhYKkld+IN9d56ZtXQ+yqXXM@postgresql.org X-Gm-Message-State: AOJu0YzUymGbUrtMz3vyDgxYQf8USetOmavVwWPA+YitpU/0QG7M8CCL QobZ7TvZLsbnEvORIpWplCh2UAUAguACTWNezXjPnt1JuCYY+tyfr1rWXiD/WeOd2BY4/KyqH88 D94rPjIJoK7fz54CBFLxKkM//tLCMgcQA73I= X-Gm-Gg: ASbGncv6+cNvx6O/5NFwVrfNuLZ9KVnpx8czObxqmMwFdc3EzHqoz1iMf+jSbW7SB9A W2tEA7NU78JE2jGCLIlolBJflqd9zz0qWrNIkO/DdL8wa1fp+FaxWbClVYVMZAsheBMiNLnlWG/ aBbxZMQacpyjg07MqZgoPn4bL0pxhtHlSXt9sZgJ6bpSjn1fYsbgSdrs1M X-Google-Smtp-Source: AGHT+IESEW32bhgzgrZvvOMvK7mpYHA2vxIUC+g/8FwnVFTtIrMicr7lklDGKBfNSfrNUyhG8igGCu3JgV1ERy6SzZs= X-Received: by 2002:a17:902:e80f:b0:21f:617a:f1b2 with SMTP id d9443c01a7336-22c5361b94amr222829655ad.46.1745328557487; Tue, 22 Apr 2025 06:29:17 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Amul Sul Date: Tue, 22 Apr 2025 18:58:39 +0530 X-Gm-Features: ATxdqUHeC3H_Yddi2F-AtdHaH_9dwAF6N7GBnNjeh2u0c5gGbrSa1imv4XEAZRQ Message-ID: Subject: Re: Feature Proposal: Column-Level DELETE Operation in SQL To: pgsql-general@lists.postgresql.org, pgsql-general@postgresql.org 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 Tue, Apr 22, 2025 at 5:56=E2=80=AFPM Karsten Hilbert wrote: > > Am Mon, Apr 21, 2025 at 10:23:30PM +0530 schrieb Abhishek Hatgine: > > > *deleting* a value is conceptually different from *updating* it to N= ULL. > > In what way ? > > In other words, you'll have to much better define what you > mean be "deleting a value". > > DROP COLUMN already exists, for that matter. > > Updating a column to its DEFAULT value may also be closer to > what you envision a "column-delete" to do. > Agreed, this is a much better approach to achieve the same. I am a bit skeptical about whether the proposed syntax will be acceptable if it's not SQL standard, unless it's absolutely necessary to support functionality that can't be achieved with the existing syntax which is not the case here. Regards, Amul