pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Papp Gyozo <pgerzson@freestart.hu>
To: esaracco@noos.fr
To: pgsql-php@postgresql.org
Subject: Re: temp tables and pg_pconnect()
Date: Sat, 13 Oct 2001 21:04:00 +0200
Message-ID: <002b01c15419$d1b4fee0$01fdfea9@jaguar> (raw)
References: <3BC8767C.4080606@noos.fr>

I'm afraid you can't save your temp tables if you use pg_connect,
because the connection opened by pg_connect automagically closed
on the end of the script. So connection closed and temp tables
will be dropped.

----- Original Message -----
From: "Emmanuel SARACCO" <esaracco@noos.fr>
To: <pgsql-php@postgresql.org>
Sent: Saturday, October 13, 2001 7:14 PM
Subject: [PHP] temp tables and pg_pconnect()


> hi,
>
> I am using temp tables in stored procedures (I just can not create
> normal tables because I must retreive values from those tables in those
> stored procedures with the "execute" instruction).
>
> doing connexions with pg_connect()/pg_close() on each php page all work
> fine, but when I try to use pg_pconnect() (wich is much more efficient!)
> temp table are not detroyed...
>
> how can I use pg_connect() and continue using temp tables in stored
> procedures?
>
> thanks
>
>
> --
> Emmanuel SARACCO
> Email: esaracco@noos.fr
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster







view thread (6+ messages)  latest in thread

Message-ID: <002b01c15419$d1b4fee0$01fdfea9@jaguar>
Permalink:  ../002b01c15419$d1b4fee0$01fdfea9@jaguar/
Also on:    postgresql.org/message-id/002b01c15419$d1b4fee0$01fdfea9@jaguar

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: pgerzson@freestart.hu, esaracco@noos.fr
  Subject: Re: temp tables and pg_pconnect()
  In-Reply-To: <002b01c15419$d1b4fee0$01fdfea9@jaguar>
  References: <3BC8767C.4080606@noos.fr> <002b01c15419$d1b4fee0$01fdfea9@jaguar>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox