Re: [HACKERS] Proposal: Local indexes for partitioned table
Robert Haas <robertmhaas@gmail.com>
From: Robert Haas <robertmhaas@gmail.com>
To: David Rowley <david.rowley@2ndquadrant.com>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>, Peter Eisentraut <peter.eisentraut@2ndquadrant.com>, Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>, Jesper Pedersen <jesper.pedersen@redhat.com>,
Simon Riggs <simon@2ndquadrant.com>, Pg Hackers <pgsql-hackers@postgresql.org>,
Maksim Milyutin <milyutinma@gmail.com>, Jaime Casanova <jaime.casanova@2ndquadrant.com>
Date: 2018-01-17T13:49:26Z
Lists: pgsql-hackers
On Tue, Jan 16, 2018 at 6:08 PM, David Rowley <david.rowley@2ndquadrant.com> wrote: > On 17 January 2018 at 03:58, Alvaro Herrera <alvherre@alvh.no-ip.org> wrote: >>> 9. Error details claim that p2_a_idx is not a partition of p. >>> Shouldn't it say table "p2" is not a partition of "p"? >> >> You missed the "on" in the DETAIL: >> DETAIL: Index "p2_a_idx" is not on a partition of table "p". >> You could argue that this is obscurely worded, but if you look at the >> command: >> ALTER INDEX p_a_idx ATTACH PARTITION p2_a_idx; >> nowhere is table p2 mentioned, so I'm not sure it's a great idea to >> mention the table in the error message. > > I think I did miss the "on". I think you will not be the only person to make that mistake. I think it would be better phrased as DETAIL: "p2_a_idx" is not an index of any partition of table "p" -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
Commits
-
Local partitioned indexes
- 8b08f7d4820f 11.0 landed
-
Fix StoreCatalogInheritance1 to use 32bit inhseqno
- 1ef61ddce908 11.0 landed
- 9a215fb4b5ec 9.3.21 landed
- 8a71ee628854 9.6.7 landed
- 61f08c016322 10.2 landed
- 1284d18b5de9 9.4.16 landed
- 0d993709a773 9.5.11 landed
-
Get rid of copy_partition_key
- 8a0596cb656e 11.0 landed
-
Simplify index_[constraint_]create API
- a61f5ab98638 11.0 landed