Re: 7.3 Prepared statements

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: 7.3 Prepared statements
Дата
Msg-id 200301030309.h0339E705789@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: 7.3 Prepared statements  (Francisco J Reyes <fran@natserv.net>)
Список pgsql-general
A view is just syntaxic sugar added to a query that references the view.
A preparted statement actually saves the execution plan for repeated
execution.

---------------------------------------------------------------------------

Francisco J Reyes wrote:
> On 17 Dec 2002, Neil Conway wrote:
>
> > On Tue, 2002-12-17 at 10:19, Ericson Smith wrote:
> > > 1. What is the lifetime of the plan created?
> >
> > >From the PREPARE reference page:
> >
> > Prepared queries are stored locally (in the current backend), and only
> > exist for the duration of the current database session.
>
> What is the difference/advantage between a prepared query and a view?
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

В списке pgsql-general по дате отправления:

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: Problem with boolean WHERE-clause
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: missing 7.3.1 pg_hba.conf examples