Re: [BUGS] BUG #6064: != NULL, <> NULL do not work [sec=UNCLASSIFIED]

2011-06-19 Thread Jeff Davis
On Mon, 2011-06-20 at 10:00 +0930, Pilling, Michael wrote: > The behaviour of the generated code may well be correct and indeed I > agree that it is but from > everything you and the detailed documentation have said column != NULL > is at least deprecated > and is highly likely to indicate a progra

Re: [BUGS] BUG #6064: != NULL, <> NULL do not work [sec=UNCLASSIFIED]

2011-06-19 Thread Craig Ringer
On 20/06/2011 8:30 AM, Pilling, Michael wrote: I was looking at that page but didn't read the detail because I thought the information was in the table and the detail was just textual examples. I do think that adding "IS DISTINCT FROM" and "IS NULL / IS NOT NULL" to the summary table would be

Re: [BUGS] BUG #6064: != NULL, <> NULL do not work [sec=UNCLASSIFIED]

2011-06-19 Thread Craig Ringer
On 20/06/2011 7:43 AM, Pilling, Michael wrote: Thanks Craig, The real problem here then is that the documentation showing the boolean comparison operators does not mention this quirk, which I accept may be a standard quirk but it's still a quirk. What URL are you looking at? http://www.postgr

Re: [BUGS] BUG #6064: != NULL, <> NULL do not work [sec=UNCLASSIFIED]

2011-06-19 Thread Pilling, Michael
>> The real problem here then is that the documentation showing >> the boolean comparison operators does not mention this > This page does, at length: But not in the table, in fact it doesn't even mention the IS NULL, IS NOT NULL operators at all. >http://www.postgresql.org/docs/9.0/intera

Re: [BUGS] BUG #6064: != NULL, <> NULL do not work [sec=UNCLASSIFIED]

2011-06-19 Thread Pilling, Michael
Hi Kevin, Thanks for that. Point entirely taken. I think what I would add would be in the table 9-1 of operators, an extra column filled in only for =, <> and != saying Important: see difference from IS [NOT] NULL. Perhaps one reason I didn't pick up on this subtle issue is that IS NULL and IS

Re: [BUGS] BUG #6064: != NULL, <> NULL do not work [sec=UNCLASSIFIED]

2011-06-19 Thread Pilling, Michael
Thanks Craig, The real problem here then is that the documentation showing the boolean comparison operators does not mention this quirk, which I accept may be a standard quirk but it's still a quirk. You just wouldn't go looking for that flag unless you had any inkling that it might exist. And i

Re: [BUGS] BUG #6064: != NULL, <> NULL do not work [sec=UNCLASSIFIED]

2011-06-19 Thread Kevin Grittner
"Pilling, Michael" wrote: > The real problem here then is that the documentation showing > the boolean comparison operators does not mention this This page does, at length: http://www.postgresql.org/docs/9.0/interactive/functions-comparison.html What page are you looking at? > And indeed

Re: [BUGS] BUG #6068: automatic analyze runs endlessly

2011-06-19 Thread Jeff Janes
On 6/19/11, Tom Lane wrote: > "Jeff Janes" writes: >> Starting with commit b4b6923e03f4d29636a94f6f4cc2f5cf6298b8c8, >> "Fix VACUUM so that it always updates pg_class.reltuples/relpages." > >> After running make installcheck, the tables regression.public.slow_emp4000 >> and regression.public.fast

Re: [BUGS] BUG #6068: automatic analyze runs endlessly

2011-06-19 Thread Tom Lane
"Jeff Janes" writes: > After running make installcheck, the tables regression.public.slow_emp4000 > and regression.public.fast_emp4000 get analyzed once a minute even though > they have no activity. None of the other installcheck tables, just those > two. Oh, wait, I see what's different about t

[BUGS] Re: PG regression with row comparison when btree_gist is enabled (BUG)

2011-06-19 Thread Jeff Davis
On Sat, 2011-06-18 at 13:20 -0700, Jeff Davis wrote: > Interesting problem... the bug is in get_op_btree_interpretation() which > has code like this: > > /* > >* If we can't find any opfamily co

Re: [BUGS] BUG #6068: automatic analyze runs endlessly

2011-06-19 Thread Tom Lane
"Jeff Janes" writes: > Starting with commit b4b6923e03f4d29636a94f6f4cc2f5cf6298b8c8, > "Fix VACUUM so that it always updates pg_class.reltuples/relpages." > After running make installcheck, the tables regression.public.slow_emp4000 > and regression.public.fast_emp4000 get analyzed once a minute

Re: [BUGS] BUG #6064: != NULL, <> NULL do not work

2011-06-19 Thread Craig Ringer
On 06/17/2011 10:20 PM, Kevin Grittner wrote: "Michael Pilling" wrote: A reasonable programmer would expect != NULL,<> NULL and IS NOT NULL to be synonyms. Only if that programmer was not aware of the SQL standard and had not worked much with a standard-conforming database. Yep, and if th