On Thu, Feb 12, 2015 at 6:40 AM, Amit Kapila <amit.kapil...@gmail.com> wrote: > If we have to go this way, then isn't it better to evaluate the same > when we are trying to create parallel path (something like in the > parallel_seq scan patch - create_parallelscan_paths())?
Probably not, because many queries will scan multiple relations, and we want to do all of this work just once per query. Also, when somebody adds another parallel node (e.g. parallel hash join) that will need this same information. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers