From: Joel Burton <joel@joelburton.com>
To: Josh Berkus <josh@agliodbs.com>
Cc: Aasmund Midttun Godal <postgresql@envisity.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: oid's in views.
Date: Mon, 22 Oct 2001 15:54:28 -0400 (EDT)
Message-ID: <Pine.LNX.4.30.0110221553290.635-100000@temp.joelburton.com> (raw)
In-Reply-To: <web-400014@davinci.ethosmedia.com>
On Mon, 22 Oct 2001, Josh Berkus wrote:
> Each significant data table contains one column, the first column,
> called "usq", for "universal sequence". This usq field may or may not
> be the primary key for the table, but does have a unique index. The usq
> is populated by a single sequence "universal_sq" which is shared between
> tables, thus allowing all tables usq uniqueness between them.
>
> This strategy has allowed me to write a number of functions which are
> table-agnostic, needing only the usq to do their job (such as a function
> that creates modification hisotry).
Josh --
Good example! I'll bet a lot of PG users may have never realized that you
can use the same sequence across several tables.
--
Joel BURTON | joel@joelburton.com | joelburton.com | aim: wjoelburton
Independent Knowledge Management Consultant
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-sql@postgresql.org
Cc: joel@joelburton.com, josh@agliodbs.com, postgresql@envisity.com
Subject: Re: oid's in views.
In-Reply-To: <Pine.LNX.4.30.0110221553290.635-100000@temp.joelburton.com>
References: <web-400014@davinci.ethosmedia.com> <Pine.LNX.4.30.0110221553290.635-100000@temp.joelburton.com>
* 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