pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
AW: REINDEX VERBOSE DATABASE not working
2+ messages / 1 participants
[nested] [flat]

* AW: REINDEX VERBOSE DATABASE not working
@ 2019-07-03 19:43 William Sescu (Suva) <william.sescu@suva.ch>
  2019-07-04 06:15 ` AW: REINDEX VERBOSE DATABASE not working William Sescu (Suva) <william.sescu@suva.ch>
  0 siblings, 1 reply; 2+ messages in thread

From: William Sescu (Suva) @ 2019-07-03 19:43 UTC (permalink / raw)
  To: pgsql-admin

Thanks for clarification. The REINDEX (VERBOSE) DATABASE xxx; works.
However, the syntax is not intuitive, from my point of view.
And TAB completion does not show you the (VERBOSE) option either.

e.g. if you press two times TAB, it does not show you the VERBOSE option

(postgres@[local]:55000)[knowledgebase]> REINDEX [TAB] [TAB]
DATABASE  INDEX     SCHEMA    SYSTEM    TABLE

Would it not be possible to allow 2 options. One with (VERBOSE) for backward compatibility and one with VERBOSE

Von: David G. Johnston [mailto:david.g.johnston@gmail.com]
Gesendet: Mittwoch, 3. Juli 2019 18:22
An: Avin Kavish <avinkavish@gmail.com>
Cc: Fabrízio de Royes Mello <fabrizio@timbira.com.br>; Sescu William (SW0) <william.sescu@suva.ch>; pgsql-admin@postgresql.org
Betreff: Re: REINDEX VERBOSE DATABASE not working

On Wed, Jul 3, 2019 at 8:56 AM Avin Kavish <avinkavish@gmail.com<mailto:avinkavish@gmail.com>> wrote:
That looks like a pretty bad syntax to require brackets around a keyword that has no contextual ambiguity.

Future pacing and overall consistency.

Here's a link to the relevant discussion:
https://www.postgresql.org/message-id/flat/CAD21AoA0pK3YcOZAFzMae%2B2fcc3oGp5zoRggDyMNg5zoaWDhdQ%40m...

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

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* AW: REINDEX VERBOSE DATABASE not working
  2019-07-03 19:43 AW: REINDEX VERBOSE DATABASE not working William Sescu (Suva) <william.sescu@suva.ch>
@ 2019-07-04 06:15 ` William Sescu (Suva) <william.sescu@suva.ch>
  0 siblings, 0 replies; 2+ messages in thread

From: William Sescu (Suva) @ 2019-07-04 06:15 UTC (permalink / raw)
  To: 'David G. Johnston' <david.g.johnston@gmail.com>; +Cc: 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.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

^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2019-07-04 06:15 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-07-03 19:43 AW: REINDEX VERBOSE DATABASE not working William Sescu (Suva) <william.sescu@suva.ch>
2019-07-04 06:15 ` William Sescu (Suva) <william.sescu@suva.ch>

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