AW: REINDEX VERBOSE DATABASE not working

From: "William Sescu (Suva)" <william(dot)sescu(at)suva(dot)ch>
To: "'David G(dot) Johnston'" <david(dot)g(dot)johnston(at)gmail(dot)com>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: AW: REINDEX VERBOSE DATABASE not working
Date: 2019-07-04 06:15:25
Message-ID: cb2c70cf3ffc40d3a9e89e4041559215@suva.ch
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hello David

Yes, I did read the thread. However, I still don’t see the advantage of running:

REINDEX ( VERBOSE ) DATABASE xxx;

Instead of:

REINDEX VERBOSE DATABASE xxx;

And coming back to the TAB completion thing, which is a fantastic feature, by the way, does not show you the option
which comes in parentheses. I don’t know if this is by design or not.

>REINDEX [TAB] [TAB]
DATABASE INDEX SCHEMA SYSTEM TABLE

I would expect with the current syntax implementation:

>REINDEX [TAB] [TAB]
(VERBOSE) DATABASE INDEX SCHEMA SYSTEM TABLE

Nevertheless, thanks everyone.

I think I will switch to the command line tool reindexdb. ;-) This one is more intuitive from my point of view:

reindexdb --verbose --dbname=xxx

Cheers,
William

Von: David G. Johnston [mailto:david(dot)g(dot)johnston(at)gmail(dot)com]
Gesendet: Mittwoch, 3. Juli 2019 22:33
An: Sescu William (SW0) <william(dot)sescu(at)suva(dot)ch>
Cc: pgsql-admin(at)postgresql(dot)org
Betreff: REINDEX VERBOSE DATABASE not working

On Wednesday, July 3, 2019, William Sescu (Suva) <william(dot)sescu(at)suva(dot)ch<mailto:william(dot)sescu(at)suva(dot)ch>> wrote:
Thanks for clarification. The REINDEX (VERBOSE) DATABASE xxx; works.
However, the syntax is not intuitive, from my point of view.
Would it not be possible to allow 2 options. One with (VERBOSE) for backward compatibility and one with VERBOSE

Its possible but such a patch would never be committed (did you read the email thread?). Intuitiveness isn’t a huge concern here. Especially for a command that isn’t intended to be run manually often.

The learning curve for PostgreSQL includes knowing where to find command syntax and how to read it. Its a complex language that is constantly being added to.

David J.

________________________________

Disclaimer:

Diese Nachricht und ihr eventuell angehängte Dateien sind nur für den Adressaten bestimmt. Sie kann vertrauliche oder gesetzlich geschützte Daten oder Informationen beinhalten. Falls Sie diese Nachricht irrtümlich erreicht hat, bitten wir Sie höflich, diese unter Ausschluss jeglicher Reproduktion zu löschen und die absendende Person zu benachrichtigen. Danke für Ihre Hilfe.

This message and any attached files are for the sole use of the recipient named above. It may contain confidential or legally protected data or information. If you have received this message in error, please delete it without making any copies whatsoever and notify the sender. Thank you for your assistance.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Achilleas Mantzios 2019-07-05 10:17:05 pgsql 8.3 : force FK (and consequently ON DELETE CASCADE) to be run under session_replication_role TO 'replica'
Previous Message David G. Johnston 2019-07-03 20:32:48 REINDEX VERBOSE DATABASE not working