Re: Limit for number of Joins in a View? Version 8.1.4 on Redhat 9

From: Jim Nasby <decibel(at)decibel(dot)org>
To: MargaretGillon(at)chromalloy(dot)com
Cc: Richard Huxton <dev(at)archonet(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Limit for number of Joins in a View? Version 8.1.4 on Redhat 9
Date: 2007-02-08 20:12:00
Message-ID: AF1CE559-00E5-4537-9CB8-45DD8D9243FA@decibel.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Feb 7, 2007, at 10:05 AM, MargaretGillon(at)chromalloy(dot)com wrote:
> I was using the flag table to keep the flags consistent between all
> the tables in the database that might use them. I didn't know about
> CREATE DOMAIN which will do what I want perfectly

Note that DOMAIN support unfortunately isn't perfect; for example,
plpgsql doesn't enforce domain constraints (IIRC there's some other
bugs as well). So you should probably do a test to make sure
everything you'll be doing with domains will work before you re-code
everything.

Also, I suggest using "char" instead of just char. "char" is a
special data type that's limited to storing a single character; the
advantage is that it's much smaller and faster than a char.

If you do end up back at using foreign keys, I suggest using either a
smallint or "char"... the savings across the number of fields you're
looking at would start to add up, especially if you start putting a
decent number of rows in the table.
--
Jim Nasby jim(at)nasby(dot)net
EnterpriseDB http://enterprisedb.com 512.569.9461 (cell)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2007-02-08 20:37:45 Re: Installing PostgreSQL on Windows XP
Previous Message Jim Nasby 2007-02-08 20:07:09 Re: Installing PostgreSQL on Windows XP