一般在postgresql中,表的信息都在pg_tables表中: SELECT count(tablename) FROM pg_tables where schemaname = 'scheme_name_XXX'