From: Jim C. Nasby <decibel@decibel.org>
To: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: cost of empty fields
Date: Wed, 20 Apr 2005 23:09:57 -0500
Message-ID: <20050421040957.GZ58835@decibel.org> (raw)
In-Reply-To: <20050421021902.GA16782@nibiru.borg.metux.de>
References: <20050415142206.GA347@nibiru.borg.metux.de>
<20050415165802.GT58835@decibel.org>
<20050421021902.GA16782@nibiru.borg.metux.de>
On Thu, Apr 21, 2005 at 04:19:02AM +0200, Enrico Weigelt wrote:
> * Jim C. Nasby <decibel@decibel.org> wrote:
> > If you setup rules on the view and just have the application select,
> > insert, update, and delete from the view instead of the raw tables you
> > won't need to change your application at all. Though you do need to be
> > aware that you can't easily enforce uniqueness across multiple tables.
> hmm. that doesnt sound stable enough for me.
> this table is really critical and there's a lot of money in game
> (realtime currency trading ...)
Note I didn't say you couldn't do it, I just said it wasn't easy. Easy
as in adding a normal unique constraint. In this case, you need to add
triggers to the tables to check for uniqueness. It's absolutely stable,
it's just not as nice as it could be.
--
Jim C. Nasby, Database Consultant decibel@decibel.org
Give your computer some brain candy! www.distributed.net Team #1828
Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: decibel@decibel.org
Subject: Re: cost of empty fields
In-Reply-To: <20050421040957.GZ58835@decibel.org>
References: <20050415142206.GA347@nibiru.borg.metux.de> <20050415165802.GT58835@decibel.org> <20050421021902.GA16782@nibiru.borg.metux.de> <20050421040957.GZ58835@decibel.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox