pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: William Sescu (Suva) <william.sescu@suva.ch>
To: 'David G. Johnston' <david.g.johnston@gmail.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: AW: REINDEX VERBOSE DATABASE not working
Date: Thu, 4 Jul 2019 06:15:25 +0000
Message-ID: <cb2c70cf3ffc40d3a9e89e4041559215@suva.ch> (raw)
In-Reply-To: <CAKFQuwbYdVU5gKT1Rs5=qEo81wcXJXsceaROyUdpxxpjf6gu7A@mail.gmail.com>
References: <da27115b57ec4109b68a5825f34df790@suva.ch>
	<CAPfkCSB5wWjh5uabEj-uH8+km_wggLBYid9KE3UdSTeTRV0gsg@mail.gmail.com>
	<CAFpscORRnDKc+OZzPhPwHDLCve7Z23w2S48BeCztnbbKU5-WPw@mail.gmail.com>
	<CAKFQuwb2A_1LotRwexbb4r6CGCj3mPYAMvEXJBtrW-WMb9czxg@mail.gmail.com>
	<a007fd9297c349e4896166cd5d447e81@suva.ch>
	<CAKFQuwbYdVU5gKT1Rs5=qEo81wcXJXsceaROyUdpxxpjf6gu7A@mail.gmail.com>

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.g.johnston@gmail.com]
Gesendet: Mittwoch, 3. Juli 2019 22:33
An: Sescu William (SW0) <william.sescu@suva.ch>
Cc: pgsql-admin@postgresql.org
Betreff: REINDEX VERBOSE DATABASE not working

On Wednesday, July 3, 2019, William Sescu (Suva) <william.sescu@suva.ch<mailto:william.sescu@suva.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.


Attachments:

  smime.p7s (application/pkcs7-signature, 5.3K) download

view thread (2+ messages)

Message-ID: <cb2c70cf3ffc40d3a9e89e4041559215@suva.ch>
Permalink:  ../cb2c70cf3ffc40d3a9e89e4041559215@suva.ch/
Also on:    postgresql.org/message-id/cb2c70cf3ffc40d3a9e89e4041559215@suva.ch

 · 

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-admin@postgresql.org
  Cc: william.sescu@suva.ch, david.g.johnston@gmail.com
  Subject: Re: AW: REINDEX VERBOSE DATABASE not working
  In-Reply-To: <cb2c70cf3ffc40d3a9e89e4041559215@suva.ch>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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