Re: Explain is slow with tables having many columns

2018-09-24 Thread Andres Freund
Hi, On 2018-09-24 12:43:44 -0700, legrand legrand wrote: > Justin Pryzby wrote > > On Mon, Sep 24, 2018 at 12:22:28PM -0700, legrand legrand wrote: > >> Hello, > >> I have found that explain on tables with many (hundreds) columns > >> are slow compare to nominal executions. > > > > See also this

Re: Explain is slow with tables having many columns

2018-09-24 Thread Andres Freund
Hi, (CCing -hackers) On 2018-09-24 12:22:28 -0700, legrand legrand wrote: > I have found that explain on tables with many (hundreds) columns > are slow compare to nominal executions. Yea, colname_is_unique() (called via make_colname_unique()) is essentially O(#total_columns) and rougly called on

Re: Explain is slow with tables having many columns

2018-09-24 Thread legrand legrand
Justin Pryzby wrote > On Mon, Sep 24, 2018 at 12:22:28PM -0700, legrand legrand wrote: >> Hello, >> I have found that explain on tables with many (hundreds) columns >> are slow compare to nominal executions. > > See also this thread from last month: > > https://www.postgresql.org/message-id/flat/

Re: Explain is slow with tables having many columns

2018-09-24 Thread Justin Pryzby
On Mon, Sep 24, 2018 at 12:22:28PM -0700, legrand legrand wrote: > Hello, > I have found that explain on tables with many (hundreds) columns > are slow compare to nominal executions. See also this thread from last month: https://www.postgresql.org/message-id/flat/CAEe%3DmRnNNL3RDKJDmY%3D_mpcpAb5u