Re: [SQL] Finding table constraints

2001-08-20 Thread Johannes Grødem
> Is there any way to find out what constraints have been set on a table > or on columns in a table? Take a look at the source for psql. -- johs ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

Re: [SQL] Same question about PostgreSql

2001-04-16 Thread Johannes Grødem
> More than Interbase :-) More than MS SQL Server. Maybe less than > Oracle or MySQL; it's open to debate. Um. In my experience, PostgreSQL is more stable than MySQL. MySQL dies on me all the time, but I've never had it happen with PostgreSQL. (7.0.3, currently.) -- johs --

Re: [SQL] Foreign key referencing subclasses.

2001-03-23 Thread Johannes Grødem
>> CREATE TABLE resource_record( >> rrid SERIAL >> -- etc. >> ); > There is no primary key for this table. Just write PRIMARY KEY after > SERIAL. There is. I accidentally left it out in the post. > CREATE INDEX soa_record_pkey ON soa_record ( rrid ); > You could also state the referenced f

[SQL] Foreign key referencing subclasses.

2001-03-22 Thread Johannes Grødem
Hi, it seems I can't have a foreign key that references some subclass. Postgres says it can't figure out what its primary key is. The primary key is defined in the superclass. I have something like this: CREATE TABLE resource_record( rrid SERIAL -- etc. ); CREATE TABLE soa_record( -- b