Re: Strange error related to temporary tables

From: Csaba Nagy <nagy(at)ecircle-ag(dot)com>
To: Postgres general mailing list <pgsql-general(at)postgresql(dot)org>
Subject: Re: Strange error related to temporary tables
Date: 2006-09-01 14:41:00
Message-ID: 1157121660.3033.109.camel@coppola.muc.ecircle.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> Is this xmin quite a bit older than what you get for a freshly-created
> temp table?

I would say yes, this is a test system which is highly stressed from
time to time, but does not get continuous load.

test03=> select oid, xmin from pg_type where typname = 'temp_report';
oid | xmin
----------+-----------
58293995 | 220215039
(1 row)

test03=> create temp table test_new_temp_table (a text);
CREATE TABLE
test03=> select xmin from pg_type where typname = 'test_new_temp_table';
xmin
-----------
236080536
(1 row)

> Can you find any entries in pg_depend that show the above
> OID as either objid or refobjid?

No:

test03=> select * from pg_depend where objid = 58293995 or refobjid =
58293995;
classid | objid | objsubid | refclassid | refobjid | refobjsubid |
deptype
---------+-------+----------+------------+----------+-------------+---------
(0 rows)

> Also, it's fairly likely (not certain) that the table associated with
> this pg_type entry had OID one less, ie 58293994. Can you find any
> trace of that OID in pg_depend,

No trace. I executed:

test03=> select count(*) from pg_depend where classid between 58293995 -
100 and 58293995 + 100;
count
-------
0
(1 row)

... and then with each of (objid objsubid refclassid refobjid
refobjsubid deptype) instead of classid, with the same result.

> ... or in pg_class for that matter?

test03=> select count(*) from pg_class where oid between 58293995 - 100
and 58293995 + 100;
count
-------
0
(1 row)

Any other place to check ?

Cheers,
Csaba.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2006-09-01 14:53:58 Re: Insert Rule
Previous Message Bricklen Anderson 2006-09-01 14:39:45 Re: [pgsql-advocacy] Thought provoking piece on NetBSD