Re: vacuumdb --all --analyze-in-stages - wrong order?

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: vacuumdb --all --analyze-in-stages - wrong order?
Date: 2014-09-12 04:26:29
Message-ID: CAFj8pRAbeHjiDYCaouVqL7KXhXu6d11zYtbZkrYQJpC6uFBx_Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

2014-09-12 3:44 GMT+02:00 Peter Eisentraut <peter_e(at)gmx(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2014-09-12 05:13:46 Re: Support for N synchronous standby servers
Previous Message Stephen Frost 2014-09-12 03:14:37 Re: proposal (9.5) : psql unicode border line styles