Re: Using complex PRIMARY KEY - Mailing list pgsql-general

From Sam Mason
Subject Re: Using complex PRIMARY KEY
Date
Msg-id 20091007203417.GB5407@samason.me.uk
Whole thread Raw
In response to Using complex PRIMARY KEY  (Zsolt <zshorvat@freemail.hu>)
Responses PostgreSQL 'hosting'  (Dragan Zubac <zubacdragan@gmail.com>)
List pgsql-general
On Wed, Oct 07, 2009 at 09:19:58PM +0200, Zsolt wrote:
> For a given house I would like to start the numbering of tenants from
> 1. Each house could have tenant_ID=1, obviously in this case the
> house_ID will differ. The combination of tenant_ID and house_ID will
> be the unique identifier of each tenant.

The term for this that tends to float around for this concept (in PG
anyway) is "gap-less sequences": this looks like a reasonable link:

  http://www.varlena.com/GeneralBits/130.php

--
  Sam  http://samason.me.uk/

pgsql-general by date:

Previous
From: Krzysztof Barlik
Date:
Subject: Re: pg_dumpall asking for password for each database
Next
From: Kynn Jones
Date:
Subject: Re: How to troubleshoot authentication failure?