Re: database constraints

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: David Fetter <david(at)fetter(dot)org>
Cc: Ben <bench(at)silentmedia(dot)com>, Postgres general mailing list <pgsql-general(at)postgresql(dot)org>
Subject: Re: database constraints
Date: 2004-10-06 16:32:02
Message-ID: 41641E02.8060301@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers


>
>
> What's "reasonable?" ;)
>
> BTW, "id" is a terrible name for a column. Better call it foo_id.

Hello,

I disagree with the idea that "id" is a terrible name for a column. The
only negative to it, is that you will have to be explicit in your
declarations when doing joins and such... ex:

SELECT * FROM foo
JOIN bar on (foo.id = bar.id)

Personally I would rather see, and write that then:

SELECT * FROM foo
JOIN bar on (foo_id = bar_id)

Sincerely,

Joshua D. Drake

>
> Cheers,
> D

--
Command Prompt, Inc., home of Mammoth PostgreSQL - S/ODBC and S/JDBC
Postgresql support, programming shared hosting and dedicated hosting.
+1-503-667-4564 - jd(at)commandprompt(dot)com - http://www.commandprompt.com
Mammoth PostgreSQL Replicator. Integrated Replication for PostgreSQL

Attachment Content-Type Size
jd.vcf text/x-vcard 640 bytes

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Kris Jurka 2004-10-06 16:40:31 Re: Avoiding explicit addDataType calls for PostGIS
Previous Message Mark Gibson 2004-10-06 16:25:58 Re: Cache lookup failed for relation, when trying to DROP

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2004-10-06 16:35:20 Re: Pl/perl broken on Windows
Previous Message David Fetter 2004-10-06 15:38:49 Re: database constraints