Re: [HACKERS] select * from ..;vacuum crashes

From: Vadim Mikheev <vadim(at)krs(dot)ru>
To: Taral <taral(at)mail(dot)utexas(dot)edu>
Cc: t-ishii(at)sra(dot)co(dot)jp, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] select * from ..;vacuum crashes
Date: 1998-10-06 06:51:27
Message-ID: 3619BDEF.C15A48EE@krs.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Taral wrote:
>
> > begin;
> > select * from getting;
> > vacuum;
> > end;
>
> Question: Does the following really make sense?
>
> begin transaction;
> select * from table;
> vacuum;
> abort transaction;

Using vacuum inside BEGIN/END is Bad Idea!!!
MUST be disabled: vacuum uses MANY transaction but
CommitTransactionCommand() used by vacuum does nothing
inside BEGIN/END (only increments command counter).

Vadim

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Frank Ridderbusch 1998-10-06 07:41:31 Portability Issue in src/backend/port/snprintf.c (I think)
Previous Message Bruce Momjian 1998-10-06 05:42:44 Re: [HACKERS] select * from ..;vacuum crashes