469,266 Members | 1,880 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,266 developers. It's quick & easy.

REINDEX problem

Hello,

the maintainance chapter in the docs gave me the impression that a
reindex of some tables would be a good idea. Last night I took the
database down, started up in single user mode and tried to reindex.

The reindex of tables did work fine, but a reindex of the database
did not. Please see a session transscript below.

How can I reindex the database?

TIA

/Ulrich

-bash-2.05b$ postgres -D /var/lib/pgsql/data/ -O -P CLIX1
LOG: database system was shut down at 2004-08-12 22:55:29 CEST
LOG: checkpoint record is at 11A/63A8F508
LOG: redo record is at 11A/63A8F508; undo record is at 0/0; shutdown TRUE
LOG: next transaction id: 51020804; next oid: 123029844
LOG: database system is ready

POSTGRES backend interactive interface
$Revision: 1.307.2.1 $ $Date: 2003/01/01 21:57:18 $

backend> REINDEX DATABASE CLIX1
ERROR: REINDEX DATABASE: Can be executed only on the currently open
database.
backend>
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to ma*******@postgresql.org)

Nov 23 '05 #1
1 3865
Ulrich Wisser <ul***********@relevanttraffic.se> writes:
-bash-2.05b$ postgres -D /var/lib/pgsql/data/ -O -P CLIX1
...
backend> REINDEX DATABASE CLIX1
ERROR: REINDEX DATABASE: Can be executed only on the currently open
database.


The database name is evidently all upper case, so you need double
quotes:

REINDEX DATABASE "CLIX1"

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by G.W. Lucas | last post: by
1 post views Thread by Sally Sally | last post: by
5 posts views Thread by Edmund Dengler | last post: by
1 post views Thread by paul | last post: by
reply views Thread by shubhangi | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.