Skip site navigation (1) Skip section navigation (2)

Re: prepared statements & functions

From: "Jean-Yves F(dot) Barbier" <12ukwn(at)gmail(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: prepared statements & functions
Date: 2011-12-04 20:41:33
Message-ID: 20111204214133.287551ee@anubis.defcon1 (view raw or flat)
Thread:
Lists: pgsql-novice
On Sun, 4 Dec 2011 09:38:40 +0100
Andreas Kretschmer <akretschmer(at)spamfence(dot)net> wrote:

> > AFAI understand prepared statements they can accelerate
> > repetitive queries very much - but is it possible to 
> > prepare them from within a function (let say when the user
> > connects), and if so, will they be erased as soon as the
> > user disconnects?
> 
> We haven't TRIGGERs for events like 'USER LOGGED IN' or so ...

That was not my thinking; it was more like:
user connects
user calls the function
function creates prepared statements
user call other fun that uses these prepared statements

JY
-- 
War is menstruation envy.

In response to

Responses

pgsql-novice by date

Next:From: Lisibeth TroconisDate: 2011-12-04 22:03:38
Subject: problema con comando \c en el psql
Previous:From: Ioannis AnagnostopoulosDate: 2011-12-04 17:02:48
Subject: Re: Linux server connection process consumes all memory

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group