Home > database >  Turn to postgreSQL 12 version of how to obtain the tuple ID?
Turn to postgreSQL 12 version of how to obtain the tuple ID?

Time:10-13

Before 12 version, version 11.3, for example, there are two macro definition:

# define HeapTupleGetOid (a tuple)
# define HeapTupleSetOid (tuple, oid)

Get and set respectively Oid, in 12 version without the

Did a great god know in 12 version, how to obtain heaptuple OID?

CodePudding user response:

Before oid is to use the create table with oids created in this way, the hidden columns, pg12 began to oid directly used as data types, such as building table specified when a listed as oid type create table t1 (id oid), can be directly select * query
  • Related