12版本之前,比如11.3版本,有兩個宏定義:
#define HeapTupleGetOid(tuple)
#define HeapTupleSetOid(tuple, oid)
分別獲取和設定Oid,在12版本中沒有了
有沒有哪個大神知道在12版本中,如何獲取heaptuple的OID啊?
uj5u.com熱心網友回復:
之前的oid是使用create table with oids這種方式創建的,是隱藏列。pg12開始oid直接作為資料型別來使用了,例如建表時指定某一列為oid型別create table t1(id oid),可以直接select * 查詢出來轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/19864.html
標籤:PostgreSQL
上一篇:請教Mongodb聚合查詢的問題
