Re: 7.2 crash... - Mailing list pgsql-bugs

From Tom Lane
Subject Re: 7.2 crash...
Date
Msg-id 22283.1018804530@sss.pgh.pa.us
Whole thread Raw
In response to Re: 7.2 crash...  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: 7.2 crash...  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-bugs
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> *** src/backend/commands/vacuum.c    12 Apr 2002 20:38:25 -0000    1.223
> --- src/backend/commands/vacuum.c    14 Apr 2002 16:41:37 -0000
> ***************
> *** 181,186 ****
> --- 181,189 ----
>       if (IsTransactionBlock())
>           elog(ERROR, "%s cannot run inside a BEGIN/END block", stmttype);

> +     if (!MemoryContextContains(QueryContext, vacstmt))
> +         elog(ERROR, "VACUUM cannot be executed from a function");
> +
>       /*
>        * Send info about dead objects to the statistics collector
>        */

> --ELM1018803173-10746-0_--

Compare to immediately preceding error check.  Isn't there something
missing here?

            regards, tom lane

pgsql-bugs by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: 7.2 crash...
Next
From: Bruce Momjian
Date:
Subject: Re: 7.2 crash...