Data Structures in PG
1 Hash & TapeSet
| |
2 Slot & tuple
| |
| |
| |
本文为摘录(或转载),侵删,原文为: https://github.com/powa-team/powa
Workload Analyzer.
本文为摘录(或转载),侵删,原文为: ../../../Work/pg_gpdb/src/backend/utils/time/sharedsnapshot.c
在 Greenplum 中,作为切片计划的一部分,许多 PostgreSQL 进程(qExecs,QE)在单个段数据库上运行,作为同一用户 SQL 语句的一部分。属于特定用户在特定段数据库上的所有 qExecs 需要具有一致的可见性。为此,使用了一种称为“共享本地快照”(Shared Local Snapshot)的思想。共享内存数据结构 SharedSnapshotSlot 在特定数据库实例上的会话的统一流程(gang processes)之间共享会话和事务信息。这些流程被称为 SegMate 进程组。
GP 提供了 gpcheckcat 用于在集群内检查系统表。
| 检查项 | 描述 | Utility 模式 | 复合查询 | 错误等级 |
|---|---|---|---|---|
| pg_class | Check pg_class entry that does not have any correspond pg_attribute entry | Y | N | NOREPAIR |
| namespace | Check for schemas with a missing schema definition | Y | N | NOREPAIR |
| unique_index_violation | Check for violated unique indexes | N | Y | NOREPAIR |
| duplicate | Check for duplicate entries | N | Y | |
| missing_extraneous | Cross consistency check for missing or extraneous entries | N | Y | |
| inconsistent | Cross consistency check for coordinator segment inconsistency | N | ||
| foreign_key | Check foreign keys | N |
Note:
| |
ResourceGroupGetQueryMemoryLimit(void) 用于获取内存限制的绝对大小 (非百分比)绕开资源限制模式
Enabled when:
gp_resource_group_bypass is true: guc_gp.c
| |
Or command is one of:
本文为摘录(或转载),侵删,原文为: https://docs.vmware.com/en/VMware-Tanzu-Greenplum/6/greenplum-database/GUID-install_guide-prep_os.html
IP Fragmentation Settings
When the Greenplum Database interconnect uses UDP (the default), the network interface card controls IP packet fragmentation and reassemblies.
If the UDP message size is larger than the size of the maximum transmission unit (MTU) of a network, the IP layer fragments the message. (Refer to Networking later in this topic for more information about MTU sizes for Greenplum Database.) The receiver must store the fragments in a buffer before it can reorganize and reassemble the message.
本文为摘录(或转载),侵删,原文为: ../../../Work/pg_master/src/backend/access/hash/README
这个目录包含了 Postgres 的散列索引实现。其中大部分核心思想来自于 Margo Seltzer 和 Ozan Yigit 在 1991 年 1 月举行的冬季 USENIX 会议上的论文《A New Hashing Package for UNIX》。我们的内存哈希表实现(src/backend/utils/hash/dynahash.c)也依赖于相同的概念;它源自于 Esmond Pitt 编写的代码,后来又由 Margo 和其他人进行了改进。
本文为摘录(或转载),侵删,原文为: https://www.digitalocean.com/community/tutorials/how-to-use-journalctl-to-view-and-manipulate-systemd-logs
要查看 journald 守护程序收集的日志,请使用 journalctl 命令。
当单独使用时,系统中的每个日志条目都会在翻页器(通常是 less)中显示,供您浏览。最旧的条目将显示在顶部:
本文为摘录(或转载),侵删,原文为: attachments/pdf/e/p1092-loghin.pdf
Abbrs:
学术界出现了集成分布式数据库与区块链特性的系统