PostgreSQL
Create a Depot resource for PostgreSQL databases.
To create a Postgres Depot you must have the following details:
Pre-requisites specific to DataOS
A user with the Tenant Admin, Data Admin, or Data Developer Tenant role can create a Depot.
See Depot: Access control for who can create a Depot and how access to it is managed.
Run this command to see your assigned roles.
dataos-ctl user get
#Expected Output:
time="2026-03-30T17:49:18+05:30" level=info msg="😃 user get..."
time="2026-03-30T17:49:19+05:30" level=info msg="😃 user get...complete"
NAME │ ID │ TYPE │ EMAIL │ TAGS
──────────────┼───────────────────┼────────┼──────────────────────┼────────────────────────────────────────
I Am Groot │ iamgroottmdcio │ person │ iam.groot@tmdc.io │ roles:id:ct-onboarding-data-developer,
│ │ │ │ roles:id:user,
│ │ │ │ users:id:iamgroottmdcio
Pre-requisites specific to the source system
Database name: The name of the specific PostgreSQL database you want to connect to. This can be provided by the database administrator or found in the database management system where the database was created.
Hostname/URL of the server: The hostname or URL of the server where the PostgreSQL database is hosted. This is typically an IP address or a fully qualified domain name (FQDN). You can obtain this from your database administrator or the team managing the PostgreSQL server.
Parameters: Additional optional parameters are required for the connection, such as SSL settings or timeout configurations. These can be provided by the database administrator or found in your PostgreSQL server's documentation, depending on the connection requirements.
Username: The username used for authentication to access the PostgreSQL database. This is created when the user account is set up and can be provided by the database administrator.
Password: The password associated with the PostgreSQL username for authentication. This is set during user account creation and must be securely obtained from the database administrator if forgotten.
Create a Postgres Depot
A Depot of type POSTGRESQL connects to a PostgreSQL database and reads from its tables. One Depot covers all schemas visible to the configured user. To create a Depot of type POSTGRESQL, follow these steps:
Step 1: Create a Secret for securing Postgres credentials
Create a Secret Resource using the PostgreSQL guide.
Step 2: Create a Postgres Depot manifest file
Create a manifest file for your Postgres Depot.
Step 3: Apply the Depot manifest file
Apply the manifest with the DataOS CLI:
Verify the Depot creation
Verify the Depot in two ways:
List Depots where you are the owner:
List all Depots in the current Tenant:
Delete a Depot
To delete a Depot, use the DataOS CLI:
Specify the Resource type and Depot name in the delete command.
Example:
Last updated
Was this helpful?