Re: [BUGS] log_truncate_on_rotation=on is not truncating

2012-06-21 Thread Viswanatham Kiran Kumar
Hi Chan, I think this is configuration issue. This issue is happening because log files will always append when server is restarted. What I can see from your configuration, log_rotation_age=1d (1 day) which is greater than daily schedule shutdown/restart time. So this is the reaso

Re: [BUGS] BUG #6701: IS NOT NULL doesn't work on complex composites

2012-06-21 Thread Kevin Grittner
Rikard Pavelic wrote: > The only inconsistent thing is check constraint, which behaves as > NOT column IS NULL instead of column IS NOT NULL as docs says. So currently a NOT NULL constraint on a column with a composite type is equivalent to: CHECK (NOT c IS NULL) and the question is whethe

Re: [BUGS] BUG #6701: IS NOT NULL doesn't work on complex composites

2012-06-21 Thread Tom Lane
"Kevin Grittner" writes: > Rikard Pavelic wrote: >> The only inconsistent thing is check constraint, which behaves as >> NOT column IS NULL instead of column IS NOT NULL as docs says. > So currently a NOT NULL constraint on a column with a composite type > is equivalent to: > CHECK (NOT c IS NU

[BUGS] Bug #6201 status.

2012-06-21 Thread Feng Gao
I have exactly same issue described in Bug #6201: Bug reference: 6201 Logged by: Jerome Schulteis Email address: jerome(dot)schulteis(at)edstrom(dot)com PostgreSQL version: 9.0.4 Operating system: Windows XP Pro SP3 Description:Windows User Log Off Causes Backend Excep

Re: [BUGS] BUG #6701: IS NOT NULL doesn't work on complex composites

2012-06-21 Thread Kevin Grittner
Tom Lane wrote: > "Kevin Grittner" writes: >> So currently a NOT NULL constraint on a column with a composite >> type is equivalent to: >> CHECK (NOT c IS NULL) > > I don't believe this statement is accurate. What's really > happening is that a column-not-null constraint is a > datatype-indep

Re: [BUGS] BUG #6701: IS NOT NULL doesn't work on complex composites

2012-06-21 Thread Tom Lane
"Kevin Grittner" writes: > Tom Lane wrote: >> It's not clear to me whether the SQL standard rules on what should >> happen in this case, or whether we should listen to it if it does >> say that these values are not distinct. They certainly *look* >> distinct. > I do sympathize with the point o

Re: [BUGS] BUG #6701: IS NOT NULL doesn't work on complex composites

2012-06-21 Thread Kevin Grittner
Tom Lane wrote: > The reason I mentioned arrays is that it seems clear to me that > nobody sane would consider ARRAY[NULL,NULL]::int[] to be > equivalent to NULL::int[]. I will defer on that to anyone who has been in a position where the former has any meaningful semantics in a SQL environment

Re: [BUGS] BUG #6698: sub-query with join producing out of memory in where clause

2012-06-21 Thread Tom Lane
Heikki Linnakangas writes: > This test case can be further reduced into: > explain analyze > SELECT * FROM generate_series(1,10) i > WHERE (SELECT array(select repeat('a', 1) || i) u1) is not null; > We're leaking the array constructed on each row, in ExecSetParamPlan(). > At line 1000