天天看點

PostgreSQL 10.0 preview 功能增強 - identify column (SQL标準:T174)

postgresql , 10.0 , identify column

identify column類似postgresql的serial, (自增\減序列). identify column(s)屬于sql标準中的某個特性。

postgresql 10.0将實作這一标準,雖然你已經可以使用serial來達到同樣效果,不過實作這一标準,可以相容更多的資料庫。

對于從其他資料庫遷移到postgresql來說,無疑是福音。

這個patch的讨論,詳見郵件組,本文末尾url。

postgresql社群的作風非常嚴謹,一個patch可能在郵件組中讨論幾個月甚至幾年,根據大家的意見反複的修正,patch合并到master已經非常成熟,是以postgresql的穩定性也是遠近聞名的。

<a href="https://commitfest.postgresql.org/13/767/">https://commitfest.postgresql.org/13/767/</a>

<a href="https://www.postgresql.org/message-id/attachment/50108/v4-0001-identity-columns.patch">https://www.postgresql.org/message-id/attachment/50108/v4-0001-identity-columns.patch</a>

<a href="https://www.postgresql.org/message-id/flat/[email protected]#[email protected]">https://www.postgresql.org/message-id/flat/[email protected]#[email protected]</a>

<a href="https://en.wikipedia.org/wiki/identity_column">https://en.wikipedia.org/wiki/identity_column</a>