Skip site navigation (1) Skip section navigation (2)

Re: 7.2 crash...

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Rod Taylor <rbt(at)zort(dot)ca>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: 7.2 crash...
Date: 2002-04-14 17:15:30
Message-ID: 22283.1018804530@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-bugspgsql-hackers
Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)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

In response to

Responses

pgsql-hackers by date

Next:From: Tom LaneDate: 2002-04-14 17:16:08
Subject: Re: Again, sorry, caching.
Previous:From: Tom LaneDate: 2002-04-14 17:11:16
Subject: Re: bug with current sources? Re: cost of parse/plan/execute for one sample query

pgsql-bugs by date

Next:From: Bruce MomjianDate: 2002-04-14 17:22:49
Subject: Re: 7.2 crash...
Previous:From: Bruce MomjianDate: 2002-04-14 16:52:53
Subject: Re: 7.2 crash...

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group