pgsql: Speed up dropping tables with many partitions.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Speed up dropping tables with many partitions.
Date: 2017-04-28 18:03:28
Message-ID: E1d4AEq-0005fx-5M@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Speed up dropping tables with many partitions.

We need to lock the parent, but we don't need a relcache entry
for it.

Gao Zeng Qi, reviewed by Amit Langote

Discussion: http://postgr.es/m/CAFmBtr0ukqJjRJEhPWL5wt4rNMrJUUxggVAGXPR3SyYh3E+HDQ@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c1e0e7e1d790bf18c913e6a452dea811e858b554

Modified Files
--------------
src/backend/catalog/heap.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2017-04-28 18:07:48 pgsql: In load_relcache_init_file, initialize rd_pdcxt.
Previous Message Robert Haas 2017-04-28 17:53:04 pgsql: Fix crash when partitioned column specified twice.