Skip site navigation (1) Skip section navigation (2)

Re: How to correlate an index relname to it's table

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: Kevin Kempter <kevin(at)kevinkempterllc(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: How to correlate an index relname to it's table
Date: 2007-11-20 17:54:06
Message-ID: 20071120095406.1d5f8611@commandprompt.com (view raw or flat)
Thread:
Lists: pgsql-admin
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 20 Nov 2007 10:48:18 -0700
Kevin Kempter <kevin(at)kevinkempterllc(dot)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-----

In response to

pgsql-admin by date

Next:From: Kazufumi AraiDate: 2007-11-21 08:29:08
Subject: Someone let me get instruction to remove service of postgreSQL database server
Previous:From: Kevin KempterDate: 2007-11-20 17:48:18
Subject: How to correlate an index relname to it's table

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group