Re: Pulling up direct-correlated ANY_SUBLINK - Mailing list pgsql-hackers

From Richard Guo
Subject Re: Pulling up direct-correlated ANY_SUBLINK
Date
Msg-id CAN_9JTx4Xp4o+7uGtBgQxCon5nnF9ZXF_GSV-vY18YSW8xSAYg@mail.gmail.com
Whole thread Raw
In response to Re: Pulling up direct-correlated ANY_SUBLINK  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hi Tom,

On Tue, Sep 10, 2019 at 9:48 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:

> Can we try to pull up direct-correlated ANY SubLink with the help of
> LATERAL?

Perhaps.  But what's the argument that you'd end up with a better
plan?  LATERAL pretty much constrains things to use a nestloop,
so I'm not sure there's anything fundamentally different.

This is a point I didn't think of. In that case if the pull-up mostly
results in a nestloop then we cannot make sure we will get a better
plan. Thank you for pointing it out.

Thanks
Richard

pgsql-hackers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: Do not check unlogged indexes on standby
Next
From: Ian Barwick
Date:
Subject: Re: doc: update PL/pgSQL sample loop function