From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | raja kumar thatte <trajakumar(at)yahoo(dot)com> |
Cc: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: Any body know --- 'sql query where condition execution plan' |
Date: | 2002-01-22 04:49:25 |
Message-ID: | 12907.1011674965@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
raja kumar thatte <trajakumar(at)yahoo(dot)com> writes:
> I want to know how the--where condition--is executed in a sql query.
> e.g., select aa,bb,cc from ttt where aa=100 and bb = 200 and cc =300.
> my doubt is , will psql leave the record as on when it fails to satisfy a record having aa !=100
> or will it chect for bb = 200 and cc = 300 also.
> ie will it work like C-language if condition or not.
> If i give paranthesis, will it change the execution plan accordingly.
The planner will make its own decisions about which query plan to
follow; it's quite impervious to parentheses, clause order, or any
other semantically-insignificant details in the WHERE clause.
You may care to read the chapter on performance tips in the User's
Guide.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Dong Meng | 2002-01-22 06:09:07 | A question about PG Authorization |
Previous Message | raja kumar thatte | 2002-01-22 03:59:09 | Any body know --- 'sql query where condition execution plan' |