pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Lakhin <exclusion@gmail.com>
To: Michael Paquier <michael@paquier.xyz>
To: Kirill Reshke <reshkekirill@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #18674: Partitioned table doesn't depend on access method it uses
Date: Mon, 28 Oct 2024 11:00:00 +0300
Message-ID: <aa56abed-7444-3508-4216-a4e10b79c295@gmail.com> (raw)
In-Reply-To: <Zx879T_oFkiHv9St@paquier.xyz>
References: <18674-1ef01eceec278fab@postgresql.org>
	<CALdSSPgvKRX1pZE7GLKpDESw0wbBH4qBZPQSdSKYY2btCrfuSQ@mail.gmail.com>
	<CALdSSPjGzuo0eodxdP9WZS4Q7nvv-2k3W=9ie2XoMedBjkr1Fw@mail.gmail.com>
	<Zx879T_oFkiHv9St@paquier.xyz>

Hello Michael and Kirill,

28.10.2024 10:23, Michael Paquier wrote:
> The path of adding the dependency between an AM and a table/matview is
> heap_create_with_catalog() when these are defined.  We can just expand
> that for partitioned tables and simply fix the problem.  Attached is a
> patch to do that, with tests around create_am.sql based on USING
> checking the contents of pg_depend.

0001-Fix-dependency....patch works for me, but while testing, I've also
observed another questionable behavior:
CREATE ACCESS METHOD heap2 TYPE TABLE HANDLER heap_tableam_handler;
SET default_table_access_method = heap2;
CREATE TABLE pt (a int) PARTITION BY LIST (a);
\d+ pt

doesn't show heap2 as access method for the table.

Shouldn't default_table_access_method affect partitioned tables?

Best regards.
Alexander





view thread (8+ messages)  latest in thread

Message-ID: <aa56abed-7444-3508-4216-a4e10b79c295@gmail.com>
Permalink:  ../aa56abed-7444-3508-4216-a4e10b79c295@gmail.com/
Also on:    postgresql.org/message-id/aa56abed-7444-3508-4216-a4e10b79c295@gmail.com

 · 

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: exclusion@gmail.com, michael@paquier.xyz, reshkekirill@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #18674: Partitioned table doesn't depend on access method it uses
  In-Reply-To: <aa56abed-7444-3508-4216-a4e10b79c295@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 DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox