Re: Creating temporary table

From: "PG Explorer" <pgmail(at)pgexplorer(dot)com>
To: "Uros Gruber" <uros(dot)gruber(at)sir-mag(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: Creating temporary table
Date: 2002-04-02 19:23:19
Message-ID: 001701c1da7b$da4b8720$c80ba8c0@sabex.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Temp tables are only valid within the current session.
As soon as the session ends the table is dropped.

That is as soon as the use that is logged on to the database disconnects or
closes its connection

Thus, yes, it will be available when the function ends but the connection
must not close.
Beware of using temp tables in PHP, as soon as the PHP page finishes the
temp table will be gone.

http://www.pgexplorer.com
PostgresSQL Windows Frontend

----- Original Message -----
From: "Uros Gruber" <uros(dot)gruber(at)sir-mag(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Sent: Saturday, March 30, 2002 12:34 AM
Subject: [GENERAL] Creating temporary table

> Hi!
>
> I want to make some SQL function, wich gets some data for
> example 4 rows, if i want to return this data back i think
> that i have put this data into temp table and then read this.
>
> Now i have 2 questions, How long this temporary table exist,
> will be avaliable after function ends or i have to use begin
> to start session and then end when i get this data.
>
> Or is there any other way to do this.
>
>
> --
> bye
> Uros mailto:uros(dot)gruber(at)sir-mag(dot)com
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jan Wieck 2002-04-02 19:34:12 Re: %ROWTYPE as PL/pgsql argument
Previous Message Stephan Szabo 2002-04-02 19:08:54 Re: Why are selects so slow on large tables, even when