Re: Functional dependencies and GROUP BY - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Functional dependencies and GROUP BY
Date
Msg-id 1279361718.17928.1.camel@vanquo.pezone.net
Whole thread Raw
In response to Re: Functional dependencies and GROUP BY  (Alex Hunsaker <badalex@gmail.com>)
Responses Re: Functional dependencies and GROUP BY
List pgsql-hackers
On fre, 2010-07-16 at 22:29 -0600, Alex Hunsaker wrote:
> The only corner case I have run into is creating a view with what I
> would call an implicit 'not null' constraint.  Demonstration below:
> 
> create table nn (a int4 not null, b int4, unique (a));
> select * from nn group by a; -- should this work? I think not? 

I believe I referred to this upsthread.  There is another patch in the
commitfest about explicitly representing NOT NULL constraints in
pg_constraint.  Then this case would create a dependency on those
constraints.  So we need to get that other patch in first.



pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock
Next
From: Simon Riggs
Date:
Subject: Re: gSoC - ADD MERGE COMMAND - code patch submission