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

Re: 7.2 crash...

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(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:22:49
Message-ID: 200204141722.g3EHMnx13675@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-bugspgsql-hackers
Oops, I see now.  How is this?

Remember, I am not incredibly capable, just persistent.  :-)

---------------------------------------------------------------------------

Tom Lane wrote:
> 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
> 

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

In response to

Responses

pgsql-hackers by date

Next:From: Tom LaneDate: 2002-04-14 17:30:00
Subject: Re: Bug #633: CASE statement evaluation does not short-circut
Previous:From: Bruce MomjianDate: 2002-04-14 17:20:20
Subject: Re: Again, sorry, caching.

pgsql-bugs by date

Next:From: Tom LaneDate: 2002-04-14 17:30:00
Subject: Re: Bug #633: CASE statement evaluation does not short-circut
Previous:From: Tom LaneDate: 2002-04-14 17:15:30
Subject: Re: 7.2 crash...

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