| 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 |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs pgsql-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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bruce Momjian | 2002-04-14 17:22:49 | Re: 7.2 crash... |
| Previous Message | Bruce Momjian | 2002-04-14 16:52:53 | Re: 7.2 crash... |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2002-04-14 17:16:08 | Re: Again, sorry, caching. |
| Previous Message | Tom Lane | 2002-04-14 17:11:16 | Re: bug with current sources? Re: cost of parse/plan/execute for one sample query |