Execute the following SQL commands, replacing the placeholders with your specific details:
Copy
-- Create dedicated userCREATE USER index_user WITH PASSWORD '<secure-password>';-- Grant database accessGRANT CONNECT ON DATABASE <database> TO index_user;-- Grant schema permissionsGRANT USAGE ON SCHEMA <schema> TO index_user;-- Grant table accessGRANT SELECT ON ALL TABLES IN SCHEMA <schema> TO index_user;-- Set up automatic access to new tablesALTER DEFAULT PRIVILEGES IN SCHEMA <schema>GRANT SELECT ON TABLES TO index_user;