Re: Fixing the representation of ORDER BY/GROUP BY/DISTINCT - Mailing list pgsql-hackers

From Gregory Stark
Subject Re: Fixing the representation of ORDER BY/GROUP BY/DISTINCT
Date
Msg-id 87ljzhgcg7.fsf@oxford.xeocode.com
Whole thread Raw
In response to Fixing the representation of ORDER BY/GROUP BY/DISTINCT  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Fixing the representation of ORDER BY/GROUP BY/DISTINCT  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
"Tom Lane" <tgl@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


pgsql-hackers by date:

Previous
From: Gregory Stark
Date:
Subject: Re: Fixing the representation of ORDER BY/GROUP BY/DISTINCT
Next
From: Alvaro Herrera
Date:
Subject: Re: Review: DTrace probes (merged version) ver_03