SQL, Postgres OIDs, What are they and why are they useful?

后端 未结 5 944
一个人的身影
一个人的身影 2020-12-07 10:28

I am looking at some PostgreSQL table creation and I stumbled upon this:

CREATE TABLE (
...
) WITH ( OIDS = FALSE );

I read the documentati

5条回答
  •  醉梦人生
    2020-12-07 10:50

    If you still use OID, it would be better to remove the dependency on it, because in recent versions of Postgres it is no longer supported. This can stop (temporarily until you solve it) your migration from version 10 to 12 for example.

    See also: https://dev.to/rafaelbernard/postgresql-pgupgrade-from-10-to-12-566i

提交回复
热议问题