Re: [GENERAL] pointer to feature comparisons, please

2007-06-14 Thread Ron Johnson
On 06/14/07 02:24, PFC wrote: The DELETE should block, no? Why ? Foreign keys put an ON DELETE trigger on the referenced table Foreign keys that silently, automatic DELETE records? Did I read that correctly? Isn't that the point of ON DELETE CASCADE ? Where'd that come from

Re: [GENERAL] pointer to feature comparisons, please

2007-06-14 Thread PFC
The DELETE should block, no? Why ? Foreign keys put an ON DELETE trigger on the referenced table Foreign keys that silently, automatic DELETE records? Did I read that correctly? Isn't that the point of ON DELETE CASCADE ? besides checking the referencing column on insert/

Re: [GENERAL] pointer to feature comparisons, please

2007-06-13 Thread Stefan Kaltenbrunner
Kevin Hunter wrote: > At 3:26p -0400 on 13 Jun 2007, Stefan Kaltenbrunner wrote: >>> The way that I currently know how to do this in Postgres is with >>> PLpgSQL functions. Then I add something like >>> >>> CONSTRAINT away_team_is_playing CHECK ( NOT teamIsPlaying( >>> awayteamid, timeid ) ) >>> >

Re: [GENERAL] pointer to feature comparisons, please

2007-06-13 Thread Ron Johnson
On 06/13/07 17:23, PFC wrote: On Thu, 14 Jun 2007 00:09:20 +0200, Ron Johnson <[EMAIL PROTECTED]> wrote: On 06/13/07 16:59, PFC wrote: Isn't it *supposed* to mis UNcommitted changes from other transactions? Well, if the "uncommited change" is a DELETE of the row that allowed the constra

Re: [GENERAL] pointer to feature comparisons, please

2007-06-13 Thread PFC
On Thu, 14 Jun 2007 00:09:20 +0200, Ron Johnson <[EMAIL PROTECTED]> wrote: On 06/13/07 16:59, PFC wrote: Isn't it *supposed* to mis UNcommitted changes from other transactions? Well, if the "uncommited change" is a DELETE of the row that allowed the constraint check to pass, then when

Re: [GENERAL] pointer to feature comparisons, please

2007-06-13 Thread Ron Johnson
On 06/13/07 16:59, PFC wrote: Isn't it *supposed* to mis UNcommitted changes from other transactions? Well, if the "uncommited change" is a DELETE of the row that allowed the constraint check to pass, then when this delete is commited, your data is no longer consistent. The DELETE shoul

Re: [GENERAL] pointer to feature comparisons, please

2007-06-13 Thread PFC
Isn't it *supposed* to mis UNcommitted changes from other transactions? Well, if the "uncommited change" is a DELETE of the row that allowed the constraint check to pass, then when this delete is commited, your data is no longer consistent. Consider this : CREATE TABLE A( attribu

Re: [GENERAL] pointer to feature comparisons, please

2007-06-13 Thread Joris Dobbelsteen
>-Original Message- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] On Behalf Of Kevin Hunter >Sent: woensdag 13 juni 2007 22:03 >To: Stefan Kaltenbrunner >Cc: PostgreSQL General List >Subject: Re: [GENERAL] pointer to feature comparisons, please > >At

Re: [GENERAL] pointer to feature comparisons, please

2007-06-13 Thread Ron Johnson
On 06/13/07 15:02, Kevin Hunter wrote: [snip] 'To enforce this rule without integrity constraints, you can use a trigger to query the department table and test that each new employee's department is valid. But this method is less reliable than the integrity constraint. SELECT in Oracle Databa

Re: [GENERAL] pointer to feature comparisons, please

2007-06-13 Thread Kevin Hunter
At 3:26p -0400 on 13 Jun 2007, Stefan Kaltenbrunner wrote: The way that I currently know how to do this in Postgres is with PLpgSQL functions. Then I add something like CONSTRAINT away_team_is_playing CHECK ( NOT teamIsPlaying ( awayteamid, timeid ) ) to the table schema. well doing it t

Re: [GENERAL] pointer to feature comparisons, please

2007-06-13 Thread Stefan Kaltenbrunner
Kevin Hunter wrote: [...] > I originally had him code his project for Postgres, but for reasons > beyond our control we've had to move to Oracle. In designing the schema > we have need of a constraint that checks values in other tables. The > way that I currently know how to do this in Postgres

Re: [GENERAL] pointer to feature comparisons, please

2007-06-13 Thread Greg Smith
http://troels.arvin.dk/db/rdbms/ is where I go when I have to figure out how to cope with someone's MySQL mess [this week: it lets you put an arbitrary integer into a boolean column? seriously?]; it's also handy for comparing against Oracle. There is a helpful table http://www-css.fnal.gov/

Re: [GENERAL] pointer to feature comparisons, please

2007-06-13 Thread Rodrigo De León
On Jun 13, 8:57 am, [EMAIL PROTECTED] (Kevin Hunter) wrote: > So, motivation aside, what I'm wanting is a couple of pointers to > feature comparisons of Postgres vs Oracle. What else is going to > bite him while he works on this project? Would be handy to have this > reference since neither of us

[GENERAL] pointer to feature comparisons, please

2007-06-13 Thread Kevin Hunter
Hello List, Short version: I want pointers to feature comparisons of Postgres vs Oracle. Can the list help? Long version: I'm working with a student on a project for school. I'm trying to teach "right" methods of thinking and doing things, such as making the database/data model the au