| От | Andrew Sullivan |
|---|---|
| Тема | Re: Alternative to serial primary key |
| Дата | |
| Msg-id | 20060706104406.GA26210@phlogiston.dyndns.org обсуждение |
| Ответ на | Alternative to serial primary key ("David Clarke" <pigwin32@gmail.com>) |
| Список | pgsql-sql |
On Thu, Jul 06, 2006 at 10:16:42PM +1200, David Clarke wrote: > column that is calculated from another column in the table but I think > it would still be more effective than a serial id. There is the problem that the hash is not proved unique (in fact, someone has generated collisions on md5). Primary keys have to be unique, of course. I _think_ with a hundred columns, you could probably prove (using brute force, if need be) that the hashes are going to be unique, assuming the list of possible values in each column is bounded. A -- Andrew Sullivan | ajs@crankycanuck.ca A certain description of men are for getting out of debt, yet are against all taxes for raising money to pay it off. --Alexander Hamilton
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера