Re: [SQL] table inheritance and foreign key troubles

2001-09-11 Thread Stephan Szabo
(hopefully this doesn't double post... stupid mail system) On Tue, 11 Sep 2001, Christof Glaser wrote: > On Tuesday, 11. September 2001 10:04, Kevin Way wrote: > > I'm having a little trouble with some inherited tables and a foreign > > key. Here's a simplified case, to show the trouble. > > >

Re: [SQL] table inheritance and foreign key troubles

2001-09-11 Thread Christof Glaser
On Tuesday, 11. September 2001 11:12, I wrote before I thought: > On Tuesday, 11. September 2001 10:04, Kevin Way wrote: > > I'm having a little trouble with some inherited tables and a foreign > > key. Here's a simplified case, to show the trouble. > > > > CREATE TABLE node ( > > node_id

Re: [SQL] table inheritance and foreign key troubles

2001-09-11 Thread Christof Glaser
On Tuesday, 11. September 2001 10:04, Kevin Way wrote: > I'm having a little trouble with some inherited tables and a foreign > key. Here's a simplified case, to show the trouble. > > CREATE TABLE node ( > node_id SERIAL NOT NULL, > nameTEXT NOT NULL, > PRIMARY KEY (node_i

[SQL] table inheritance and foreign key troubles

2001-09-11 Thread Kevin Way
I'm having a little trouble with some inherited tables and a foreign key. Here's a simplified case, to show the trouble. CREATE TABLE node ( node_id SERIAL NOT NULL, nameTEXT NOT NULL, PRIMARY KEY (node_id) ); -- works just fine CREATE TABLE users ( email TEXT