



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Learn how to debug postgresql using gdb (gnu debugger). This comprehensive guide covers creating test data, setting up the environment, using gdb commands, and debugging sequence scan and index scan. Recommended for university students and lifelong learners.
Typology: Study notes
1 / 6
This page cannot be seen from the preview
Don't miss anything!




create table t1 (c1 int primary key, c2 int ); 1.2 建索引 create index index1 on t1 (c2); 1.3 插入测试数据 insert into t1 SELECT generate_series(1,10000) as key, (random()*(10^3))::integer;
2 调试语法树 2.1 GDB 2.1.1 代码查看行数 set nu 2.1.2 用到的GDB命令
2.3 PG 执行查询 select * from t1 limit 3; 2.4 调试 语法树
其中 SelectStmt
FromClause
2.5 Query Tree 查询树调试
打断点 :b SeqNext 执行SQL :select * from t1 limit 3;