Re: [BUGS] BUG #5459: Unable to cancel query while in send()

2010-05-30 Thread Greg Stark
On Wed, May 12, 2010 at 2:44 AM, Tom Lane wrote: > I think what you are describing is a kernel bug.  There's not a lot > we can do about it if the send() call hangs.  Considering the kernel > already knows the connection is closed (per the CLOSE_WAIT state shown > by netstat) the send() should ret

Re: [BUGS] BUG #5477: CREATE DOMAIN NOT NULL constraints not always enforced for INSERT with subquery

2010-05-30 Thread Matthew Nourse
Tom Lane wrote: Matthew Nourse writes: As NOT NULL on domains doesn't always prevent a value from becoming NULL (and because it "sucks" :) ) would you consider deprecating the not-null-on-domains feature and then removing it from some future version of PostgreSQL? We can't really because it

Re: [BUGS] BUG #5477: CREATE DOMAIN NOT NULL constraints not always enforced for INSERT with subquery

2010-05-30 Thread Tom Lane
Matthew Nourse writes: > As NOT NULL on domains doesn't always prevent a value from becoming NULL > (and because it "sucks" :) ) would you consider deprecating the > not-null-on-domains feature and then removing it from some future > version of PostgreSQL? We can't really because it's required

Re: [BUGS] BUG #5484: sum() bug

2010-05-30 Thread Tom Lane
"Sergey" writes: > 8849.15+6464.57=15313.72 > But sum()=15313.7 You did not show what datatype you're summing, but if the column is float4 this result wouldn't be surprising. float4 is only good to about six decimal digits. regards, tom lane -- Sent via pgsql-bugs mail

Re: [BUGS] BUG #5469: regexp_matches() has poor behaviour and more poor documentation

2010-05-30 Thread Daniele Varrazzo
On Sun, May 30, 2010 at 4:45 AM, Robert Haas wrote: > On Sat, May 29, 2010 at 5:00 PM, Bruce Momjian wrote: >> I have updated the patch, attached, to clarify that this returns text >> arrays, and that you can force it to always return one row using >> COALESCE() and a '|' pattern (the later sugge

[BUGS] BUG #5484: sum() bug

2010-05-30 Thread Sergey
The following bug has been logged online: Bug reference: 5484 Logged by: Sergey Email address: vi...@yandex.ru PostgreSQL version: 8.4.4 Operating system: FreeBSD 7.3 Description:sum() bug Details: Function sum() bug. 8849.15+6464.57=15313.72 But sum()=15313.7 [r..

Re: [BUGS] BUG #5477: CREATE DOMAIN NOT NULL constraints not always enforced for INSERT with subquery

2010-05-30 Thread Matthew Nourse
Kevin Grittner wrote: Tom Lane wrote: < NOT NULL constraints at the domain level suck. Don't use 'em. +1 As someone who uses domains very heavily, I can attest that the semantics of that are very weak. Whether a domain is nullable depends almost entirely on the context of its use, which