From: Bruno Wolff III <bruno@wolff.to>
To: cnliou@eurosport.com
Cc: pgsql-sql@postgresql.org
Subject: Re: Limit A Table To 1 Row
Date: Tue, 6 Aug 2002 22:42:08 -0500
Message-ID: <20020807034208.GA10875@wolff.to> (raw)
In-Reply-To: <200208070329.32fc@th00.opsion.fr>
References: <200208070329.32fc@th00.opsion.fr>
On Wed, Aug 07, 2002 at 03:29:50 +0000,
cnliou@eurosport.com wrote:
> Hello!
>
> Corporate table, t1, should contain exact 1 row.
> I strongly believe that there are cleaner versions
> than the following combination of trigger and rule.
>
> Thank you in advance for any improved version!
Another way to keep someone from inserting a second row is to have a primary
key and a constraint fixing the primary key to a fixed value.
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: bruno@wolff.to, cnliou@eurosport.com
Subject: Re: Limit A Table To 1 Row
In-Reply-To: <20020807034208.GA10875@wolff.to>
* 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