PostgreSQL
Connect a PostgreSQL Database
Connect PostgreSQL to Wobby
1. Create Role and User in PostgreSQL
-- Replace placeholder values with your actual schema and secure password
-- Create login role
CREATE ROLE wobby_login WITH LOGIN PASSWORD '<your_secure_password>';
-- Grant connection and usage privileges on the database
GRANT CONNECT ON DATABASE your_database_name TO wobby_login;
-- Grant usage on schema
GRANT USAGE ON SCHEMA your_schema_name TO wobby_login;
-- Grant read-only access to existing tables
GRANT SELECT ON ALL TABLES IN SCHEMA your_schema_name TO wobby_login;
-- Grant read-only access to existing views
GRANT SELECT ON ALL SEQUENCES IN SCHEMA your_schema_name TO wobby_login;2. Optional: Auto-Grant Future Access
3. Allow Wobby’s IP Address
4. Set Up the Connection in Wobby
Last updated