Skip to content

Commit 285610e

Browse files
committed
Explain didn't handle inheritance correctly (it didn't
manipulate rtable the same way executor does).
1 parent 5f74d49 commit 285610e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/backend/commands/explain.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Copyright (c) 1994-5, Regents of the University of California
66
*
7-
* $Id: explain.c,v 1.37 1999/05/25 16:08:23 momjian Exp $
7+
* $Id: explain.c,v 1.38 1999/06/17 23:45:32 tgl Exp $
88
*
99
*/
1010
#include <stdio.h>
@@ -313,7 +313,6 @@ explain_outNode(StringInfo str, Plan *plan, int indent, ExplainState *es)
313313
{
314314
ResTarget *rtentry;
315315

316-
es->rtable = appendplan->inheritrtable;
317316
rtentry = nth(whichplan, appendplan->inheritrtable);
318317
Assert(rtentry != NULL);
319318
rt_store(appendplan->inheritrelid, es->rtable, rtentry);

0 commit comments

Comments
 (0)