Re: Using complex PRIMARY KEY

Поиск
Список
Период
Сортировка
От Sam Mason
Тема Re: Using complex PRIMARY KEY
Дата
Msg-id 20091007203417.GB5407@samason.me.uk
обсуждение исходный текст
Ответ на Using complex PRIMARY KEY  (Zsolt <zshorvat@freemail.hu>)
Ответы PostgreSQL 'hosting'
Список 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 по дате отправления:

Предыдущее
От: Krzysztof Barlik
Дата:
Сообщение: Re: pg_dumpall asking for password for each database
Следующее
От: Kynn Jones
Дата:
Сообщение: Re: How to troubleshoot authentication failure?