Re: Index names not consistent

From: runner <runner(at)winning(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Index names not consistent
Date: 2011-02-23 17:51:35
Message-ID: 8CDA199727F0C2D-1510-CB8A@web-mmc-m06.sysops.aol.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> Running postgres 9.0.1 on Solaris 10 (Sparc)

> I am testing a development database before putting it in production. The
application install created the database and the indexes. When I run psql and
list the indexes \di I can count the number of indexes and see the names of the
indexes. If I run

> pg_dump -s databasename | grep INDEX

> I can also count the number of indexes and see the names of the indexes. Both
the number of indexes and the names of the indexes differ when using these two
methods to display index information. Is this normal?

It's really difficult to say with so little detail, but there's
certainly ways that that could happen. pg_dump might create some
indexes with ALTER TABLE ADD CONSTRAINT commands, for example,
rather than syntax using the word INDEX.

regards, tom lane

SOLVED: That was it Tom, thanks for the tip!


In response to

Browse pgsql-general by date

  From Date Subject
Next Message Joe Conway 2011-02-23 18:10:25 Re: Finding Errors in .csv Input Data
Previous Message Guillaume Lelarge 2011-02-23 17:29:27 Re: schema Cleanning