Re: Dreaming About Redesigning SQL
| От | Dann Corbit |
|---|---|
| Тема | Re: Dreaming About Redesigning SQL |
| Дата | |
| Msg-id | D90A5A6C612A39408103E6ECDD77B829408BE9@voyager.corporate.connx.com обсуждение исходный текст |
| Ответ на | Dreaming About Redesigning SQL (seunosewa@inaira.com (Seun Osewa)) |
| Список | pgsql-hackers |
> -----Original Message----- > From: Seun Osewa [mailto:seunosewa@inaira.com] > Sent: Friday, October 03, 2003 11:52 AM > To: pgsql-hackers@postgresql.org > Subject: [HACKERS] Dreaming About Redesigning SQL > > > Hi, > > This is for relational database theory experts on one hand > and imlementers of real-world alications on the other hand. > If there was a chance to start again and design SQL afresh, > for best cleaness/power/performance what changes would you > make? What would _your_ query language (and the underlying > database concept) look like? > > Seun Osewa > PS: I should want to post my ideas too for review but more > experienced/qualified people should come first I imagine you have read the 3rd database manifesto by Codd. I think he's gone off the deep end a bit. You don't just throw away a trillion dollars worth of effort and tools to make things mathematically orthogonal. However, on some things he is clearly right. For instance, null values are evil. Programmers understand it, but end users will *always* be surprised that: SELECT COUNT(shirts) FROM clothing WHERE color = 'blue' SELECT COUNT(shirts) FROM clothing WHERE NOT color = 'blue' Is not equal to the number of shirts in the inventory if any color fields are null. Therefore, his idea of using default values instead and never using null is a good one. If SQL vendors would follow the ANSI/ISO standard to the letter, and implement the latest iteration, that would solve all of the problems that SQL tool users have to face.
В списке pgsql-hackers по дате отправления: