Re: Analyze all plans - Mailing list pgsql-hackers

From Oleksandr Shulgin
Subject Re: Analyze all plans
Date
Msg-id CACACo5RzQKzdyJmERHb9dL+XWW=DsyM+S4KBoawUVs8v==NKoA@mail.gmail.com
Whole thread Raw
In response to Analyze all plans  (Donald Dong <xdong@csumb.edu>)
Responses Re: Analyze all plans  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Wed, Jan 23, 2019 at 9:44 AM Donald Dong <xdong@csumb.edu> wrote:

1. Enumerate all the plans

Not sure this is going to work.  Because of the total number of possible plans is somewhere
around O(n!), if I'm not mistaken, in terms of number of joined relations times the available
access methods times the possible join strategies.

So enumerating all possible plans stops being practical for even slightly complicated queries.

Regards,
--
Alex

pgsql-hackers by date:

Previous
From: Fabien COELHO
Date:
Subject: yet another comment typo patch
Next
From: Fabien COELHO
Date:
Subject: Re: pg_dump multi VALUES INSERT