Version v0.43 of Metabase is no longer supported. Check out the docs for the current stable version, Metabase v0.63.
In addition to specifying the host, port, database name and user credentials for the database connection, you have the option of securing that connection.
Here you can specify which schemas you want to sync and scan. Options are:
For the Only these and All except options, you can input a comma-separated list of values to tell Metabase which schemas you want to include (or exclude). For example:
foo,bar,baz
You can use the * wildcard to match multiple schemas.
Let’s say you have three schemas: foo, bar, and baz.
b*, you’ll sync with bar and baz.b*, you’ll just sync foo.Note that only the * wildcard is supported; you can’t use other special characters or regexes.
PostgreSQL databases support different levels of security with their connections, with different levels of overhead.
SSL Mode options include:
See the PostgreSQL docs for a table about the different SSL Modes, and select the option that works for you.
If you set the SSL Mode to either “verify-ca” or “verify-full”, you’ll need to specify a root certificate (PEM). You have the option of using a Local file path or an Uploaded file path. If you’re on Metabase Cloud, you’ll need to select Uploaded file path and upload your certificate.
You have the option of using a Local file path or an Uploaded file path. If you’re on Metabase Cloud, you’ll need to select Uploaded file path and upload your certificate.
Again, you have the option of using a Local file path or an Uploaded file path. If you’re on Metabase Cloud, you’ll need to select Uploaded file path and upload your certificate.
You’ll also need to input your SSL Client Key Password.
You can set up an SSH tunnel by supplying the tunnel host, port, tunnel username, and SSH authentication credentials, either using an SSH Key and passphrase, or a password.
For more, see SSH tunneling in Metabase.
Here you can add on to your connection string.
We execute the underlying query when you explore data using Summarize or Filter. This is on by default, but you can turn it off if performance is slow.
This is a lightweight process that checks for updates to this database’s schema. In most cases, you should be fine leaving this set to sync hourly.
This enables Metabase to scan for additional field values during syncs allowing smarter behavior, like improved auto-binning on your bar charts.
Postgres JSON fields don’t have schema, so Metabase can’t rely on table metadata to define which keys a JSON field has. To work around the lack of schema, Metabase will get the first ten thousand records and parse the JSON in those records to infer the JSON’s “schema”. The reason Metabase limits itself to ten thousand records is so that syncing metadata doesn’t put unnecessary strain on your database.
The problem is that if the keys in the JSON vary record to record, the first ten thousand rows may not capture all the keys used by JSON objects in that JSON field. To get Metabase to infer all the JSON keys, you’ll need to add the additional keys to the JSON objects in the first ten thousand row.