Re: Temporary Tables

From: Scott Marlowe <smarlowe(at)g2switchworks(dot)com>
To: Anjan Dave <adave(at)vantage(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Temporary Tables
Date: 2005-06-20 16:03:49
Message-ID: 1119283429.3382.114.camel@state.g2switchworks.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Mon, 2005-06-20 at 10:20, Anjan Dave wrote:
> Hi,
>
>
>
> A developer is trying to use a Temporary Table via the java based
> application. The problem is following the temp table creation, he
> wants subsequent queries to query the temp table, but they are not in
> the same database session as the temp table. Is this something I can
> setup somewhere in the config? I would appreciate any pointers/info I
> can forward to him.

His usage suggests he should be using a regular table, possibly with
some kind of clean up / setup user defined functions associated with it.

The whole idea of temporary tables is that they allow you to write a
single client that declares a single table by name, and then you can run
that client any number of times, and each will not interfere with the
other. Generally, trying to share temp tables across different backends
is a bad idea, since the original session that created it might exit and
it would cease to be.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message gayatri ganpaa 2005-06-21 06:09:36 varying pagesize in postgresql
Previous Message Anjan Dave 2005-06-20 15:20:42 Temporary Tables