Gregory Stark | 1 Aug 2008 14:13
Favicon

Re: Fixing the representation of ORDER BY/GROUP BY/DISTINCT

"Tom Lane" <tgl <at> sss.pgh.pa.us> writes:

> typedef struct SortGroupClause
> {
>     NodeTag     type;
>     Index       tleSortGroupRef;    /* reference into targetlist */
>     Oid         eqop;               /* the equality operator ('=' op) */
>     Oid         sortop;             /* the ordering operator ('<' op), or 0 */
>     bool        nulls_first;        /* do NULLs come before normal values? */
> } SortGroupClause;

So ASC/DESC is represented by using > for sortop? 

-- 
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com
  Ask me about EnterpriseDB's On-Demand Production Tuning

--

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers <at> postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers


Gmane