Re: Temporary table visibility

From: ptjm(at)interlog(dot)com (Patrick TJ McPhee)
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Temporary table visibility
Date: 2006-01-26 04:15:18
Message-ID: 43r0mmF1ou1a7U1@uni-berlin.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

In article <3C91F9B7-398C-464F-A5F1-C6A790DC1CC7(at)lumison(dot)net>,
James Croft <james(dot)croft(at)lumison(dot)net> wrote:

[given a bunch of temporary tables called session_data]

% How can I determine if one of the above relations is a temporary
% table in the current session (one of them, the first in ns 2200, is a
% normal permanent table)?

If there's data in the table, you could "select tableoid from session_data
limit 1", then check the namespace corresponding to that table.
--

Patrick TJ McPhee
North York Canada
ptjm(at)interlog(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Chris Velevitch 2006-01-26 06:17:51 Which table(s) in the catalog define the tables and views?
Previous Message Michael Fuhr 2006-01-26 03:52:09 Re: Trigger question: ROW or STATEMENT?