| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 4 年前 | ||
| 4 年前 | ||
| 3 年前 | ||
| 4 年前 | ||
| 2 年前 | ||
| 4 年前 | ||
| 4 年前 | ||
| 3 年前 | ||
| 3 年前 |
Introduction
Tidrangescan provides a new scan type. Its implementation is based on the extensible operator of openGauss.
Tidrangescan adds a new executor node to support the use of the inequality operator to access system column ctid of a relation. For example, WHERE ctid >= '(10,0)'; will return all tuples on page 10 and over.
postgres=# EXPLAIN (costs off) SELECT * FROM t1 WHERE ctid >= '(10,0)';
QUERY PLAN
-------------------------------------
Tid Range Scan on t1
TID Cond: (ctid >= '(10,0)'::tid)
(2 rows)
Installation
Copy tidrangescan directory to openGauss-server/contrib and make.
cp contrib/tidrangescan /YOUR_PATH/openGauss-server/contrib -r
cd /YOUR_PATH/openGauss-server/contrib/tidrangescan
make && make install
Use extension
Connect to gaussdb and create extension.
CREATE EXTENSION tidrangescan;
Also need to add tidrangescan into a guc parameter named 'shared_preload_libraries' and restart the database to make it work.
# the default is 'security_plugin'
shared_preload_libraries = 'security_plugin, tidrangescan'