Temp tables

From: "Pascal Tufenkji" <ptufenkji(at)usj(dot)edu(dot)lb>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Temp tables
Date: 2013-05-23 07:24:17
Message-ID: 008f01ce5786$8a6f57b0$9f4e0710$@usj.edu.lb
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

To enhance the performance of the queries, I use temp tables in my website
reports.

It seems that a temp table has not been dropped automatically in a certain
session, and now the report is giving an error since the temp table already
exists ?!

When I type the following, the database gives me an error:

dragon=# CREATE TEMP TABLE _parcours (id int);

ERROR: type "_parcours" already exists

1. How can I identify the session in which the temp table is still
locked, so I can drop it manually

2. Why does those cases happen and the temp tables don’t drop
automatically

I’d appreciate a quick reply

Thanks in advance

Pascal TUFENKJI
Service de Technologie de l'Information
Université Saint-Joseph - Rectorat
Tel: +961 1 421 132
Email: <mailto:ptufenkji(at)usj(dot)edu(dot)lb> ptufenkji(at)usj(dot)edu(dot)lb

Responses

Browse pgsql-general by date

  From Date Subject
Next Message TJ 2013-05-23 07:55:28 Re: [pgeu-general] Replication failover
Previous Message Dev Kumkar 2013-05-23 07:14:31 Re: [ODBC] ODBC constructs