public inbox for [email protected]  
help / color / mirror / Atom feed
From: David G. Johnston <[email protected]>
To: Quentin de Metz <[email protected]>
Cc: [email protected]
Subject: Re: Sharp edge when dropping columns
Date: Thu, 14 Mar 2024 12:01:30 -0700
Message-ID: <CAKFQuwYWYOu7LsdvD4k5uOgywnTXgfmt0UuSL2uP8=Q6izFqqg@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>

On Thu, Mar 14, 2024 at 11:45 AM Quentin de Metz <[email protected]> wrote:

>
> I found this behavior unexpected.
>

In general it is advisable to rely on documented behaviors rather than
expectations.

https://www.postgresql.org/docs/current/sql-altertable.html

This long-standing behavior seems unlikely to be changed.  Preventing the
column from being dropped would in any case be the accepted outcome, not
leaving an index behind that refers to a column that doesn't exist.

David J.


view thread (3+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: Sharp edge when dropping columns
  In-Reply-To: <CAKFQuwYWYOu7LsdvD4k5uOgywnTXgfmt0UuSL2uP8=Q6izFqqg@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox