I have a ROW LEVEL SECURITY policy on the table part of an extension, and while dumping the database where that extension is installed, dumps the policy of that table too even though not dumpling that table .
Here is quick tests, where I have added following SQL to adminpack--1.0.sql extension file:
CREATE TABLE public.foo (i int CHECK(i > 0)); ALTER TABLE public.foo ENABLE ROW LEVEL SECURITY; CREATE POLICY foo_policy ON public.foo USING (true);
After installation and creation of this extension, the dump output will have policy without that table: