From: Joshua D. Drake <jd@commandprompt.com>
To: Kevin Kempter <kevin@kevinkempterllc.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: How to correlate an index relname to it's table
Date: Tue, 20 Nov 2007 09:54:06 -0800
Message-ID: <20071120095406.1d5f8611@commandprompt.com> (raw)
In-Reply-To: <200711201048.19164.kevin@kevinkempterllc.com>
References: <200711201048.19164.kevin@kevinkempterllc.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tue, 20 Nov 2007 10:48:18 -0700
Kevin Kempter <kevin@kevinkempterllc.com> wrote:
> Hi List;
>
> I've got an index name in pg_class and I want to figure out which
> table it belongs to, any suggestions?
>
Well you can get the name from pg_indexes as well as the schemaname,
tablename and indexname :)
Sincerely,
Joshua D. Drake
>
> Thanks in advance
>
>
> /Kevin
>
>
> ---------------------------(end of
> broadcast)--------------------------- TIP 9: In versions below 8.0,
> the planner will ignore your desire to choose an index scan if your
> joining column's datatypes do not match
>
- --
=== The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 24x7/Emergency: +1.800.492.2240
PostgreSQL solutions since 1997 http://www.commandprompt.com/
UNIQUE NOT NULL
Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
PostgreSQL Replication: http://www.commandprompt.com/products/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFHQx8+ATb/zqfZUUQRAsDAAJ9nLHGejnPjfkSkvFvuswsJaP44ygCfRjeV
leWQAhiLAnKaO7Pzjjnx8ZA=
=9HCE
-----END PGP SIGNATURE-----
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: jd@commandprompt.com, kevin@kevinkempterllc.com
Subject: Re: How to correlate an index relname to it's table
In-Reply-To: <20071120095406.1d5f8611@commandprompt.com>
* 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