Re: Feature Proposal: Column-Level DELETE Operation in SQL - Mailing list pgsql-general

From Amul Sul
Subject Re: Feature Proposal: Column-Level DELETE Operation in SQL
Date
Msg-id CAAJ_b94WYnPpc7+yEsbHQvzcFuT3pF=_+nze7ySkQdhDVE41og@mail.gmail.com
Whole thread Raw
In response to Re: Feature Proposal: Column-Level DELETE Operation in SQL  (Karsten Hilbert <Karsten.Hilbert@gmx.net>)
List 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



pgsql-general by date:

Previous
From: Karsten Hilbert
Date:
Subject: Re: Feature Proposal: Column-Level DELETE Operation in SQL
Next
From: Laurenz Albe
Date:
Subject: Re: Feature Proposal: Column-Level DELETE Operation in SQL