Re: vacuumdb --all --analyze-in-stages - wrong order? - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: vacuumdb --all --analyze-in-stages - wrong order?
Date
Msg-id CAFj8pRAbeHjiDYCaouVqL7KXhXu6d11zYtbZkrYQJpC6uFBx_Q@mail.gmail.com
Whole thread Raw
In response to Re: vacuumdb --all --analyze-in-stages - wrong order?  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers


2014-09-12 3:44 GMT+02:00 Peter Eisentraut <peter_e@gmx.net>:
On 9/4/14 4:23 PM, Pavel Stehule wrote:
> It is little bit hard to read.

> maybe better be more verbose - and it can be in alone function, because
> it is "analyze only"
>
> if (stage == -1)
> {
>   for (i = 0; i < 3; i++)
>   {
>         puts(gettext(stage_messages[i]));
>         executeCommand(conn, stage_commands[i], progname, echo);
>         run_vacuum_command(conn, sql.data, echo, dbname, table, progname);
>   }
> }
> else
> {
>     puts(gettext(stage_messages[stage]));
>     executeCommand(conn, stage_commands[stage], progname, echo);
>     run_vacuum_command(conn, sql.data, echo, dbname, table, progname);
> }

Done that way, thanks!

Thank you

It is interesting feature

Pavel

pgsql-hackers by date:

Previous
From: Stephen Frost
Date:
Subject: Re: proposal (9.5) : psql unicode border line styles
Next
From: Michael Paquier
Date:
Subject: Re: Support for N synchronous standby servers