Create a virtual table from PostgreSQL

Choose a PostgreSQL table or view, map its fields, and verify the resulting read-only table in Mainbase.

Start with an active PostgreSQL connection. A virtual table reads from one of the database tables or views that the connected account can access. For example, you can use a reporting view that contains only the columns needed in Mainbase.

Choose the source and check its fields

  1. In Settings → Workspace → PostgreSQL, open the action menu on the connection and select Create Virtual Table.
  2. In Select Schema, choose the schema that owns the source. In Select Table, choose the table or view. If it is missing, check the schema and the connected database account’s access to the source.
  3. Continue to Map Fields. Check the type and display label for each field you plan to use. In Preview Data, compare an expected field or known sample record with the source.
  4. In Configure Entity, give the Mainbase table a recognizable name. Check the refresh information and select Create Virtual Table.

Open the virtual table and confirm it shows the expected fields and records. If no records appear, check any Mainbase view filters, then verify that the database source has records the connected account can read.

Diagnose PostgreSQL table read access in Mainbase

Ask Mainbase AI

Ask about any feature in Mainbase. Find a setting, get step-by-step guidance, or troubleshoot a problem.

Open the AI assistant

Copy a question to get started

  • How do I create a Kanban view?
  • How do I invite a teammate?
  • Why is a record missing from this view?