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

Re: prepared statements & functions

From: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: prepared statements & functions
Date: 2011-12-05 17:16:44
Message-ID: 20111205171644.GA23368@tux (view raw, whole thread or download thread mbox)
Lists: pgsql-novice
Jean-Yves F. Barbier <12ukwn(at)gmail(dot)com> wrote:

> 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

Okay, i think, that should be possible.

Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."   (unknown)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°

In response to


pgsql-novice by date

Next:From: Merlin MoncureDate: 2011-12-05 17:52:23
Subject: Re: prepared statements & functions
Previous:From: Alan HodgsonDate: 2011-12-05 16:23:55
Subject: Re: Linux server connection process consumes all memory

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