Temporary Views or tables

From: Sumeet <asumeet(at)gmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Temporary Views or tables
Date: 2006-08-28 14:29:20
Message-ID: 7539aebb0608280729g7094affkeac9594c828f56d2@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi all,

I'm trying to use temporary views in my application, before i proceed and go
ahead for creating the temorary view i would like more abt it.
1) when is the temporary view automatically deleted. Is it after we close
the connection or when the session ends....for.e.g my website doesnt
use a persistant connection to my postgres server and it queries and then
disconnects from the db server. In one of such connections...if i create a
temporary view
will this temp view be visible to me after multiple disconnects and
connects ????
2) Is the view approach faster then creating temporary tables??? (and the
same question as abovew for temp. tables.)
3) If there are multiple users who connect to my website at the same time
and create temporary views or tables with the same name would there be any
overlapping or such???

--
Thanks,
Sumeet.

Browse pgsql-sql by date

  From Date Subject
Next Message Michael Fuhr 2006-08-28 14:57:38 Re: Trigger on Insert to Update only newly inserted fields?
Previous Message Alvaro Herrera 2006-08-28 14:27:31 Re: Create Assertion -- Question from a newbie