column names from temporary tables

From: "Kabai Jzsef" <kabai(at)audiobox(dot)hu>
To: <pgsql-general(at)postgresql(dot)org>
Subject: column names from temporary tables
Date: 2002-11-08 14:16:39
Message-ID: 02d501c28731$78c77500$6b01a8c0@audiobox.hu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi All,
I know how to get column names from tables:

select attname from pg_attribute where attrelid=(select oid from
pg_class where relname='table1');

but it does not work for temporary tables, because when creating it gets a system name like 'pg_temp_6410_1'

Is there any solution for it?
Thanks, Joseph

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andrei Ivanov 2002-11-08 14:35:07 Re: PostgreSQL v7.3b5 Packaged for Testing ...
Previous Message Marc G. Fournier 2002-11-08 13:59:26 PostgreSQL v7.3b5 Packaged for Testing ...