Re: IDENTITY/GENERATED v36 Re: Final version of IDENTITY/GENERATED patch
| От | Zoltan Boszormenyi |
|---|---|
| Тема | Re: IDENTITY/GENERATED v36 Re: Final version of IDENTITY/GENERATED patch |
| Дата | |
| Msg-id | 461478F0.1070609@cybertec.at обсуждение исходный текст |
| Ответ на | Re: IDENTITY/GENERATED v36 Re: Final version of IDENTITY/GENERATED patch (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: IDENTITY/GENERATED v36 Re: Final version of IDENTITY/GENERATED patch
|
| Список | pgsql-patches |
Tom Lane írta: > Zoltan Boszormenyi <zb@cybertec.at> writes: > >> Tom Lane írta: >> >>>> The latter would treat GENERATED BY DEFAULT AS IDENTITY >>>> the same as SERIAL. >>>> > > >>> Is there any good reason to distinguish the two? >>> > > >> Yes. Plain SERIALs can be updated with given values >> whereas IDENTITY columns cannot. >> > > Really? How is pg_dump going to deal with that? > > regards, tom lane > It emits ALTER TABLE ... SET GENERATED AS IDENTITY after ALTER SEQUENCE OWNED BY and if any of the columns is IDENTITY or GENERATED then it emits COPY OVERRIDING SYSTEM VALUE in my patch already. -- ---------------------------------- Zoltán Böszörményi Cybertec Geschwinde & Schönig GmbH http://www.postgresql.at/
В списке pgsql-patches по дате отправления: