How do I connect my PostgreSQL database to Answerplane?
Navigate to Settings > Databases > Add Database, select PostgreSQL, and provide your connection details (host, port, database name, username, password). We recommend creating a dedicated read-only user for Answerplane. Connection strings like postgresql://user:pass@host:5432/db are also supported.
Does Answerplane support PostgreSQL-specific features?
Yes! Answerplane fully supports PostgreSQL-specific features including JSONB queries, arrays, CTEs (WITH clauses), window functions, full-text search, and PostgreSQL functions like DATE_TRUNC, EXTRACT, ARRAY_AGG, and more.
What PostgreSQL versions are supported?
Answerplane supports PostgreSQL 10 and newer, including Amazon RDS PostgreSQL, Azure Database for PostgreSQL, Google Cloud SQL PostgreSQL, Heroku Postgres, and self-hosted instances.
Can I use Answerplane with PostgreSQL views and materialized views?
Absolutely. Answerplane builds source context for both regular views and materialized views just like tables. The planner keeps the underlying structure visible in reviewable SQL plans.
How does Answerplane handle PostgreSQL foreign keys and relationships?
Live schema context detects foreign key relationships between tables. When questions span multiple tables, the planner builds reviewable JOIN plans using these relationships.
Is my PostgreSQL data secure with Answerplane?
Yes. We enforce read-only access, encrypt credentials at rest, and rely on your source permissions as the system of record. We do not ingest or replicate source contents wholesale; saved chats, dashboards, exports, uploads, and materialized artifacts are retained only when you use those features.
Can Answerplane query PostgreSQL JSONB columns?
Yes. Answerplane understands JSONB columns and can build inspectable queries using PostgreSQL's JSONB operators like @>, ->, ->>, #>, and more for requests such as 'find products where metadata has category electronics'.
What's the query performance like?
Plan drafting typically takes 1-3 seconds. Actual execution time depends on your PostgreSQL database performance. The planner builds SQL around indexes and WHERE clauses to keep execution reviewable.
Can I use Answerplane for PostgreSQL analytics and reporting?
Absolutely! Answerplane excels at analytics queries using aggregations (SUM, AVG, COUNT), GROUP BY, window functions, and date/time functions. Perfect for business intelligence and reporting use cases.
Does Answerplane support PostgreSQL partitioned tables?
Yes, Answerplane works seamlessly with PostgreSQL partitioned tables. Our introspection detects the partition structure, and queries work transparently across partitions.