Re: Which is faster SQL or PL/PGSQL

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Joe Conway <mail(at)joeconway(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Which is faster SQL or PL/PGSQL
Date: 2003-10-20 19:00:31
Message-ID: 200310201200.31857.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Joe,

> Never tried it, but is it possible to use a prepared statement inside a
> PL/pgSQL function? In any case, you can in other PLs. And with library
> preloading (starting in 7.4), the first call to other PLs is similar to
> that of PL/pgSQL. See:
> http://archives.postgresql.org/pgsql-patches/2003-07/msg00239.php

Not sure how useful it would be in my case; I'm using EXECUTE because I'm
building a dynamic query based on user input, so the query plans would need
to vary radically from run to run.

--
-Josh Berkus
Aglio Database Solutions
San Francisco

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message weigelt 2003-10-20 19:05:31 Re: [postgres] Deutsche PostgreSQL-Mailingliste unter postgresql.org
Previous Message Joe Conway 2003-10-20 18:54:42 Re: Which is faster SQL or PL/PGSQL