Re: ERROR: REINDEX DATABASE: Can be executed only on the currently open database.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Clodoaldo Pinto Neto <clodoaldo_pinto(at)yahoo(dot)com(dot)br>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: ERROR: REINDEX DATABASE: Can be executed only on the currently open database.
Date: 2004-04-12 15:51:06
Message-ID: 10780.1081785066@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

=?iso-8859-1?q?Clodoaldo=20Pinto=20Neto?= <clodoaldo_pinto(at)yahoo(dot)com(dot)br> writes:
> [ reasonable-looking VACUUM VERBOSE stats ]

AFAICS those are reasonable-size indexes; REINDEX is unlikely to make
them much smaller. Since you say you do have foreign keys involved,
that is probably where the problem is. Check that the data types of
referencing and referenced columns match, and that you have indexes
on the referencing columns. PG only forces you to have indexes on
the referenced columns, but if you lack the others then deletes require
seqscans through the referencing tables ...

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Guy Fraser 2004-04-12 17:02:45 Re: COPY TO order
Previous Message scott.marlowe 2004-04-12 15:20:43 Re: Data Encryption in PostgreSQL, and a Tutorial.