Re: how to create index concurrently on partitioned table

2020-06-12 Thread Justin Pryzby
On Fri, Jun 12, 2020 at 04:17:34PM +0800, 李杰(慎追) wrote: > As we all know, CIC has three transactions. If we recursively in n > partitioned tables, > it will become 3N transactions. If an error occurs in these transactions, we > have too many things to deal... > > If an error occurs when an inde

Re: how to create index concurrently on partitioned table

2020-06-12 Thread Michael Paquier
On Thu, Jun 11, 2020 at 10:35:02AM -0500, Justin Pryzby wrote: > Note, you could do this now using psql like: > SELECT format('CREATE INDEX CONCURRENTLY ... ON %s(col)', a::regclass) FROM > pg_partition_ancestors() AS a; > \gexec I have skimmed quickly through the patch set, and something has cau

Re: how to create index concurrently on partitioned table

2020-06-11 Thread Justin Pryzby
On Sun, Jun 07, 2020 at 01:04:48PM -0500, Justin Pryzby wrote: > On Sat, Jun 06, 2020 at 09:23:32AM -0500, Justin Pryzby wrote: > > On Wed, Jun 03, 2020 at 08:22:29PM +0800, 李杰(慎追) wrote: > > > Partitioning is necessary for very large tables. However, I found that > > > postgresql does not support