From: | Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | lockhart(at)alumni(dot)caltech(dot)edu (Thomas G(dot) Lockhart) |
Cc: | olly(at)lfix(dot)co(dot)uk, pgsql-hackers(at)postgreSQL(dot)org |
Subject: | Re: [HACKERS] latest snapshot crashes backend |
Date: | 1998-11-04 22:13:02 |
Message-ID: | 199811042213.RAA18249@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> > Care to give us a table:
> > select * from pg_shadow where (usesysid is null and oid is null);
>
> Sure, that's easy. Just negate your where clause:
>
> tgl=> select * from pg_shadow
> tgl-> where not (usesysid is null and oid is null);
> pqReadData() -- backend closed the channel unexpectedly.
>
> If you can reproduce this, will you have a chance to look at it? I don't
> know where the problem is, but suspect that it is farther back than the
> parser transformations. Rewrite system, optimizer, or executor??
>
OK, here is the fix. I am not applying it yet until 6.4 is released by
Marc, OK? In fact, I am not sure how we are going to do patch
application after 6.4, so would someone else please apply this?
---------------------------------------------------------------------------
*** ./backend/optimizer/path/clausesel.c.orig Wed Nov 4 16:49:35 1998
--- ./backend/optimizer/path/clausesel.c Wed Nov 4 17:11:02 1998
***************
*** 254,259 ****
--- 254,264 ----
*/
s1 = 0.1;
}
+ else if (not_clause((Node *) clause))
+ {
+ /* negate this baby */
+ return 1 - compute_selec(root, ((Expr *)clause)->args, or_selectivities);
+ }
else if (is_subplan((Node *) clause))
{
--
Bruce Momjian | http://www.op.net/~candle
maillist(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
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Stephens | 1998-11-04 22:54:43 | Re: [HACKERS] Warning!! |
Previous Message | Tom Lane | 1998-11-04 21:32:32 | Re: [HACKERS] Re: bug on aggregate function AVG() |