In production, a view created by an admin isn’t immediately visible to limited users until a metadata query refresh triggers its appearance. Consider the example below:
-- Admin operations
CREATE VIEW temp_view AS SELECT item FROM inventory;
GRANT SELECT ON temp_view TO guest_user;
-- Guest user query
SELECT * FROM temp_view;