对象标识符类型

    目前OID类型用一个四字节的无符号整数实现。因此不建议在创建的表中使用OID字段做主键。

    表 1 对象标识符类型

    OID类型:主要作为数据库系统表中字段使用。

    示例:

    示例:

    1. attrelid | attname | atttypid | attstattarget
    2. ----------+------------+----------+---------------
    3. 1247 | xc_node_id | 23 | 0
    4. 1247 | tableoid | 26 | 0
    5. 1247 | cmax | 29 | 0
    6. 1247 | xmax | 28 | 0
    7. 1247 | cmin | 29 | 0
    8. 1247 | xmin | 28 | 0
    9. 1247 | oid | 26 | 0
    10. 1247 | ctid | 27 | 0
    11. 1247 | typname | 19 | -1
    12. 1247 | typnamespace | 26 | -1
    13. 1247 | typbyval | 16 | -1
    14. 1247 | typtype | 18 | -1
    15. 1247 | typcategory | 18 | -1
    16. 1247 | typispreferred | 16 | -1
    17. 1247 | typisdefined | 16 | -1
    18. 1247 | typdelim | 18 | -1
    19. 1247 | typrelid | 26 | -1
    20. 1247 | typelem | 26 | -1
    21. 1247 | typarray | 26 | -1
    22. 1247 | typinput | 24 | -1
    23. 1247 | typoutput | 24 | -1
    24. 1247 | typreceive | 24 | -1
    25. 1247 | typmodout | 24 | -1
    26. 1247 | typanalyze | 24 | -1
    27. 1247 | typalign | 18 | -1
    28. 1247 | typstorage | 18 | -1
    29. 1247 | typnotnull | 16 | -1
    30. 1247 | typbasetype | 26 | -1
    31. 1247 | typtypmod | 23 | -1
    32. 1247 | typndims | 23 | -1
    33. 1247 | typcollation | 26 | -1
    34. 1247 | typdefaultbin | 194 | -1
    35. 1247 | typdefault | 25 | -1
    36. 1247 | typacl | 1034 | -1