首页 > 数据库 >PostgreSQL里TID(对应于oracle里的rowid)

PostgreSQL里TID(对应于oracle里的rowid)

时间:2022-11-19 10:01:13浏览次数:42  
标签:PostgreSQL tuple within number oracle rowid TID ctid

To identify a tuple within the table, tuple identifier (TID) is internally used. A TID comprises a pair of values: the block number of the page that contains the tuple, and the offset number of the line pointer that points to the tuple. A typical example of its usage is index.


TID-Scan is a method that accesses a tuple directly by using TID of the desired tuple. For example, to find the 1st tuple in the 0-th page within the table, issue the following query:

sampledb=# SELECT ctid, data FROM sampletbl WHERE ctid = '(0,1)';
 ctid  |   data    
-------+-----------
 (0,1) | AAAAAAAAA
(1 row)

标签:PostgreSQL,tuple,within,number,oracle,rowid,TID,ctid
From: https://www.cnblogs.com/gwgwgw/p/16905505.html

相关文章

  • Oracle创建静态监听
    Oracle创建静态监听查看监听状态[oracle@oracleadmin]$lsnrctlstatusLSNRCTLforLinux:Version12.2.0.1.0-Productionon18-NOV-202222:20:18Copyright......
  • oracle 索引操作
     1查询表中所有的索引--固定写法"tb_user"为表名select*fromuser_indexeswheretable_name='tb_user' 2创建索引--多个字段用逗号隔开createindex索......
  • mysql导出 TIDB导入
    tiupdumpling-h10.10.14.229-P22066-uroot-p123456-t16-r200000-F256MiB-Btest_db-o's3://dsideal/HuangHai/TiDB?access-key=AK&secret-access-key=SK......
  • Cause: org.postgresql.util.PSQLException: ERROR: could not determine data type o
      1 Cause:org.postgresql.util.PSQLException:ERROR:couldnotdeterminedatatypeofparameter$1  无法确定参数类型: 找到对应的入参  进行强......
  • ORACLE中%TYPE和%ROWTYPE的使用
    1、%TYPE为了使一个新定义的变量与另一个已经定义了的变量(通常是表的某一列)的数据类型保持一致,Oracle提供了%Type的定义方式,当被参照的那个变量的数据类型发生改变......
  • Purging/Cleaning Sysaux Tablespace In Oracle
    RestrictionsonSYSAUXtablespace1.UsingSYSAUXDATAFILEclauseintheCREATEDATABASEstatementyoucanspecifyonlydatafileattributesinSYSAUXtablespac......
  • 【转载】Oracle11gR2 RAC primary+Single standby DG配置实践
    很久之前做的实验,今天在CSDN存档一下:说明:RACprimary和Singlestandby配置2节点RAC和1个singleinstance组成的dataguard环境。 1.环境介绍Primarydatabase是一个......
  • oracle中with的用法是什么
    oracle中with的用法是什么在oracle中,with语句可以实现子查询,用于创建一个公共临时表,提高语句执行的效率,语法为“withtempNameas(select....)select...”。我们在ora......
  • Oracle重建索引
    创建表createtablestudent(student_idnumber,namevarchar2(240))tablespaceschool_data;创建索引createindexstudent_n1onstuden(name);查看......
  • Oracle的Pctfree
    1、创建一张表createtablestudent(student_idnumber);但是在pl/sql中查看却是以下的建表语句:--CreatetablecreatetableSTUDENT(student_idNUMBER)tab......