pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #8394: SQL command REINDEX doesn't work
5+ messages / 5 participants
[nested] [flat]
* BUG #8394: SQL command REINDEX doesn't work
@ 2013-08-23 16:00 yzhang@trinityusa.com
2013-08-23 20:12 ` Re: BUG #8394: SQL command REINDEX doesn't work Thomas Kellerer <spam_eater@gmx.net>
0 siblings, 1 reply; 5+ messages in thread
From: yzhang@trinityusa.com @ 2013-08-23 16:00 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 8394
Logged by: Yz Primus
Email address: yzhang@trinityusa.com
PostgreSQL version: 9.1.3
Operating system: Windows 7 64-bit
Description:
I always received error when trying to run SQL command REINDEX either from
pgAdmin III or psql. If I ran REINDEX DATABASE it threw error:
ERROR: syntax error at end of input
LINE 1: REINDEX DATABASE
If I ran REINDEX DATABASE mydb it threw error:
ERROR: can only reindex the currently open database
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: BUG #8394: SQL command REINDEX doesn't work
2013-08-23 16:00 BUG #8394: SQL command REINDEX doesn't work yzhang@trinityusa.com
@ 2013-08-23 20:12 ` Thomas Kellerer <spam_eater@gmx.net>
2013-08-23 20:39 ` Re: BUG #8394: SQL command REINDEX doesn't work Yong Zhang <yzhang@trinityusa.com>
0 siblings, 1 reply; 5+ messages in thread
From: Thomas Kellerer @ 2013-08-23 20:12 UTC (permalink / raw)
To: pgsql-bugs; +Cc: yzhang@trinityusa.com
yzhang@trinityusa.com wrote on 23.08.2013 18:00:
> The following bug has been logged on the website:
>
> Bug reference: 8394
> Logged by: Yz Primus
> Email address: yzhang@trinityusa.com
> PostgreSQL version: 9.1.3
> Operating system: Windows 7 64-bit
> Description:
>
> I always received error when trying to run SQL command REINDEX either from
> pgAdmin III or psql. If I ran REINDEX DATABASE it threw error:
> ERROR: syntax error at end of input
> LINE 1: REINDEX DATABASE
>
>
> If I ran REINDEX DATABASE mydb it threw error:
> ERROR: can only reindex the currently open database
>
Quote from the manual:
Presently, REINDEX DATABASE and REINDEX SYSTEM can only reindex the current database,
so their parameter must match the current database's name.
So you need to specify the name of the current database even though it's not really needed.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: BUG #8394: SQL command REINDEX doesn't work
2013-08-23 16:00 BUG #8394: SQL command REINDEX doesn't work yzhang@trinityusa.com
2013-08-23 20:12 ` Re: BUG #8394: SQL command REINDEX doesn't work Thomas Kellerer <spam_eater@gmx.net>
@ 2013-08-23 20:39 ` Yong Zhang <yzhang@trinityusa.com>
2013-08-24 06:14 ` Re: BUG #8394: SQL command REINDEX doesn't work Jaime Casanova <jaime@2ndquadrant.com>
0 siblings, 1 reply; 5+ messages in thread
From: Yong Zhang @ 2013-08-23 20:39 UTC (permalink / raw)
To: pgsql-bugs; +Cc: Thomas Kellerer <spam_eater@gmx.net>
Thanks for the prompt response. But that's what I tried and it didn't work. I tried following command in both pgAdmin III and psql:
REINDEX DATABASE PremierIEX
Then I got error
ERROR: can only reindex the currently open database
PremierIEX is my current database. In pgAdmin III it threw extra info:
SQL state: 0A000
Thanks,
Yong
-----Original Message-----
From: Thomas Kellerer [mailto:spam_eater@gmx.net]
Sent: Friday, August 23, 2013 3:13 PM
To: Yong Zhang
Cc: Yong Zhang
Subject: Re: BUG #8394: SQL command REINDEX doesn't work
yzhang@trinityusa.com <mailto:yzhang@trinityusa.com> wrote on 23.08.2013 18:00:
> The following bug has been logged on the website:
>
> Bug reference: 8394
> Logged by: Yz Primus
> Email address: yzhang@trinityusa.com <mailto:yzhang@trinityusa.com>
> PostgreSQL version: 9.1.3
> Operating system: Windows 7 64-bit
> Description:
>
> I always received error when trying to run SQL command REINDEX either
> from pgAdmin III or psql. If I ran REINDEX DATABASE it threw error:
> ERROR: syntax error at end of input
> LINE 1: REINDEX DATABASE
>
>
> If I ran REINDEX DATABASE mydb it threw error:
> ERROR: can only reindex the currently open database
>
Quote from the manual:
Presently, REINDEX DATABASE and REINDEX SYSTEM can only reindex the current database,
so their parameter must match the current database's name.
So you need to specify the name of the current database even though it's not really needed.
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: BUG #8394: SQL command REINDEX doesn't work
2013-08-23 16:00 BUG #8394: SQL command REINDEX doesn't work yzhang@trinityusa.com
2013-08-23 20:12 ` Re: BUG #8394: SQL command REINDEX doesn't work Thomas Kellerer <spam_eater@gmx.net>
2013-08-23 20:39 ` Re: BUG #8394: SQL command REINDEX doesn't work Yong Zhang <yzhang@trinityusa.com>
@ 2013-08-24 06:14 ` Jaime Casanova <jaime@2ndquadrant.com>
2013-08-29 14:57 ` Re: BUG #8394: SQL command REINDEX doesn't work Kevin Grittner <kgrittn@ymail.com>
0 siblings, 1 reply; 5+ messages in thread
From: Jaime Casanova @ 2013-08-24 06:14 UTC (permalink / raw)
To: Yong Zhang <yzhang@trinityusa.com>; +Cc: pgsql-bugs; Thomas Kellerer <spam_eater@gmx.net>
On Fri, Aug 23, 2013 at 3:39 PM, Yong Zhang <yzhang@trinityusa.com> wrote:
> Thanks for the prompt response. But that's what I tried and it didn't work.
> I tried following command in both pgAdmin III and psql:
>
>
>
> REINDEX DATABASE PremierIEX
>
If that is the name of the database, then it probably is because of
the uppercase letters. Try this way:
REINDEX DATABASE "PremierIEX"
--
Jaime Casanova www.2ndQuadrant.com
Professional PostgreSQL: Soporte 24x7 y capacitación
Phone: +593 4 5107566 Cell: +593 987171157
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: BUG #8394: SQL command REINDEX doesn't work
2013-08-23 16:00 BUG #8394: SQL command REINDEX doesn't work yzhang@trinityusa.com
2013-08-23 20:12 ` Re: BUG #8394: SQL command REINDEX doesn't work Thomas Kellerer <spam_eater@gmx.net>
2013-08-23 20:39 ` Re: BUG #8394: SQL command REINDEX doesn't work Yong Zhang <yzhang@trinityusa.com>
2013-08-24 06:14 ` Re: BUG #8394: SQL command REINDEX doesn't work Jaime Casanova <jaime@2ndquadrant.com>
@ 2013-08-29 14:57 ` Kevin Grittner <kgrittn@ymail.com>
0 siblings, 0 replies; 5+ messages in thread
From: Kevin Grittner @ 2013-08-29 14:57 UTC (permalink / raw)
To: Jaime Casanova <jaime@2ndquadrant.com>; Yong Zhang <yzhang@trinityusa.com>; +Cc: pgsql-bugs; Thomas Kellerer <spam_eater@gmx.net>
Jaime Casanova <jaime@2ndquadrant.com> wrote:
> If that is the name of the database, then it probably is because
> of the uppercase letters. Try this way:
>
> REINDEX DATABASE "PremierIEX"
Some command shells will eat the quotes when done like that. It
may be necessary to use this style of quoting:
REINDEX DATABASE '"PremierIEX"'
--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2013-08-29 14:57 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2013-08-23 16:00 BUG #8394: SQL command REINDEX doesn't work yzhang@trinityusa.com
2013-08-23 20:12 ` Thomas Kellerer <spam_eater@gmx.net>
2013-08-23 20:39 ` Yong Zhang <yzhang@trinityusa.com>
2013-08-24 06:14 ` Jaime Casanova <jaime@2ndquadrant.com>
2013-08-29 14:57 ` Kevin Grittner <kgrittn@ymail.com>
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