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

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

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!

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Arthur Silva 2014-09-12 01:56:04 Re: jsonb format is pessimal for toast compression
Previous Message Tomonari Katsumata 2014-09-12 01:35:10 Re: Commitfest status