mirror of
https://github.com/postgres/postgres.git
synced 2025-07-08 11:42:09 +03:00
> > 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
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: outfuncs.c,v 1.91 1999/07/24 23:21:07 tgl Exp $
|
||||
* $Id: outfuncs.c,v 1.92 1999/08/09 06:20:24 momjian Exp $
|
||||
*
|
||||
* NOTES
|
||||
* Every (plan) node in POSTGRES has an associated "out" routine which
|
||||
@ -445,6 +445,7 @@ _outIndexScan(StringInfo str, IndexScan *node)
|
||||
appendStringInfo(str, " :indxqualorig ");
|
||||
_outNode(str, node->indxqualorig);
|
||||
|
||||
appendStringInfo(str, " :indxorderdir %d ", node->indxorderdir);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user