|
Hello Kevin, I strongly disagree with your analysis of this issue. Like I said, this syntax works with 9 different databases, so obviously whatever PosgreSQL query procesor is doing in this case is not the desired behavior. To ensure PosgreSQL success, the query processor must behave in a compliant manner with established standards whether those standards are set by SQL ISO specs or are de facto standards. It is too much asking developers to change their sql to overcome implementation-dependent side-effects of PostgreSQL query processor. If a simple SQL statement works on 9+ different databases, then it should also work in PostreSQL with no need for developers to special-code for PostgreSQL. Very basic feature is converting a string literal to a datetime/timestamp value and developers should not do any special coding to accomplish this simple conversion. '2010-04-30 00:00:00' should convert to timestamp in PostgreSQL with no other flags or syntax decoration (it already does except when 'distinct' is used). Compatibility is very high on desired features for a DBMS and is a requirement for smooth porting of applications from other databases to PostreSQL and cross-dbms applications. It really boils down to making it work, technical details are what developers love and I am sure PostgreSQL developers can make this simple sql insert work on PostreSQL just like all the other developers have done for the other DBMSs. Anyway, I have reported this issue because I encountered it and it negatively impacts my project. I don't expect it to be fixed right now, that's something that PostgreSQL developers can debate and prioritize. I only ask that this issue is identified, since it does not work in my case when the target dbms is PostgreSQL and I am sure it can impact other developers projects and it would need to be addressed at some point in the future with a solution where it just work like it does in all the other DBMSs. Farid On 6/4/2010 1:36 PM, Kevin Grittner wrote: Farid Zidan <[email protected]> wrote: --
|
- [BUGS] BUG #5490: Using distinct for select list causes i... Farid Zidan
- Re: [BUGS] BUG #5490: Using distinct for select list... Tom Lane
- Re: [BUGS] BUG #5490: Using distinct for select list... Kevin Grittner
- Re: [BUGS] BUG #5490: Using distinct for select ... Farid Zidan
- Re: [BUGS] BUG #5490: Using distinct for sel... Kevin Grittner
- Re: [BUGS] BUG #5490: Using distinct for... Farid Zidan
- Re: [BUGS] BUG #5490: Using distinc... Kevin Grittner
- Re: [BUGS] BUG #5490: Using dis... Farid Zidan
- [BUGS] Re: BUG #5490: Using... Greg Stark
- [BUGS] Re: BUG #5490: Using... Farid Zidan
- [BUGS] Re: BUG #5490: Using... Kevin Grittner
- [BUGS] Re: BUG #5490: Using... Farid Zidan
- [BUGS] Re: BUG #5490: Using... Greg Stark
- [BUGS] Re: BUG #5490: Using... Farid Zidan
- Re: [BUGS] Re: BUG #5490: U... tomas
- Re: [BUGS] Re: BUG #5490: U... Craig Ringer
- Re: [BUGS] Re: BUG #5490: U... Farid Zidan
- Re: [BUGS] Re: BUG #5490: U... Dimitri Fontaine
