pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedAny body know --- 'sql query where condition execution plan'
2+ messages / 2 participants
[nested] [flat]
* Any body know --- 'sql query where condition execution plan'
@ 2002-01-22 03:59 raja kumar thatte <trajakumar@yahoo.com>
2002-01-22 04:49 ` Re: Any body know --- 'sql query where condition execution plan' Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 2+ messages in thread
From: raja kumar thatte @ 2002-01-22 03:59 UTC (permalink / raw)
To: pgsql-admin
Hai every body,
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.
Thanks in advance.
c u
raja
---------------------------------
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Any body know --- 'sql query where condition execution plan'
2002-01-22 03:59 Any body know --- 'sql query where condition execution plan' raja kumar thatte <trajakumar@yahoo.com>
@ 2002-01-22 04:49 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2002-01-22 04:49 UTC (permalink / raw)
To: raja kumar thatte <trajakumar@yahoo.com>; +Cc: pgsql-admin
raja kumar thatte <trajakumar@yahoo.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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2002-01-22 04:49 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-01-22 03:59 Any body know --- 'sql query where condition execution plan' raja kumar thatte <trajakumar@yahoo.com>
2002-01-22 04:49 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox