Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 771BD9FC017 for ; Tue, 23 Oct 2007 11:26:09 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 50155-02 for ; Tue, 23 Oct 2007 11:26:04 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 90A539FC5C0 for ; Tue, 23 Oct 2007 11:25:39 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id l9NEPa8x010794; Tue, 23 Oct 2007 10:25:36 -0400 (EDT) To: "Patrick De Zlio" cc: pgsql-admin@postgresql.org Subject: Re: How to find the link between a table and her indexes?? In-reply-to: <58729a240710230630t1d7c9d83r59531526a31ed72@mail.gmail.com> References: <58729a240710230630t1d7c9d83r59531526a31ed72@mail.gmail.com> Comments: In-reply-to "Patrick De Zlio" message dated "Tue, 23 Oct 2007 15:30:47 +0200" Date: Tue, 23 Oct 2007 10:25:36 -0400 Message-ID: <10793.1193149536@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/219 X-Sequence-Number: 27133 "Patrick De Zlio" writes: > The relfilenode is 16542. Looking this relfilenode in the pg_index table as > indrelid: > select * from pg_index where indrelid = 16542 The key is OID, not relfilenode. See the system catalog documentation. regards, tom lane