Re: [HACKERS] identity columns
| От | Peter Eisentraut |
|---|---|
| Тема | Re: [HACKERS] identity columns |
| Дата | |
| Msg-id | 06a416db-e35b-36d1-7e2f-0affdee24745@2ndquadrant.com обсуждение исходный текст |
| Ответ на | Re: [HACKERS] identity columns (Vitaly Burovoy <vitaly.burovoy@gmail.com>) |
| Ответы |
Re: [HACKERS] identity columns
|
| Список | pgsql-hackers |
On 3/23/17 06:09, Vitaly Burovoy wrote: > I think we'll end up with "DROP IDENTITY IF EXISTS" to avoid raising > an exception and "ADD OR SET" if your grammar remains. That sounds reasonable to me. > Right. From that PoV IDENTITY also changes a default value: "SET (ADD > ... AS?) IDENTITY" works as setting a default to "nextval(...)" > whereas "DROP IDENTITY" works as setting it back to NULL. But dropping and re-adding an identity destroys state, so it's not quite the same. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
В списке pgsql-hackers по дате отправления: