我原本想查询用户被禁言的原因。我尝试根据经验猜测,搜索名称中包含 __silence__ 的字段,但仍未找到:
select t.table_schema,
t.table_name
from information_schema.tables t
inner join information_schema.columns c on c.table_name = t.table_name
and c.table_schema = t.table_schema
where c.column_name LIKE 'silence%'
and t.table_schema not in ('information_schema', 'pg_catalog')
and t.table_type = 'BASE TABLE'
order by t.table_schema;