Update minirepro to issue DELETE command only when we are inserting stats for catalog table
In minirepro, the following query is generated:
```
DELETE FROM pg_statistic WHERE starelid='tpcds.catalog_returns_1_prt_27'::regclass AND staattnum=22;
INSERT INTO pg_statistic VALUES ......
```
It only has existing stats entries for catalog tables, so for non-catalog
table, the DELETE command is useless, and slows down the speed of loading
minirepro.
We should NOT generate DELETE query for non-catalog tables.
Signed-off-by: NEkta Khanna <ekhanna@pivotal.io>
Showing
想要评论请 注册 或 登录