Re: Make deparsing of column defaults faster - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Make deparsing of column defaults faster
Date
Msg-id 7ac4027d-b4f1-3232-95e7-b4153222cb8c@2ndquadrant.com
Whole thread Raw
In response to Re: Make deparsing of column defaults faster  (Jeff Janes <jeff.janes@gmail.com>)
Responses Re: Make deparsing of column defaults faster  (Jeff Janes <jeff.janes@gmail.com>)
List pgsql-hackers
On 07/07/2018 20:07, Jeff Janes wrote:
> One case that your patch doesn't improve (neither does my posted one) is
> check constraints.  To fix that, pg_get_constraintdef_worker would also
> need to grow a cache as well.  I don't know how often people put check
> constraints on most of the columns of a table.  Some people like their
> NOT NULL constraints to be named, not implicit.
> 
> But from the bigger picture of making pg_upgrade faster, a major issue
> is that while pg_dump -s gets faster for the column default case, the
> restore of that dump is still slow (again, my posted patch also doesn't
> fix that).  In that case it is deparse_context_for called from
> StoreAttrDefault which is slow.

Any thoughts on how to proceed here?  It seems there is more work to do
to cover all the issues with dumping and restoring tables with many
columns.  Since the original report was in the context of pg_upgrade, we
should surely address at least the pg_restore slowness.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


pgsql-hackers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: [PATCH] Improve geometric types
Next
From: Jeff Janes
Date:
Subject: Re: Make deparsing of column defaults faster