BUG #18674: Partitioned table doesn't depend on access method it uses

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: exclusion(at)gmail(dot)com
Subject: BUG #18674: Partitioned table doesn't depend on access method it uses
Date: 2024-10-26 06:00:00
Message-ID: 18674-1ef01eceec278fab@postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 18674
Logged by: Alexander Lakhin
Email address: exclusion(at)gmail(dot)com
PostgreSQL version: 17.0
Operating system: Ubuntu 22.04
Description:

The following script:
CREATE ACCESS METHOD ham TYPE TABLE HANDLER heap_tableam_handler;
CREATE TABLE pt (a int) PARTITION BY LIST (a) USING ham;
DROP ACCESS METHOD ham;

ends successfully, with the access method dropped, though then:
CREATE TABLE tp1 PARTITION OF pt FOR VALUES IN (1);

fails with
ERROR: cache lookup failed for access method 16385

Whilst
CREATE TABLE t (a int) USING ham;
DROP ACCESS METHOD ham;

fails with
ERROR: cannot drop access method ham because other objects depend on it
DETAIL: table t depends on access method ham
HINT: Use DROP ... CASCADE to drop the dependent objects too.

Reproduced starting from 374c7a229.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Alvaro Herrera 2024-10-26 14:14:53 Re: BUG #18614: [ECPG] out of bound in DecodeDateTime
Previous Message PG Bug reporting form 2024-10-25 13:38:33 BUG #18673: Uninstallation of second instance
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy