Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Committers > pgsql: Fix pars...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 17004 of 17070
Post > Topic >>

pgsql: Fix parser so that we don't modify the user-written ORDER BY list

by tgl@[EMAIL PROTECTED] (Tom Lane) Jul 31, 2008 at 10:47 PM

Log Message:
-----------
Fix parser so that we don't modify the user-written ORDER BY list in order
to represent DISTINCT or DISTINCT ON.  This gets rid of a longstanding
annoyance that a view or rule using SELECT DISTINCT will be dumped out
with an overspecified ORDER BY list, and is one small step along the way
to decoupling DISTINCT and ORDER BY enough so that hash-based
implementation
of DISTINCT will be possible.  In passing, improve transformDistinctClause
so that it doesn't reject duplicate DISTINCT ON items, as was re****ted by
Steve Midgley a couple weeks ago.

Modified Files:
--------------
    pgsql/src/backend/optimizer/plan:
        planmain.c (r1.106 -> r1.107)
       
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/plan/planmain.c?r1=1.106&r2=1.107)
        planner.c (r1.234 -> r1.235)
       
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/plan/planner.c?r1=1.234&r2=1.235)
    pgsql/src/backend/optimizer/prep:
        prepunion.c (r1.147 -> r1.148)
       
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/prep/prepunion.c?r1=1.147&r2=1.148)
    pgsql/src/backend/parser:
        analyze.c (r1.373 -> r1.374)
       
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/parser/analyze.c?r1=1.373&r2=1.374)
        parse_clause.c (r1.170 -> r1.171)
       
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/parser/parse_clause.c?r1=1.170&r2=1.171)
    pgsql/src/include/nodes:
        parsenodes.h (r1.368 -> r1.369)
       
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/nodes/parsenodes.h?r1=1.368&r2=1.369)
    pgsql/src/include/parser:
        parse_clause.h (r1.49 -> r1.50)
       
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/parser/parse_clause.h?r1=1.49&r2=1.50)

-- 
Sent via pgsql-committers mailing list (pgsql-committers@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
 




 1 Posts in Topic:
pgsql: Fix parser so that we don't modify the user-written ORDER
tgl@[EMAIL PROTECTED] (T  2008-07-31 22:47:56 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Aug 21 17:41:09 CDT 2008.