Search Postgresql Archives

Why not cascade? (was: Using varchar primary keys)

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

 



On 3/4/13 at 1:49 PM, dix1wjifgt@xxxxxxxxxxxxxx (Julian tempura-at-internode.on.net |pg-gts/Basic|) wrote:

... having to really think it out is probably a good sign that you
should stick to a surrogate unless you are really sure. (again I don't
advocate ON UPDATE CASCADE as a solution should you change your mind)

OK this is interesting.

Why not cascade?

Assuming someone makes the dB design as straight forward as possible, avoids obfuscation of key values (since this mostly only gets the present and the next developer into trouble, not the mythical external hacker), and has constraints with cascaded updates in place to keep it all consistent. Something changes in the real world, the DBA makes the dB reflect this change and the cascade ensures everything is still consistent. Where is the problem with this?

When there is a lot of work involved this needs to be taken into account, but what is the basis for such a general prohibition on a modern SQL dB? why not use the feature?

Regards
Gavan Schneider



--
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