]> granicus.if.org Git - postgresql/commitdiff
Explain didn't handle inheritance correctly (it didn't
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 17 Jun 1999 23:45:32 +0000 (23:45 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 17 Jun 1999 23:45:32 +0000 (23:45 +0000)
manipulate rtable the same way executor does).

src/backend/commands/explain.c

index 66fcd8647b05ba821f5bd7f0de0c05a8da7e9817..dd83129be4bfb95ed28390afc55273c933bae3ee 100644 (file)
@@ -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);