Thanks to visit codestin.com
Credit goes to postgrespro.com

Re: [HACKERS] latest snapshot crashes backend - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] latest snapshot crashes backend
Date
Msg-id [email protected]
Whole thread Raw
In response to Re: [HACKERS] latest snapshot crashes backend  ("Thomas G. Lockhart" <[email protected]>)
List pgsql-hackers
> > The attached commands crash the backend, which exits with status 11.
> 
> tgl=> select * from x where not (i is null or c is null);
> i|c
> -+-
> 1|T
> 2|A
> 0|T
> (3 rows)
> 
> tgl=> select * from x where not (i is null and c is null);
> pqReadData() -- backend closed the channel unexpectedly.
> 
> So, let's try rewriting it as a workaround:
> 
> tgl=> select * from x where (not i is null) or (not c is null);
> pqReadData() -- backend closed the channel unexpectedly.
> 
> Oops. For some reason the NOT/AND is fatal, while NOT/OR is OK. That's
> not so good. The good news is that it will certainly be repairable with
> patches.
> 

Care to give us a table:
select * from pg_shadow where (usesysid is null and oid is null)\g

--  Bruce Momjian                        |  http://www.op.net/~candle [email protected]            |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Warning!!
Next
From: "Thomas G. Lockhart"
Date:
Subject: Re: [HACKERS] Warning!!