[BUGS] Error during hash index scans can cause postgres halt!

2008-03-07 Thread ykhuang
recurred through deadlock. client1: create table test(a int); create index id on test using hash(a); insert into test values(1); insert into test values(2); set enable_seqscan=off; begin; update test set a=a+1 where a=1; client2: set enable_seqscan=off; begin; update test set a=a+1 wher

[BUGS] why provide cross type arithmetic operators

2008-01-22 Thread ykhuang
there are many cross type arithmetic operators, like int2 + int4, int8 + int4, I think these can be deleted. Here are the reasons, after deleted, int2 + int4 will choose the operator int4 + int4, int8 + int4 choose int8 + int8, Is that ok? Thanks. ---(end of broadcast)

Re: [BUGS] why provide cross type arithmetic operators

2008-01-22 Thread ykhuang
ere are int4 + int8 and int8 + int8, but no int2 + int8, so two operators available, they are int4 + int8 and int8 + int8, system can't choose a best candidate operator. "ykhuang" <[EMAIL PROTECTED]> дÈëÏûÏ¢ÐÂÎÅ:[EMAIL PROTECTED] > there are many cross type arithmetic o