Re: Query optimizer & prepared statements

From: Emanuel Calvo Franco <postgres(dot)arg(at)gmail(dot)com>
To: Jack Orenstein <jack(dot)orenstein(at)hds(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Query optimizer & prepared statements
Date: 2009-06-23 20:43:49
Message-ID: f205bb120906231343y1e6d5c32kd490fe6ac5f2ca9b@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

>
>    select ...
>    from T
>    where x > $1
>

prepare testy_prepare(int) as select * from T where x = $1;

execute testy_prepare(4);

Follow the docs :)
http://www.postgresql.org/docs/8.1/interactive/sql-prepare.html

--
Emanuel Calvo Franco
ArPUG [www.arpug.com.ar] / AOSUG Member
www.emanuelcalvofranco.com.ar

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bill Moran 2009-06-23 20:59:33 Re: Controlling proliferation of postgres.exe processes
Previous Message Radcon Entec 2009-06-23 20:40:43 Controlling proliferation of postgres.exe processes