Skip to main content

Crawl PostgreSQL

Extract metadata assets from your PostgreSQL database into Atlan.

Prerequisites

Before you begin, verify you have:

Create crawler workflow

Create a new workflow and select PostgreSQL as your connector source.

  1. In the top right of any screen in Atlan, navigate to New > New Workflow.
  2. From the Marketplace page, click Postgres Assets > Setup Workflow.

Configure extraction

When setting up metadata extraction from your PostgreSQL database, choose how Atlan connects and extracts metadata. Select the extraction method that best fits your organization's security and network requirements:

Atlan SaaS connects directly to your PostgreSQL database. This method supports Basic and IAM authentication and lets you test the connection before proceeding.

  1. For Host, enter the host for your PostgreSQL instance.
  2. For Port, enter the port number of your PostgreSQL instance (default: 5432).
  3. Choose an authentication type that matches your PostgreSQL configuration:
  1. Select Basic authentication.
  2. For Username, enter the username you configured in PostgreSQL.
  3. For Password, enter the password for the username.
  1. For Database, enter the name of the database to crawl.
  2. Click Test Authentication to confirm connectivity to PostgreSQL. When successful, click Next to proceed with the connection configuration.

Configure connection

Set up the connection name and access controls for your PostgreSQL data source in Atlan.

  1. Provide a Connection Name that represents your source environment. For example, you might use values like production, development, gold, or analytics.
  2. To change the users able to manage this connection, update the users or groups listed under Connection Admins. If you don't specify any user or group, nobody can manage the connection (not even admins).
  3. At the bottom of the screen, click Next to proceed.

Configure crawler

Before running the crawler, you can configure which assets to include or exclude:

  • To exclude specific assets from crawling, click Exclude Metadata. This defaults to no assets if none are specified.
  • To include specific assets in crawling, click Include Metadata. This defaults to all assets if none are specified.
  • To have the crawler ignore tables and views based on a naming convention, specify a regular expression in the Exclude regex for tables & views field.
  • For Advanced Config, keep Default for the default configuration or click Custom to configure the crawler:
    • For Enable Source Level Filtering, click True to enable schema-level filtering at source or click False to disable it.
    • For Use JDBC Internal Methods, click True to enable JDBC internal methods for data extraction or click False to disable it.

If an asset appears in both the include and exclude filters, the exclude filter takes precedence.

Run crawler

  1. Click Preflight checks to validate permissions and configuration before running the crawler. This helps identify any potential issues early.
  2. After the preflight checks pass, you can either:
    • Click Run to run the crawler once immediately.
    • Click Schedule Run to schedule the crawler to run hourly, daily, weekly, or monthly.

Once the crawler has completed running, you can see the assets on Atlan's asset page.

See also