Explain didn't handle inheritance correctly (it didn't
manipulate rtable the same way executor does).
This commit is contained in:
parent
5f74d499bf
commit
285610e9ea
@ -4,7 +4,7 @@
|
||||
*
|
||||
* 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>
|
||||
@ -313,7 +313,6 @@ explain_outNode(StringInfo str, Plan *plan, int indent, ExplainState *es)
|
||||
{
|
||||
ResTarget *rtentry;
|
||||
|
||||
es->rtable = appendplan->inheritrtable;
|
||||
rtentry = nth(whichplan, appendplan->inheritrtable);
|
||||
Assert(rtentry != NULL);
|
||||
rt_store(appendplan->inheritrelid, es->rtable, rtentry);
|
||||
|
Loading…
x
Reference in New Issue
Block a user