1.1 Logical Structure of Database Cluster
1.1. Logical Structure of Database Cluster
Figure 1.1 shows the logical structure of a database cluster. A database is a collection of database objects. In the relational database theory, a database object is a data structure used either to store or to reference data. A (heap) table is a typical example of it, and there are many more like an index, a sequence, a view, a function and so on. In PostgreSQL, databases themselves are also database objects and are logically separated from each other. All other database objects (e.g., tables, indexes, etc) belong to their respective databases.
圖1.1 展示了資料庫的邏輯結構。 資料庫中包含了表、索引、檢視、函式、序列等。 在資料庫叢集中每個資料庫是相互獨立的。
All the database objects in PostgreSQL are internally managed by respective object identifiers (OIDs), which are unsigned 4-byte integers. The relations between database objects and the respective OIDs are stored in appropriate system catalogs, depending on the type of objects. For example, OIDs of databases and heap tables are stored in pg_database and pg_class respectively, so you can find out the OIDs you want to know by issuing the queries such as the following:
PostgreSQL 資料庫中的所有物件都有自己的Object ID(OID)。 這些物件的object id 都儲存在system catalogs中。
例如:資料庫和表的oids 分別記錄在pg_database, pg_class中。 可以透過下列命令進行查詢:
參考文件:
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/21374452/viewspace-2779726/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 1.2 Physiacel Structure of Database ClusterStructDatabase
- Oracle DG建立Logical Standby DatabaseOracleDatabase
- DrawERD makes it easy to visualize your database structure.DatabaseStruct
- 4 Creating a Logical Standby Database 建立邏輯備庫Database
- MySQL 8.0 Reference Manual(讀書筆記56節--Optimizing Database Structure)MySql筆記DatabaseStruct
- 在 Google Kubernetes Cluster 上使用 HANA Expression Database ServiceGoExpressDatabase
- oracle ocp 19c考題8,科目082考試題-logical and physical database structuresOracleDatabaseStruct
- data structureStruct
- [AlwaysOn2017] AlwaysOn的DMV和DMF - Sys.dm_hadr_database_replica_cluster_statesDatabase
- Oracle RAC啟動歸檔時需要設定CLUSTER_DATABASE引數嗎?OracleDatabase
- How to Optimize PostgreSQL Logical ReplicationSQL
- Linux 建立LVM(Logical Volume)LinuxLVM
- OpenAPI Basic StructureAPIStruct
- Data Structure_樹Struct
- sqrt-data-structureStruct
- idea--Project StructureIdeaProjectStruct
- [20181113]Logical Standby建立2.txt
- SAP Spartacus Reference App StructureAPPStruct
- 1.1
- 2.3.1.1.3 Application Containers Use Case: Logical Data WarehouseAPPAI
- rust-quiz:021-closure-or-logical-or.rsRustUI
- The database owner SID recorded in the master database differs from the database owner SID recorded in database 'DB_NAME'DatabaseAST
- Half-Edge-Mesh-Data-StructureStruct
- Composition and Structure of an INVOIC IDoc in SAP ERPStruct
- SAP ABAP Append structure 介紹APPStruct
- Oracle Database Cloud - Database as a Service Quick StartOracleDatabaseCloudUI
- Error querying database. XXXXXXXXXXXXX, No database selected。ErrorDatabase
- Convert a Physical Standby Database into a Snapshot Standby DatabaseDatabase
- 精讀《國際化佈局 – Logical Properties》
- Oracle 19c Concepts(12):Logical Storage StructuresOracleStruct
- redis.cluster/memcached.cluster/wmware esxiRedis
- Structure of Linux Kernel Device Driver(Part II)StructLinuxdev
- cluster meet
- MySQL ClusterMySql
- Database TimeoutDatabase
- Database OverallDatabase
- database no shardingDatabase
- Linux LVM Logical Volume Management 邏輯卷的管理LinuxLVM