Re: oid's in views.

From: Joel Burton <joel(at)joelburton(dot)com>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: Aasmund Midttun Godal <postgresql(at)envisity(dot)com>, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: oid's in views.
Date: 2001-10-22 19:54:28
Message-ID: Pine.LNX.4.30.0110221553290.635-100000@temp.joelburton.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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(at)joelburton(dot)com | joelburton.com | aim: wjoelburton
Independent Knowledge Management Consultant

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message san 2001-10-22 21:25:44 PL/pgSQL triggers ON INSERT OR UPDATE
Previous Message Josh Berkus 2001-10-22 17:33:00 Re: oid's in views.