pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Patrick De Zlio <pchemla01@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: How to find the link between a table and her indexes??
Date: Tue, 23 Oct 2007 10:25:36 -0400
Message-ID: <10793.1193149536@sss.pgh.pa.us> (raw)
In-Reply-To: <58729a240710230630t1d7c9d83r59531526a31ed72@mail.gmail.com>
References: <58729a240710230630t1d7c9d83r59531526a31ed72@mail.gmail.com>

"Patrick De Zlio" <pchemla01@gmail.com> 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



view thread (2+ messages)

Message-ID: <10793.1193149536@sss.pgh.pa.us>
Permalink:  ../10793.1193149536@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/10793.1193149536@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pchemla01@gmail.com
  Subject: Re: How to find the link between a table and her indexes??
  In-Reply-To: <10793.1193149536@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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