普通用户执行 analyze verify fast 报错修复

This commit is contained in:
he-shaoyu
2024-02-26 11:19:34 +08:00
parent ef69af7604
commit 6a8c85a170
3 changed files with 27 additions and 1 deletions

View File

@ -9846,7 +9846,6 @@ static void pgxc_rq_fire_astriggers(RemoteQueryState* node)
bool IsInheritor(Oid relid)
{
ereport(ERROR, (errcode(ERRCODE_INVALID_PARAMETER_VALUE), errmsg("10655")));
Relation pginherits;
SysScanDesc scan;
ScanKeyData key[1];

View File

@ -1,3 +1,17 @@
--test analyze verify skip table
create database ana;
\c ana;
create user u1 password 'Aa@12345';
create user u2 password 'Aa@12345';
set role u2 password 'Aa@12345';
create table tb2(id int);
set role u1 password 'Aa@12345';
analyze verify fast;
WARNING: skipping "tb2" --- only table or database owner can verify it
analyze verify complete;
WARNING: skipping "tb2" --- only table or database owner can verify it
\c regression;
drop database ana;
-- prepare
CREATE ROLE db_priv_user PASSWORD '1234567i*';
CREATE ROLE db_priv_user1 PASSWORD '1234567i*';

View File

@ -1,3 +1,16 @@
--test analyze verify skip table
create database ana;
\c ana;
create user u1 password 'Aa@12345';
create user u2 password 'Aa@12345';
set role u2 password 'Aa@12345';
create table tb2(id int);
set role u1 password 'Aa@12345';
analyze verify fast;
analyze verify complete;
\c regression;
drop database ana;
-- prepare
CREATE ROLE db_priv_user PASSWORD '1234567i*';
CREATE ROLE db_priv_user1 PASSWORD '1234567i*';