Using Index to do sorting while using windowing function

From: Sameer Kumar <sameer(dot)kumar(at)ashnik(dot)com>
To: pgadmin-hackers(at)postgresql(dot)org
Subject: Using Index to do sorting while using windowing function
Date: 2013-10-23 14:40:11
Message-ID: CADp-Sm5F_iCJi_fa5nk==Njre4WXi=Ncs9-gO9redf+yce6Ofw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi,

I was dealing with windowing function recently. I feel they are pretty
useful and quite handy in lot of operations.

I am not sure why but my PostgreSQL does not seem to be using indexes for
ORDER BY clause or PARTITION BY CLAUSE which I use with windowing function.
I have tried ORDER BY and GROUP BY clauses in a normal sql statement and
they seem to use indexes nicely.

Is this being already considered for development?

Best Regards,
*Sameer Kumar | Database Consultant*
*ASHNIK PTE. LTD.
*101 Cecil Street, #11-11 Tong Eng Building, Singapore 069533
M : *+65 8110 0350* T: +65 6438 3504 | www.ashnik.com
www.facebook.com/ashnikbiz | www.twitter.com/ashnikbiz

[image: email patch]

This email may contain confidential, privileged or copyright material and
is solely for the use of the intended recipient(s).

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Sameer Kumar 2013-10-23 14:42:04 Re: Using Index to do sorting while using windowing function
Previous Message Ashesh Vashi 2013-10-23 07:09:57 PATCH: Improvement in the debugger support for EnterpriseDB <= 9.2