Re: Assigning fixed OIDs to system catalogs and indexes - Mailing list pgsql-hackers

From Qingqing Zhou
Subject Re: Assigning fixed OIDs to system catalogs and indexes
Date
Msg-id d3hv51$v97$1@news.hub.org
Whole thread Raw
In response to Assigning fixed OIDs to system catalogs and indexes  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Assigning fixed OIDs to system catalogs and indexes
List pgsql-hackers
"Christopher Kings-Lynne" <chriskl@familyhealth.com.au> writes
> Is it possible to cluster system tables?
>

Ooops, I guess I mixed two concepts - oid and relfilenode. Those operations
change relfilenode but not oids. I don't think we could cluster system
tables.

template1=# select oid, relfilenode from pg_class where relname =
'pg_attribute_
relid_attnam_index'; oid  | relfilenode
-------+-------------16688 |       17239
(1 row)

template1=# reindex table pg_attribute;
REINDEX
template1=# select oid, relfilenode from pg_class where relname =
'pg_attribute_
relid_attnam_index'; oid  | relfilenode
-------+-------------16688 |       17241
(1 row)

template1=# cluster pg_attribute_relid_attnam_index on pg_attribute;
ERROR:  "pg_attribute" is a system catalog

Regards,
Qingqing




pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Assigning fixed OIDs to system catalogs and indexes
Next
From: Tom Lane
Date:
Subject: Re: Assigning fixed OIDs to system catalogs and indexes