From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "Henrik Steffen" <steffen(at)city-map(dot)de> |
Cc: | "pg" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Serious Crash last Friday |
Date: | 2002-07-11 07:00:33 |
Message-ID: | 14758.1026370833@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
"Henrik Steffen" <steffen(at)city-map(dot)de> writes:
> yes, you are right 16584 is the oid of the table altseiten, but the
> reltoastidxid is still 0.
Oh, my mistake --- you have to look at the toast table identified by
reltoastrelid, and then its reltoastidxid fingers the index. For
example:
test72=# create table foo (t text);
CREATE
test72=# select oid,relname,relkind,reltoastrelid,reltoastidxid from pg_class order by oid desc limit 5;
oid | relname | relkind | reltoastrelid | reltoastidxid
--------+---------------------+---------+---------------+---------------
812033 | pg_toast_812029_idx | i | 0 | 0
812031 | pg_toast_812029 | t | 0 | 812033
812029 | foo | r | 812031 | 0
812026 | manufacturer_z_key | i | 0 | 0
812024 | manufacturer | r | 0 | 0
(5 rows)
Here, foo is the base table, pg_toast_812029 is its toast table,
pg_toast_812029_idx is the index.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | frbn | 2002-07-11 07:09:40 | Re: XML to Postgres conversion |
Previous Message | Henrik Steffen | 2002-07-11 06:56:09 | Re: Serious Crash last Friday |