pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedUsing temp tables
2+ messages / 2 participants
[nested] [flat]
* Using temp tables
@ 2003-07-18 08:23 Andreas Schmitz <a.schmitz@cityweb.de>
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Schmitz @ 2003-07-18 08:23 UTC (permalink / raw)
To: pgsql-admin
Hello *,
we started the use of temporary tables for evaluating data.
create temp table xxx ....
<evaluationcode>
drop temp table xxx;
We encountered some strange errors about relation exists or even does not
exist from server and application site. I started to look after orphan temp
tables. No orphans were left but I found namespace entries in pg_namespace.
select * from pg_namespace;
nspname | nspowner | nspacl
------------+----------+--------
pg_catalog | 1 | {=U}
pg_toast | 1 | {=}
public | 1 | {=UC}
pg_temp_1 | 1 |
pg_temp_8 | 1 |
pg_temp_11 | 1 |
pg_temp_10 | 1 |
pg_temp_6 | 1 |
pg_temp_4 | 1 |
pg_temp_3 | 1 |
pg_temp_14 | 1 |
pg_temp_2 | 1 |
pg_temp_5 | 1 |
pg_temp_12 | 1 |
(14 rows)
I did a vacuum full and analyze but this pg_temp namespaces are still there.
Any ideas about that phenomena ?
best regards
-Andreas Schmitz
--
Andreas Schmitz - Phone +49 201 8501 318
Cityweb-Technik-Service-Gesellschaft mbH
Friedrichstr. 12 - Fax +49 201 8501 104
45128 Essen - email a.schmitz@cityweb.de
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Using temp tables
@ 2003-07-18 13:36 Tom Lane <tgl@sss.pgh.pa.us>
parent: Andreas Schmitz <a.schmitz@cityweb.de>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2003-07-18 13:36 UTC (permalink / raw)
To: a.schmitz@cityweb.de; +Cc: pgsql-admin
Andreas Schmitz <a.schmitz@cityweb.de> writes:
> I did a vacuum full and analyze but this pg_temp namespaces are still there.
> Any ideas about that phenomena ?
They're supposed to be there; we recycle the pg_namespace entry across
successive backend sessions. I see no point in deleting it only to have
to make it again in a later session.
regards, tom lane
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2003-07-18 13:36 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-07-18 08:23 Using temp tables Andreas Schmitz <a.schmitz@cityweb.de>
2003-07-18 13:36 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox