Re: table inheritance partition and indexes - Mailing list pgsql-general

From Ron
Subject Re: table inheritance partition and indexes
Date
Msg-id 8a298271-3643-4298-ee19-ed219a5ca7af@gmail.com
Whole thread Raw
In response to table inheritance partition and indexes  (Ted Toth <txtoth@gmail.com>)
Responses Re: table inheritance partition and indexes  (Ted Toth <txtoth@gmail.com>)
List pgsql-general
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.



pgsql-general by date:

Previous
From: Danny Shemesh
Date:
Subject: Re: Index filter instead of index condition w/ IN / ANY queries above certain set size
Next
From: Peter Eisentraut
Date:
Subject: Re: Fwd: Postgre und GIS Umstellung von MD5 auf SCUM SHA 256