Are SQL functions better than PG/SQL ones?

From: "Vitaly Belman" <vitalyb(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Are SQL functions better than PG/SQL ones?
Date: 2004-07-10 10:57:12
Message-ID: ccoi28$imu@odah37.prod.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I ready somewhere that PostgreSQL is able to optimize SQL functions,
the same way it does with views. For example if you do:

select * from cv_customers() order by customer_id;

When customers is an SQL function the optimizer/planner will be able to
actually use the customer_id index.

>From some tests I made it doesn't seem true.. Yet I am asking to know
for sure.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tomaž Borštnar 2004-07-10 11:35:12 Re: Client lib compatibility v. 7.2, 7.3 and 7.4
Previous Message zuhans@iname.com 2004-07-10 10:22:42 Re: win32 port