pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedunknown index
3+ messages / 3 participants
[nested] [flat]
* unknown index
@ 2002-01-07 21:25 Jodi Kanter <jkanter@virginia.edu>
0 siblings, 2 replies; 3+ messages in thread
From: Jodi Kanter @ 2002-01-07 21:25 UTC (permalink / raw)
To: pgsql-admin
I am working with a database that was not created by our team. There are
some indexes set up on a table and I need to understand what type they are
and how they are functioning.
How can I look at this in Postgres?
I have a situation where we trying to update data and are receiving an error
based on this index but I have no idea how it was set up.
Thanks
Jodi
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: unknown index
@ 2002-01-07 21:37 Nick Fankhauser <nickf@ontko.com>
parent: Jodi Kanter <jkanter@virginia.edu>
1 sibling, 0 replies; 3+ messages in thread
From: Nick Fankhauser @ 2002-01-07 21:37 UTC (permalink / raw)
To: Jodi Kanter <jkanter@virginia.edu>; pgsql-admin
This my be simpler than the answer you were after, but...
If you're getting something like "cannot insert duplicate key into unique
index fred", you could type: "\d fred" at a psql prompt to learn what
column(s) fred refers to. You can learn even more by digging into the system
tables, but I'll leave that version of the answer to the smarter folk.
-Nick
> -----Original Message-----
> From: pgsql-admin-owner@postgresql.org
> [mailto:pgsql-admin-owner@postgresql.org]On Behalf Of Jodi Kanter
> Sent: Monday, January 07, 2002 4:25 PM
> To: Postgres Admin List
> Subject: [ADMIN] unknown index
>
>
> I am working with a database that was not created by our team. There are
> some indexes set up on a table and I need to understand what type they are
> and how they are functioning.
> How can I look at this in Postgres?
> I have a situation where we trying to update data and are
> receiving an error
> based on this index but I have no idea how it was set up.
> Thanks
> Jodi
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: unknown index
@ 2002-01-07 22:01 Peter Eisentraut <peter_e@gmx.net>
parent: Jodi Kanter <jkanter@virginia.edu>
1 sibling, 0 replies; 3+ messages in thread
From: Peter Eisentraut @ 2002-01-07 22:01 UTC (permalink / raw)
To: Jodi Kanter <jkanter@virginia.edu>; +Cc: pgsql-admin
Jodi Kanter writes:
> I am working with a database that was not created by our team. There are
> some indexes set up on a table and I need to understand what type they are
> and how they are functioning.
> How can I look at this in Postgres?
\d tablename or \d indexname in psql.
--
Peter Eisentraut peter_e@gmx.net
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2002-01-07 22:01 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-01-07 21:25 unknown index Jodi Kanter <jkanter@virginia.edu>
2002-01-07 21:37 ` Nick Fankhauser <nickf@ontko.com>
2002-01-07 22:01 ` Peter Eisentraut <peter_e@gmx.net>
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