Re: Temp table exists test??

From: Michael Guerin <guerin(at)rentec(dot)com>
To: Michael Fuhr <mike(at)fuhr(dot)org>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Temp table exists test??
Date: 2005-02-04 04:16:51
Message-ID: 4202F733.8040600@rentec.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice


>If you don't care whether the table is temporary or not then you
>could simply test if it's visible:
>
>SELECT *
>FROM pg_class
>WHERE relname = 'foo'
> AND relkind = 'r'
> AND pg_table_is_visible(oid);
>
>
>
Ignore my last post that pg_table_is_visible didn't work, I created the
table but forgot the keyword temp :( .. Guess its time for me to goto bed.

This is exactly what I'm looking for.

Thanks
Michael

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message John DeSoi 2005-02-04 07:02:19 Re: Installation tool
Previous Message Michael Guerin 2005-02-04 04:10:40 Re: Temp table exists test??