Re: [BUGS] BUG #4465: GROUP BY is not to SQL standard

2008-10-15 Thread Craig Ringer
[Note: I'm *not* an expert in the SQL standard, but I might be able to help clarify a misunderstanding or two in the discussion so far]. Tony Marston wrote: Support for functional dependencies is not a feature that can be turned off in any database engine. Dependencies, whether they are functio

Re: [BUGS] Postgres database problem

2008-10-15 Thread Rodriguez Fernando
Nitin Saxena escribió: Hi, I am using postgresql 7.0 When i am connecting my database it is giving error [EMAIL PROTECTED] /root]# su - postgres bash-2.04$ psql GROUPSMS NOTICE: mdopen: couldn't open /var/lib/pgsql/data/pg_log: Permission denied NOTICE: mdopen: couldn't open /var/lib/pgsql/d

Re: [BUGS] BUG #4465: GROUP BY is not to SQL standard

2008-10-15 Thread David Fetter
On Tue, Oct 14, 2008 at 08:28:42PM -0400, Bruce Momjian wrote: > Tony Marston wrote: > > I think your definition of "Feature T301 Functional Dependencies" > > is extremely questionable. [et cetæra, ad nauseam] > > The issue is that Postgres is _more_ standards-compliant than MySQL, > but Postgres

Re: [BUGS] Postgres database problem

2008-10-15 Thread Tom Lane
"Nitin Saxena" <[EMAIL PROTECTED]> writes: > I am using postgresql 7.0 You really, really, really need to update to some remotely-modern PG version. 7.0 *will* eat your data someday. > NOTICE: mdopen: couldn't open /var/lib/pgsql/data/pg_log: Permission denied So, what's the permissions on /

[BUGS] Postgres database problem

2008-10-15 Thread Nitin Saxena
Hi, I am using postgresql 7.0 When i am connecting my database it is giving error [EMAIL PROTECTED] /root]# su - postgres bash-2.04$ psql GROUPSMS NOTICE: mdopen: couldn't open /var/lib/pgsql/data/pg_log: Permission denied NOTICE: mdopen: couldn't open /var/lib/pgsql/data/pg_log: Permis

Re: [BUGS] BUG #4465: GROUP BY is not to SQL standard

2008-10-15 Thread Andrew Sullivan
On Wed, Oct 15, 2008 at 01:47:40PM +0100, Tony Marston wrote: > Support for functional dependencies is not a feature that can be > turned off in any database engine. Repeating the same premise over and over again does not constitute an argument. In this case, you appear to be begging the questio

Re: [BUGS] BUG #4465: GROUP BY is not to SQL standard

2008-10-15 Thread Tony Marston
Support for functional dependencies is not a feature that can be turned off in any database engine. Dependencies, whether they are functional, transitive, multi-valued or join dependencies, are inherent in the database design. It is therefore nonsense to say that support for functional dependencies

Re: [BUGS] BUG #4462: Adding COUNT to query causes massive slowdown

2008-10-15 Thread Jussi Pakkanen
On Sat, Oct 11, 2008 at 12:07 AM, Tom Lane <[EMAIL PROTECTED]> wrote: > The sort-and-uniq doesn't care where the data came from. But if we have > to feed it all rows of the table, as we do here, we're going to use a > seqscan. An indexscan can never beat a seqscan for retrieving the whole > tabl

Re: [BUGS] BUG #4465: GROUP BY is not to SQL standard

2008-10-15 Thread Peter Eisentraut
Tony Marston wrote: You are still missing the point - "functional dependencies" is not a separate module that can be turned on or off with code, It is in the SQL standard. they are inherent in the database design. According to relational theory any non-key field on a table is functionally dep

Re: [BUGS] BUG #4465: GROUP BY is not to SQL standard

2008-10-15 Thread Tony Marston
You are still missing the point - "functional dependencies" is not a separate module that can be turned on or off with code, they are inherent in the database design. According to relational theory any non-key field on a table is functionally dependent of the key of that table, so if you support bo