Re: Feature Proposal: Column-Level DELETE Operation in SQL
amul sul <sulamul@gmail.com>
From: Amul Sul <sulamul@gmail.com>
To: pgsql-general@lists.postgresql.org, pgsql-general@postgresql.org
Date: 2025-04-22T13:28:39Z
Lists: pgsql-general
On Tue, Apr 22, 2025 at 5:56 PM Karsten Hilbert <Karsten.Hilbert@gmx.net> wrote: > > Am Mon, Apr 21, 2025 at 10:23:30PM +0530 schrieb Abhishek Hatgine: > > > *deleting* a value is conceptually different from *updating* it to NULL. > > 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