Re: BUG #18500: Detaching a partition with an index manually attached to the parent's index triggers Assert
Laurenz Albe <laurenz.albe@cybertec.at>
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: exclusion@gmail.com, pgsql-bugs@lists.postgresql.org
Date: 2024-06-27T13:54:17Z
Lists: pgsql-bugs
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Fix ALTER TABLE DETACH for inconsistent indexes
- d0054432d480 12.20 landed
- 83917791385a 18.0 landed
- 66aaa7a71841 14.13 landed
- 4ae09c59d6f5 15.8 landed
- 30ca4e1ab1ff 17.0 landed
- 05748256939b 13.16 landed
- 00a40e33c0a4 16.4 landed
On Sun, 2024-06-09 at 06:00 +0000, PG Bug reporting form wrote: > The following bug has been logged on the website: > > Bug reference: 18500 > Logged by: Alexander Lakhin > Email address: exclusion@gmail.com > PostgreSQL version: 17beta1 > Operating system: Ubuntu 22.04 > Description: FYI, I think that the same problem just happened to me with v17beta2: test=> CREATE TABLE p (id integer) PARTITION BY RANGE (id); CREATE TABLE test=> CREATE TABLE p_1 PARTITION OF p FOR VALUES FROM (1) TO (2); CREATE TABLE test=> ALTER TABLE p_1 ADD PRIMARY KEY (id); ALTER TABLE test=> CREATE UNIQUE INDEX ON p (id); CREATE INDEX test=> ALTER TABLE p DETACH PARTITION p_1; server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. Yours, Laurenz Albe