Commit 285610e9 authored by Tom Lane's avatar Tom Lane

Explain didn't handle inheritance correctly (it didn't

manipulate rtable the same way executor does).
parent 5f74d499
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* *
* Copyright (c) 1994-5, Regents of the University of California * Copyright (c) 1994-5, Regents of the University of California
* *
* $Id: explain.c,v 1.37 1999/05/25 16:08:23 momjian Exp $ * $Id: explain.c,v 1.38 1999/06/17 23:45:32 tgl Exp $
* *
*/ */
#include <stdio.h> #include <stdio.h>
...@@ -313,7 +313,6 @@ explain_outNode(StringInfo str, Plan *plan, int indent, ExplainState *es) ...@@ -313,7 +313,6 @@ explain_outNode(StringInfo str, Plan *plan, int indent, ExplainState *es)
{ {
ResTarget *rtentry; ResTarget *rtentry;
es->rtable = appendplan->inheritrtable;
rtentry = nth(whichplan, appendplan->inheritrtable); rtentry = nth(whichplan, appendplan->inheritrtable);
Assert(rtentry != NULL); Assert(rtentry != NULL);
rt_store(appendplan->inheritrelid, es->rtable, rtentry); rt_store(appendplan->inheritrelid, es->rtable, rtentry);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment