pgsql: Set partitioned_rels appropriately when UNION ALL is used.

Started by Robert Haasabout 9 years ago3 messagescommitters
Jump to latest
#1Robert Haas
rhaas@postgresql.org

Set partitioned_rels appropriately when UNION ALL is used.

In most cases, this omission won't matter, because the appropriate
locks will have been acquired during parse/plan or by AcquireExecutorLocks.
But it's a bug all the same.

Report by Ashutosh Bapat. Patch by me, reviewed by Amit Langote.

Discussion: /messages/by-id/CAFjFpRdHb_ZnoDTuBXqrudWXh3H1ibLkr6nHsCFT96fSK4DXtA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1555566d9ee1a996a28cc4601840a67831112695

Modified Files
--------------
src/backend/optimizer/path/allpaths.c | 42 +++++++++++++++++++++++++++++++----
src/backend/optimizer/plan/planner.c | 6 ++---
2 files changed, 40 insertions(+), 8 deletions(-)

--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers

#2Thomas Munro
thomas.munro@enterprisedb.com
In reply to: Robert Haas (#1)
Re: pgsql: Set partitioned_rels appropriately when UNION ALL is used.

On Fri, Sep 15, 2017 at 3:06 AM, Robert Haas <rhaas@postgresql.org> wrote:

Set partitioned_rels appropriately when UNION ALL is used.

In most cases, this omission won't matter, because the appropriate
locks will have been acquired during parse/plan or by AcquireExecutorLocks.
But it's a bug all the same.

Report by Ashutosh Bapat. Patch by me, reviewed by Amit Langote.

Discussion: /messages/by-id/CAFjFpRdHb_ZnoDTuBXqrudWXh3H1ibLkr6nHsCFT96fSK4DXtA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1555566d9ee1a996a28cc4601840a67831112695

Modified Files
--------------
src/backend/optimizer/path/allpaths.c | 42 +++++++++++++++++++++++++++++++----
src/backend/optimizer/plan/planner.c | 6 ++---
2 files changed, 40 insertions(+), 8 deletions(-)

I spotted a typo: s/unexpcted/unexpected/.

--
Thomas Munro
http://www.enterprisedb.com

Attachments:

typo.patchapplication/octet-stream; name=typo.patchDownload+1-1
#3Robert Haas
robertmhaas@gmail.com
In reply to: Thomas Munro (#2)
Re: pgsql: Set partitioned_rels appropriately when UNION ALL is used.

On Tue, Sep 19, 2017 at 7:59 PM, Thomas Munro
<thomas.munro@enterprisedb.com> wrote:

I spotted a typo: s/unexpcted/unexpected/.

Thnks! Commmitted yur paatch.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Compny

--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers