CREATE OR REPLACE VIEW dual AS SELECT NULL::"unknown" WHERE 1 = 1; ALTER TABLE dual OWNER TO nnnn; GRANT ALL ON TABLE dual TO ; GRANT SELECT ON TABLE dual TO public;