Re: Limit A Table To 1 Row - Mailing list pgsql-sql

From Richard Huxton
Subject Re: Limit A Table To 1 Row
Date
Msg-id 200208070930.25591.dev@archonet.com
Whole thread Raw
In response to Re: Limit A Table To 1 Row  ("Josh Berkus" <josh@agliodbs.com>)
List pgsql-sql
On Wednesday 07 Aug 2002 4:52 am, Josh Berkus wrote:

> However, you may want to reconsider this method of storing values in
> the database.  What I do is create a table called global_admin:
>
> CREATE TABLE global_admin (
>     value_name VARCHAR(30) NOT NULL PRIMARY KEY,
>     value_format VARCHAR(30) NOT NULL,
>     admin_value TEXT NULL
> );

I do as Josh does (which has got to put some doubts in Josh's mind) except I
add value_section and value_comment fields to make it easier for someone to
edit where necessary.

- Richard Huxton


pgsql-sql by date:

Previous
From: Bhuvan A
Date:
Subject: Effective usage without unique key -- suggestion
Next
From: rramostalo@quorum.com
Date:
Subject: control reaches end of trigger procedure without RETURN