Re: [GENERAL] Wish: remove ancient constructs from Postgres

2006-02-27 Thread Karsten Hilbert
On Mon, Feb 27, 2006 at 12:25:57AM +0300, Nikolay Samokhvalov wrote: Please help. how? ... PostgreSQL has very-very good documentation, but it teaches to go Pg's way, which is not right in that sense, unfortunately... By supplying documentation patches, perhaps ? Karsten -- GPG key ID

Re: [GENERAL] Wish: remove ancient constructs from Postgres

2006-02-27 Thread Peter Eisentraut
Am Sonntag, 26. Februar 2006 21:24 schrieb Neil Conway: I think a better approach would be to introduce the concept of SQL dialects, similar to --std=... in GCC or SQL modes in MySQL 5. That would help people who want to write standard-compliant applications while not inconveniencing those who

Re: [GENERAL] Wish: remove ancient constructs from Postgres

2006-02-27 Thread Nikolay Samokhvalov
On 2/27/06, Peter Eisentraut [EMAIL PROTECTED] wrote: Am Sonntag, 26. Februar 2006 21:24 schrieb Neil Conway: I think a better approach would be to introduce the concept of SQL dialects, similar to --std=... in GCC or SQL modes in MySQL 5. That would help people who want to write

Re: [GENERAL] Wish: remove ancient constructs from Postgres

2006-02-27 Thread Nikolay Samokhvalov
On 2/27/06, Bruno Wolff III [EMAIL PROTECTED] wrote: The alternatives to distinct on are painful. They are generally both harder to read and run slower. 'DISTINCT ON' is evil constuction, because (w/o any 'ORDER BY') it produses unpredictable result, as 'ORDER BY random()' does. When newbie

Re: [GENERAL] Wish: remove ancient constructs from Postgres

2006-02-27 Thread Stephan Szabo
On Mon, 27 Feb 2006, Nikolay Samokhvalov wrote: On 2/27/06, Bruno Wolff III [EMAIL PROTECTED] wrote: The alternatives to distinct on are painful. They are generally both harder to read and run slower. 'DISTINCT ON' is evil constuction, because (w/o any 'ORDER BY') it produses unpredictable

Re: [GENERAL] Wish: remove ancient constructs from Postgres

2006-02-27 Thread Nikolay Samokhvalov
On 2/27/06, Stephan Szabo [EMAIL PROTECTED] wrote: On Mon, 27 Feb 2006, Nikolay Samokhvalov wrote: On 2/27/06, Bruno Wolff III [EMAIL PROTECTED] wrote: The alternatives to distinct on are painful. They are generally both harder to read and run slower. 'DISTINCT ON' is evil

Re: [GENERAL] Wish: remove ancient constructs from Postgres

2006-02-27 Thread Martijn van Oosterhout
On Mon, Feb 27, 2006 at 06:26:02PM +0300, Nikolay Samokhvalov wrote: On 2/27/06, Peter Eisentraut [EMAIL PROTECTED] wrote: Such a thing has been discussed from time to time but in reality you wouldn't get useful results from it because just about any application will violate the standard

Re: [GENERAL] Wish: remove ancient constructs from Postgres

2006-02-27 Thread Nikolay Samokhvalov
On 2/27/06, Martijn van Oosterhout kleptog@svana.org wrote: Huh? We should ofcourse try to implement SQL:2003 wherever we can, but to say this means we need to throw out anything not mentioned is silly. For example, CREATE INDEX is not in SQL:2003, are you seriously suggesting we remove it? i

Re: [GENERAL] Wish: remove ancient constructs from Postgres

2006-02-27 Thread Martijn van Oosterhout
On Mon, Feb 27, 2006 at 06:59:21PM +0300, Nikolay Samokhvalov wrote: On 2/27/06, Stephan Szabo [EMAIL PROTECTED] wrote: 'DISTINCT ON' is evil constuction, because (w/o any 'ORDER BY') it produses unpredictable result, as 'ORDER BY random()' does. And so does UNION in the standard under

Re: [GENERAL] Wish: remove ancient constructs from Postgres

2006-02-27 Thread Stephan Szabo
On Mon, 27 Feb 2006, Nikolay Samokhvalov wrote: it's completely different thing. look at the spec and you'll understand the difference. in two words, with 'DISTINCT ON' we lose some values (from some columns), when UNION not (it just removes duplicates, comparing _entire_ rows). No it's not,

Re: [GENERAL] Wish: remove ancient constructs from Postgres

2006-02-27 Thread Bruno Wolff III
On Mon, Feb 27, 2006 at 18:34:16 +0300, Nikolay Samokhvalov [EMAIL PROTECTED] wrote: On 2/27/06, Bruno Wolff III [EMAIL PROTECTED] wrote: The alternatives to distinct on are painful. They are generally both harder to read and run slower. 'DISTINCT ON' is evil constuction, because (w/o

Re: [GENERAL] Wish: remove ancient constructs from Postgres

2006-02-27 Thread Christopher Weimann
On 02/26/2006-10:36AM, Andrus Moor wrote: It is difficult to write standard-compliant code in Postgres. There are a lot of constructs which have SQL equivalents but are still used widely, even in samples in docs! For example, there are suggestions using now()::CHAR!=foo while the

Re: [GENERAL] Wish: remove ancient constructs from Postgres

2006-02-27 Thread Jonathan Gardner
Aren't you afraid of that in the future these people will switch to MySQL because of ability to work in standard way?.. You're joking, right? At least I had a good laugh. ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please

[GENERAL] Wish: remove ancient constructs from Postgres

2006-02-26 Thread Andrus Moor
It is difficult to write standard-compliant code in Postgres. There are a lot of constructs which have SQL equivalents but are still used widely, even in samples in docs! For example, there are suggestions using now()::CHAR!=foo while the correct way is CAST(CURRENT_DATE AS CHAR)foo now()

Re: [GENERAL] Wish: remove ancient constructs from Postgres

2006-02-26 Thread Uwe C. Schroeder
As long as the SQL standard is supported, support for the ancient syntax shouldn't be removed - at least not without a very long period of transition. Do you have any idea how many applications the removal of something simple like the cast operator :: will break? It's not difficult to write

Re: [GENERAL] Wish: remove ancient constructs from Postgres

2006-02-26 Thread Tom Lane
Andrus Moor [EMAIL PROTECTED] writes: For example, there are suggestions using now()::CHAR!=foo while the correct way is CAST(CURRENT_DATE AS CHAR)foo now() function, :: and != operators should be removed from language. Your second example requires twice as much typing as your first; is

Re: [GENERAL] Wish: remove ancient constructs from Postgres

2006-02-26 Thread Karsten Hilbert
On Sun, Feb 26, 2006 at 10:36:23AM +0200, Andrus Moor wrote: It is difficult to write standard-compliant code in Postgres. There are a lot of constructs which have SQL equivalents but are still used widely, even in samples in docs! For example, there are suggestions using ... Bruce seems

Re: [GENERAL] Wish: remove ancient constructs from Postgres

2006-02-26 Thread Neil Conway
On Sun, 2006-02-26 at 12:08 -0500, Tom Lane wrote: We'd consider removing these features if they were actually blocking support of some spec-required behavior ... but since they don't, it's quite unlikely they'll ever be removed. Right; there are plenty of places in which PostgreSQL extends

Re: [GENERAL] Wish: remove ancient constructs from Postgres

2006-02-26 Thread Nikolay Samokhvalov
On 2/26/06, Karsten Hilbert [EMAIL PROTECTED] wrote: Please help. how? is there any place where postgres' SQL:2003 incompatibilities are being discussed? I really want to have standard-compatible PostgreSQL and some option in postgresql.conf that would allow me to restrict Postgres' SQL syntax

Re: [GENERAL] Wish: remove ancient constructs from Postgres

2006-02-26 Thread Chris
Nikolay Samokhvalov wrote: On 2/26/06, Karsten Hilbert [EMAIL PROTECTED] wrote: Please help. how? 1. Pick an item on the list. 2. Join the -hackers list and ask for info on where to start and discuss what you want to change. 3. Start coding. -- Postgresql php tutorials

Re: [GENERAL] Wish: remove ancient constructs from Postgres

2006-02-26 Thread Bruno Wolff III
On Mon, Feb 27, 2006 at 00:25:57 +0300, Nikolay Samokhvalov [EMAIL PROTECTED] wrote: On 2/26/06, Karsten Hilbert [EMAIL PROTECTED] wrote: past'. Yes, standard is 'talkative', but I prefer only standard things, because it helps me to understand other databases and 'academical things'.