pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: table inheritance partition and indexes
Date: Wed, 23 Nov 2022 13:24:15 -0600
Message-ID: <8a298271-3643-4298-ee19-ed219a5ca7af@gmail.com> (raw)
In-Reply-To: <CAFPpqQFwdH2PeyoWXcSHYA8Fa+b_JFtGeiZqNQNk4W-EOYWo=g@mail.gmail.com>
References: <CAFPpqQFwdH2PeyoWXcSHYA8Fa+b_JFtGeiZqNQNk4W-EOYWo=g@mail.gmail.com>

Out of curiosity, why INHERITS in v13 instead of PARTITION BY?

On 11/23/22 09:31, Ted Toth wrote:
> I've created a table with a number of indexes and then created a partition 
> table that inherits from it using "CREATE TABLE... INHERITS..." . I've 
> then queried pg_indexes on the parent for its indexes and tried creating 
> matching indexes on the child and attaching them to the parent table 
> indexes. However "ALTER TABLE ... ATTACH PARTITION ..." is returning the 
> error "<parent tables index name> is not a table partitioned index". I've 
> followed the inheritance partitioning example and read the "CREATE INDEX" 
> docs but I must be missing something, can anyone help me understand what 
> I'm doing wrong? I'm using version 13.
>
> Ted
>

-- 
Angular momentum makes the world go 'round.





view thread (7+ messages)  latest in thread

Message-ID: <8a298271-3643-4298-ee19-ed219a5ca7af@gmail.com>
Permalink:  ../8a298271-3643-4298-ee19-ed219a5ca7af@gmail.com/
Also on:    postgresql.org/message-id/8a298271-3643-4298-ee19-ed219a5ca7af@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ronljohnsonjr@gmail.com
  Subject: Re: table inheritance partition and indexes
  In-Reply-To: <8a298271-3643-4298-ee19-ed219a5ca7af@gmail.com>
  References: <CAFPpqQFwdH2PeyoWXcSHYA8Fa+b_JFtGeiZqNQNk4W-EOYWo=g@mail.gmail.com> <8a298271-3643-4298-ee19-ed219a5ca7af@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