Optimize pgsql

This commit is contained in:
sunkaixuan 2022-11-14 20:00:36 +08:00
parent b0a9e1cef1
commit fc86ea4e00

View File

@ -201,7 +201,7 @@ namespace SqlSugar
{
get
{
return " Select count(1) from (SELECT to_regclass('{0}') as c ) t where t.c is not null";
return " SELECT count(1) WHERE upper('{0}') IN ( SELECT upper(indexname) FROM pg_indexes )";
}
}