Re: relispartition for index partitions

2018-04-11 Thread Amit Langote
On 2018/04/12 5:33, Alvaro Herrera wrote: > Amit Langote wrote: >> Hi. >> >> I noticed that relispartition isn't set for index's partitions. > > This patch should fix it. Thanks. I saw your commit 9e9befac4a22 and changes seem fine. Regards, Amit

Re: relispartition for index partitions

2018-04-11 Thread Alvaro Herrera
Amit Langote wrote: > Hi. > > I noticed that relispartition isn't set for index's partitions. This patch should fix it. -- Álvaro Herrerahttps://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services diff --git a/src/backend/catalog/index.c b/

Re: relispartition for index partitions

2018-04-11 Thread Alvaro Herrera
Hello Andres Freund wrote: > On 2018-01-26 18:57:03 +0900, Amit Langote wrote: > > I noticed that relispartition isn't set for index's partitions. > > Is that intentional? > > This appears to be a question about > https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=8b08f7d4820fd7a8ef

Re: relispartition for index partitions

2018-04-11 Thread Andres Freund
Hi, On 2018-01-26 18:57:03 +0900, Amit Langote wrote: > I noticed that relispartition isn't set for index's partitions. > > create table p (a int) partition by list (a); > create table p12 partition of p for values in (1, 2); > create index on p (a); > select relname, relkind from pg_class where

relispartition for index partitions

2018-01-26 Thread Amit Langote
Hi. I noticed that relispartition isn't set for index's partitions. create table p (a int) partition by list (a); create table p12 partition of p for values in (1, 2); create index on p (a); select relname, relkind from pg_class where relnamespace = 'public'::regnamespace and relispartition is tr