agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedFrom: Fabrízio de Royes Mello <fabrizio@timbira.com.br>
To: pgsql-general@postgresql.org
Subject: Re: [SQL] Q: documentation bug ?
Date: Thu, 4 Feb 2016 15:56:54 -0200
Message-ID: <56B390E6.3000007@timbira.com.br> (raw)
In-Reply-To: <20160204105318.GD22591@hermes.hilbert.loc>
References: <20160204105318.GD22591@hermes.hilbert.loc>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>
On 04-02-2016 08:53, Karsten Hilbert wrote:
> Hello all,
>
> the online documentation for REINDEX
>
> http://www.postgresql.org/docs/9.5/static/sql-reindex.html
>
> talks about VERBOSE
>
> Synopsis
>
> REINDEX [ ( { VERBOSE } [, ...] ) ] { INDEX | TABLE | SCHEMA | DATABASE | SYSTEM } name
>
> [...]
>
> VERBOSE
>
> Prints a progress report as each index is reindexed.
>
> but
>
> root@hermes:~/bin# psql -d gnumed_v21 -U gm-dbo
> Ausgabeformat ist „wrapped“.
> Erweiterte Anzeige ist an.
> psql (9.5.0)
> Geben Sie „help“ für Hilfe ein.
>
> gnumed_v21=> select version();
> -[ RECORD 1 ]-------------------------------------------------------------------------------------------
> version | PostgreSQL 9.5.0 on i686-pc-linux-gnu, compiled by gcc (Debian 5.3.1-5) 5.3.1 20160101, 32-bit
>
> gnumed_v21=> reindex<TAB>
> DATABASE INDEX SCHEMA SYSTEM TABLE
>
> gnumed_v21=> reindex verbose database 'gnumed_v21';
> ERROR: syntax error at or near "verbose"
> ZEILE 1: reindex verbose database 'gnumed_v21';
> ^
> gnumed_v21=>
>
> Does this constitute a bug in the documentation or in the Debian version of PG ?
>
You forgot to add the "(" and ")" around the "VERBOSE" statement
acoording the syntax.
Try this:
REINDEX (VERBOSE) DATABASE gnumed_v21;
Regards,
--
Fabrízio de Royes Mello Timbira - http://www.timbira.com.br/
PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento
Attachments:
[application/pgp-signature] signature.asc (472B, ../56B390E6.3000007@timbira.com.br/2-signature.asc)
download
view thread (6+ messages)
Message-ID: <56B390E6.3000007@timbira.com.br>
Permalink: ../56B390E6.3000007@timbira.com.br/
Also on: postgresql.org/message-id/56B390E6.3000007@timbira.com.br
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: fabrizio@timbira.com.br, pgsql-general@postgresql.org
Subject: Re: [SQL] Q: documentation bug ?
In-Reply-To: <56B390E6.3000007@timbira.com.br>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox