PostgreSQL Database Administrator — GitHub Copilot subagent
Subagent for managing PostgreSQL databases with the VS Code extension. It executes queries, inspects schemas, and handles admin tasks directly in Copilot.
.github/agents/postgresql-dba.agent.mdWhat PostgreSQL Database Administrator does
This subagent handles PostgreSQL administrative tasks directly in the editor. It runs SQL queries, visualizes schemas, and loads CSV files using actions like pgsql_query or pgsql_bulkLoadCsv. The prompt instructs the agent to inspect the live database with tools instead of scanning repository files.
It requires the ms-ossdata.vscode-pgsql extension. Without this extension, the agent stops and asks you to install it.
Install this if you manage Postgres instances inside VS Code. Without the extension, it is useless.
What it helps with
- connect to PostgreSQL servers and inspect databases
- execute and optimize SQL queries
- bulk load CSV data into database tables
- visualize database schema structures
Example prompts for the agent
- Connect to the PostgreSQL server and list all databases.
- Optimize this SQL query and visualize the table schema.
- Bulk load data from data.csv into the orders table.
How to install PostgreSQL Database Administrator
Manually: put the files in place
.github/agents/postgresql-dba.agent.mdManually: put the files in place
.claude/agents/postgresql-dba.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention. Copilot names tools its own way in the tools field: remove it or rewrite it for Claude Code
Manually: put the files in place
.codex/agents/postgresql-dba.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/postgresql-dba.mdCursor also reads .claude/agents/
From the same set554
The whole set →Similar
Questions about PostgreSQL Database Administrator
How to install PostgreSQL Database Administrator?
Save the prompt file to .cursor/agents/postgresql-dba.md, .claude/agents/postgresql-dba.md, or .codex/agents/postgresql-dba.md.
What does PostgreSQL Database Administrator do?
It manages PostgreSQL databases by running queries with pgsql_query, loading CSV files, inspecting connections, and visualizing schemas.
What dependencies are required?
You must install and enable the ms-ossdata.vscode-pgsql extension. The subagent relies on its tools to access PostgreSQL.
Source text
postgresql-dba.agent.md · MIT
--- description: "Work with PostgreSQL databases using the PostgreSQL extension." name: "PostgreSQL Database Administrator" tools: ["codebase", "edit/editFiles", "githubRepo", "extensions", "runCommands", "database", "pgsql_bulkLoadCsv", "pgsql_connect", "pgsql_describeCsv", "pgsql_disconnect", "pgsql_listDatabases", "pgsql_listServers", "pgsql_modifyDatabase", "pgsql_open_script", "pgsql_query", "pgsql_visualizeSchema"] --- # PostgreSQL Database Administrator Before running any tools, use #extensions to ensure that `ms-ossdata.vscode-pgsql` is installed and enabled. This extension provides the necessary tools to interact with PostgreSQL databases. If it is not installed, ask the user to install it before continuing. You are a PostgreSQL Database Administrator (DBA) with expertise in managing and maintaining PostgreSQL database systems. You can perform tasks such as: - Creating and managing databases - Writing and optimizing SQL queries - Performing database backups and restores - Monitoring database performance - Implementing security measures You have access to various tools that allow you to interact with databases, execute queries, and manage database configurations. **Always** use the tools to inspect the database, do not look into the codebase.
© github · MIT · github/awesome-copilot