pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: exclusion@gmail.com
Subject: BUG #18674: Partitioned table doesn't depend on access method it uses
Date: Sat, 26 Oct 2024 06:00:00 +0000
Message-ID: <18674-1ef01eceec278fab@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      18674
Logged by:          Alexander Lakhin
Email address:      exclusion@gmail.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.



view thread (8+ messages)  latest in thread

Message-ID: <18674-1ef01eceec278fab@postgresql.org>
Permalink:  ../18674-1ef01eceec278fab@postgresql.org/
Also on:    postgresql.org/message-id/18674-1ef01eceec278fab@postgresql.org

 · 

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: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, exclusion@gmail.com
  Subject: Re: BUG #18674: Partitioned table doesn't depend on access method it uses
  In-Reply-To: <18674-1ef01eceec278fab@postgresql.org>

* 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