| От | Josh Berkus |
|---|---|
| Тема | Re: Question on oid's |
| Дата | |
| Msg-id | web-1234330@davinci.ethosmedia.com обсуждение исходный текст |
| Ответ на | Re: Question on oid's ("Joseph Molnar" <josephmolnar@hotmail.com>) |
| Список | pgsql-novice |
Joe, > I am also new to Postgresql though not ORDBMS systems ... why should > you not > use OIDs as a primary key in Postgresql? 1. OIDs are not normally backed up, and it requires special pg_dump options to backup and restore them, and there can be problems in this process. 2. If you have a very large database with a lot of activity, the OID counter will "roll over" which is not a problem for the system, but will be for any OID-based primary keys. 3. It's not great design to make a column which is normally hidden in queries your primary key. -Josh Berkus
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера