From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Francisco J Reyes <fran(at)natserv(dot)net> |
Cc: | Neil Conway <neilc(at)samurai(dot)com>, Ericson Smith <eric(at)did-it(dot)com>, Postgresql General <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: 7.3 Prepared statements |
Date: | 2003-01-03 03:09:14 |
Message-ID: | 200301030309.h0339E705789@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-jdbc |
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(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2003-01-03 03:09:53 | Re: missing 7.3.1 pg_hba.conf examples |
Previous Message | Stephan Szabo | 2003-01-03 02:59:41 | Re: Problem with boolean WHERE-clause |
From | Date | Subject | |
---|---|---|---|
Next Message | Charles H. Woloszynski | 2003-01-03 04:18:02 | Re: 7.3 Prepared statements |
Previous Message | Chris Cox | 2003-01-03 01:15:31 | _aclitem and aclitem in JDBC driver? |