Search Postgresql Archives

Re: PostgreSQL Developer Best Practices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Melvin Davidson wrote:
9.
 >1) What happens if someone mis-types the account-id?
 >     To correct that, you also need to correct the FK field in the
other dozen tables.
 >2) What happens when your company starts a new project (or buys a
    I would not consider the general use of natural primary keys to be
    best practice.
    Let's assume your account_id field is used as a foreign key in a
    dozen other tables.
    1) What happens if someone mis-types the account-id?
          To correct that, you also need to correct the FK field in the
    other dozen tables.


... ON UPDATE CASCADE ?



--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux