Re: PostgreSQL Developer Best Practices

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: PostgreSQL Developer Best Practices
Date: 2015-08-25 20:56:48
Message-ID: 55DCD690.3070909@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2015-08-25 21:06:09 Re: PostgreSQL Developer Best Practices
Previous Message Adrian Klaver 2015-08-25 20:56:35 Re: PostgreSQL Developer Best Practices