From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alexander Lakhin <exclusion@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org, Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Subject: Re: BUG #17872: Dropping an attribute of a composite type breaks indexes over the type silently
Date: Tue, 28 Mar 2023 15:18:30 -0400
Message-ID: <3653799.1680031110@sss.pgh.pa.us> (raw)
In-Reply-To: <65c49195-7117-67c4-5bfe-45ca8832dfe3@gmail.com>
References: <17872-d0fbb799dc3fd85d@postgresql.org>
<3169550.1679928579@sss.pgh.pa.us>
<3182314.1679935605@sss.pgh.pa.us>
<1aa2eec0-2017-3870-6d88-228d08c587d3@gmail.com>
<3267914.1679941213@sss.pgh.pa.us>
<67cb509e-93c7-1c7b-2388-d7e00277b344@gmail.com>
<3332642.1679943981@sss.pgh.pa.us>
<65c49195-7117-67c4-5bfe-45ca8832dfe3@gmail.com>
Alexander Lakhin <exclusion@gmail.com> writes:
> So I agree, that disabling the drop operation when a composite type has
> dependencies is not a harmless change. On the other hand, the code might be
> not ready to deal with the uniqueness assumption violated.
Well, corrupt indexes are a fact of life and probably always will be,
because collations are such an unpredictable mess. So if we have anyplace
that is straight out Assert'ing that uniqueness holds, I'd say that that
needs reconsideration. We need to try to turn it into a helpful error
message.
> #5 0x000055d3131e314f in ExceptionalCondition (
> conditionName=conditionName@entry=0x55d313357b85 "next_index == nparts",
> fileName=fileName@entry=0x55d313357887 "partbounds.c", lineNumber=lineNumber@entry=884) at assert.c:66
Hmm. I did not trace this down, but it doesn't look like it's exactly
connected to corrupt indexes.
regards, tom lane
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: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, exclusion@gmail.com, peter.eisentraut@enterprisedb.com
Subject: Re: BUG #17872: Dropping an attribute of a composite type breaks indexes over the type silently
In-Reply-To: <3653799.1680031110@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox