fn pg_get_viewdef_impl( catalog: &CatalogReader, db_name: &str, oid: i32, writer: &mut impl Write, ) -> Result<()>