From: | Martin Marques <martin(at)bugs(dot)unl(dot)edu(dot)ar> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Postgres performance comments from a MySQL user |
Date: | 2003-06-12 16:01:20 |
Message-ID: | 200306121301.20258.martin@bugs.unl.edu.ar |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Jue 12 Jun 2003 10:50, Ron Johnson wrote:
> On Thu, 2003-06-12 at 08:05, Martin Marques wrote:
> > On Mié 11 Jun 2003 12:29, Jonathan Bartlett wrote:
> > > 3) If your point was to move to a relational database, then you
> > > should choose Postgres. MySQL, although it's SQL, hardly qualifies
> > > as relational
> >
> > MySQL doesn't have relations at all, unless you put the InnoDB
> > module, which stamps down performance.
> >
> > An example I tried to do on a MySQL without InnoDB was:
> >
> > CREATE TABLE testing (
> > id INT,
> > word VARCHAR(20) REFERENCES other_table("word")
> > );
> >
> > (knowing that other_table exists (I prefiously created it) and has
> > word as a VARCHAR(20) field).
> >
> > An error is what I got.
>
> A table *is* a relation. You seem to be referring to foreign keys.
> Maybe MySQL has a different syntax?
Sorry, you are right about that. I was talking about references of primary
keys/foreign keys.
Any way, the syntax was right, the InnoDB module was missing, as is said
here:
http://www.mysql.com/doc/en/InnoDB_foreign_key_constraints.html
--
Porqué usar una base de datos relacional cualquiera,
si podés usar PostgreSQL?
-----------------------------------------------------------------
Martín Marqués | mmarques(at)unl(dot)edu(dot)ar
Programador, Administrador, DBA | Centro de Telematica
Universidad Nacional
del Litoral
-----------------------------------------------------------------
From | Date | Subject | |
---|---|---|---|
Next Message | Jeff Boes | 2003-06-12 16:25:01 | Temp tables, indexes and DELETE vs. TRUNCATE |
Previous Message | Lamar Owen | 2003-06-12 15:49:07 | Re: [HACKERS] SAP and MySQL ... [and Benchmark] |