Skip to main content

postgres_catalogs

Creates, updates, deletes, gets or lists a postgres_catalogs resource.

Overview

Namepostgres_catalogs
TypeResource
Iddatabricks_workspace.postgres.postgres_catalogs

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
createinsertcatalog_id, deployment_name, catalogRegister a Postgres database in the Unity Catalog.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
catalog_idstringThe ID in the Unity Catalog. It becomes the full resource name, for example "my_catalog" becomes "catalogs/my_catalog".
deployment_namestringThe Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc)

INSERT examples

Register a Postgres database in the Unity Catalog.

INSERT INTO databricks_workspace.postgres.postgres_catalogs (
catalog,
catalog_id,
deployment_name
)
SELECT
'{{ catalog }}' /* required */,
'{{ catalog_id }}',
'{{ deployment_name }}'
;