CREATE SCHEMA IF NOT EXISTS logstore; GRANT ALL ON ALL TABLES IN SCHEMA logstore TO %[1]s;