diff options
author | Bruce Momjian <bruce@momjian.us> | 1999-08-09 06:20:27 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1999-08-09 06:20:27 +0000 |
commit | 158fd5f1c4ab70f6db388e2bc7f4467b63d85457 (patch) | |
tree | 7981105018fe9d0af5fb83f1ce367b570786c3ce /src/backend/commands/explain.c | |
parent | 5efe31214a6dff5c8fa06568d727bbf1f3e04a03 (diff) | |
download | postgresql-158fd5f1c4ab70f6db388e2bc7f4467b63d85457.tar.gz postgresql-158fd5f1c4ab70f6db388e2bc7f4467b63d85457.zip |
> > Prevent sorting if result is already sorted
> >
> > was implemented by Jan Wieck.
> > His work is for ascending order cases.
> >
> > Here is a patch to prevent sorting also in descending
> > order cases.
> > Because I had already changed _bt_first() to position
> > backward correctly before v6.5,this patch would work.
> >
Hiroshi Inoue
Inoue@tpf.co.jp
Diffstat (limited to 'src/backend/commands/explain.c')
-rw-r--r-- | src/backend/commands/explain.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/backend/commands/explain.c b/src/backend/commands/explain.c index 460fdcc1f91..31a8d9d3679 100644 --- a/src/backend/commands/explain.c +++ b/src/backend/commands/explain.c @@ -4,7 +4,7 @@ * * Copyright (c) 1994-5, Regents of the University of California * - * $Id: explain.c,v 1.43 1999/07/17 20:16:52 momjian Exp $ + * $Id: explain.c,v 1.44 1999/08/09 06:20:21 momjian Exp $ * */ @@ -200,6 +200,8 @@ explain_outNode(StringInfo str, Plan *plan, int indent, ExplainState *es) switch (nodeTag(plan)) { case T_IndexScan: + if (ScanDirectionIsBackward(((IndexScan *)plan)->indxorderdir)) + appendStringInfo(str, " Backward"); appendStringInfo(str, " using "); i = 0; foreach(l, ((IndexScan *) plan)->indxid) |