Re: Check the existance of temporary table

From: "Martin Gainty" <mgainty(at)hotmail(dot)com>
To: <dfx(at)dfx(dot)it>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: Check the existance of temporary table
Date: 2007-03-25 14:04:26
Message-ID: BAY133-DAV980F324FFC1159F12BBF7AE680@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Domenico-

Assuming your schema will be pg_temp_1
vi InitialTableDisplayStatements.sql
select * from pg_tables where pg_namespace = 'pg_temp1';

/usr/local/pgsql/bin/psql -f InitialTableDisplayStatements.sql -U username -h dbname -p Port > db.out

then write a quick java app to parse the db.out contents for 'Temp'

Ciao-
M--
---------------------------------------------------------------------------
This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited.
---------------------------------------------------------------------------
Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire.
----- Original Message -----
From: "dfx" <dfx(at)dfx(dot)it>
To: <pgsql-general(at)postgresql(dot)org>
Sent: Sunday, March 25, 2007 8:32 AM
Subject: [GENERAL] Check the existance of temporary table

> Dear Sirs,
>
> how I can check the existance of temporary table?
> I.e. wich query I have to use to know if MY_TEMP_TABLE exists?
>
> IF EXISTS(??? query ???) THEN
>
> Thank you in advance
>
> Domenico
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Martin Gainty 2007-03-25 14:43:03 Re: Lifecycle of PostgreSQL releases
Previous Message Magnus Hagander 2007-03-25 13:30:34 Re: postgres error message upon boot