Re: PostgreSQL Developer Best Practices

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: PostgreSQL Developer Best Practices
Дата
Msg-id 55DCD690.3070909@hogranch.com
обсуждение исходный текст
Ответ на Re: PostgreSQL Developer Best Practices  (Gavin Flower <GavinFlower@archidevsys.co.nz>)
Ответы Re: PostgreSQL Developer Best Practices
Список pgsql-general
On 8/25/2015 1:42 PM, Gavin Flower wrote:
> Account numbers are externally generated, and may potentially change.
> Management might suddenly decide that they want to start using the
> year the account started as the first 4 digits, or that the branch
> code should be reflected in it, or something else.  The database
> should be protected from these arbitrary changes.  Hence the
> account_no is not a good candidate for a primary key.


such practices would raise total havoc on a traditional paper ledger
accounting system as well as things like pending AR/AP where external
companies will be referencing your account numbers.




--
john r pierce, recycling bits in santa cruz



В списке pgsql-general по дате отправления:

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: PostgreSQL Developer Best Practices
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: PostgreSQL Developer Best Practices