Connect PostgreSQL to ChatGPT
Connect your PostgreSQL tables to ChatGPT with the Windsor.ai plugin.
Ask ChatGPT for totals from your tables, such as revenue by channel or by campaign. Compare them with Google Ads or Meta Ads in the same chat.
Connect in three steps. No code required.
Ask ChatGPT about your PostgreSQL tables
With the Windsor.ai plugin, ChatGPT answers questions from the PostgreSQL tables you connect in Windsor.ai.
Compare PostgreSQL with your ad platforms
Connect Google Ads or Meta Ads in Windsor.ai as well, and ask ChatGPT to compare ad spend by campaign with the revenue in your PostgreSQL leads or orders table. A shared column such as campaign name lets ChatGPT match the rows. After the first 30 days, a second source needs a paid plan (the free forever plan covers 1 source).
Find what changed and where
When a total from your PostgreSQL table drops, ask ChatGPT to split it by the other columns, such as channel, campaign or country, for the last 14 days and the 14 days before. The split shows which channel, campaign or country changed most.
Ask in plain language
Ask ChatGPT for revenue by channel, leads by pipeline stage or orders by country from your PostgreSQL table. ChatGPT picks the columns, the date range and any filters. Windsor.ai then returns the matching rows from your table. Marketing and sales teams can get a number without writing SQL or waiting for an analyst.
Count and rank records
Windsor.ai sends one row per record from your PostgreSQL table. ChatGPT can count those records in a short period as well as add up numbers. Ask how many leads reached each pipeline stage, which campaign brought the most closed deals, or what the average deal value is per channel.
How ChatGPT reads your PostgreSQL data through Windsor.ai
Windsor.ai connects to PostgreSQL with your host, port, user, password, database, schema and table name, one table at a time. After you connect, the field list shows the columns of that table. To use more tables or views from the same database, add each one the same way. Tables in one database count as one account on your plan. A view works if the database user has SELECT access to it.
Windsor.ai returns only the columns ChatGPT asks for, one row per matching record, for ChatGPT to add up or count in its answer. In our test on 19 November 2026, a request sent straight to Windsor.ai for revenue by channel for closed-won leads in a 45-row table came back as 18 rows, one per lead. Added up, that is 91,550 for Google Ads and 16,300 for Facebook Ads.
On the same day, we asked ChatGPT for the revenue and the number of these closed-won leads by channel, in two new chats. ChatGPT counted the leads correctly both times, 15 for Google Ads and 3 for Facebook Ads. In one of the two chats, it added up the Google Ads revenue 500 too high, at 92,050 instead of 91,550. Check a total against your PostgreSQL table before you use it.
Name the date column in your question, for example: “From my leads table, show revenue by channel for closed-won leads created in the last 30 days, using created_at as the date.” In our test through Windsor.ai, a request with no date column returned every row in the table. On the free forever plan, a question that names a date column reads the last 30 days. A table without a date column has no row age to filter on. In that case, Windsor.ai reads the current rows of the table.
How to connect PostgreSQL to ChatGPT with Windsor.ai
Watch the video tutorial, or follow the ChatGPT setup guide in our documentation.
Install the Windsor.ai plugin
In ChatGPT, select Plugins in the sidebar and search for Windsor.ai, or open the Windsor.ai plugin page.
Select Install plugin, then Connect Windsor.ai. Sign in to Windsor.ai and select Back to ChatGPT.
Query your PostgreSQL data in ChatGPT
Open a new chat, click + and choose Windsor.ai, or type @Windsor.ai. To check the connection, ask: “Which PostgreSQL tables and columns are connected to my Windsor.ai account?”
FAQs
Is there an official PostgreSQL plugin for ChatGPT?
No. ChatGPT’s Plugins directory has no PostgreSQL plugin by OpenAI (checked 19 November 2026), and PostgreSQL has no single vendor that could publish one. A search for “Postgres” lists third-party plugins that query databases, such as QueryBear and connectpak, and plugins from Postgres hosts, such as Neon and Fly.io. Supabase also has its own plugin, which runs SQL queries on Supabase databases. Each route fits a different need:
- A database plugin or your host’s plugin: you want ChatGPT to query your database directly, or your database is hosted on Supabase, Neon or Fly.io. Check each plugin’s page for what it can run.
- Windsor.ai plugin: you want rows from chosen tables next to Google Ads, Meta Ads, GA4 or any of Windsor.ai’s 350+ sources in one chat. Access is read-only (the PostgreSQL connector has no write actions).
Can ChatGPT change my PostgreSQL data through Windsor.ai?
No. The PostgreSQL connector has no write actions. Through Windsor.ai, ChatGPT can read your table but cannot insert, update or delete rows. For extra control, connect with a database user that has read access to that table only. The full list of sources with write actions is in the write actions documentation.
Which PostgreSQL tables and columns can ChatGPT see?
ChatGPT can read the PostgreSQL tables and views you add in Windsor.ai, and all the columns in each. Tables in one database count as one account on your plan. A view works if the database user has SELECT access to it. Windsor.ai lists your own column names as fields. Every connection also has five fields that Windsor.ai adds, such as the source name and today’s date. Windsor.ai does not join tables inside your database. To combine two tables, add both and ask ChatGPT to match them on a shared column.
How does Windsor.ai handle large PostgreSQL tables?
Windsor.ai has no documented row cap for PostgreSQL requests, but a large request can time out after about 3 minutes. To keep a request on a large table within that time, name a date column and a short period, filter on a column such as status or channel, set a row limit, or ask for totals.
Can I combine PostgreSQL with Google Ads or Meta Ads data?
Yes. Connect Google Ads, Meta Ads or any of the other sources in Windsor.ai as well, and ask ChatGPT to compare them with your PostgreSQL table for the same period, by date or by a shared column such as campaign name. Testing several sources is free for the first 30 days. After that, the free forever plan covers 1 source, and paid plans start at $19/month for 3 sources (Basic) or $99/month for 7 (Standard), billed annually.
What prompts can I use to analyze PostgreSQL data in ChatGPT?
In ChatGPT, name the PostgreSQL table, the columns and the date column, and ask for totals, counts or a comparison. Try prompts such as:
From my subscriptions table, show the total of the mrr column by plan for subscriptions started in the last 30 days, using start_date as the date.From my leads table, count the leads by channel and pipeline_stage for this month, using created_at as the date. Which channel has the highest share of closed-won leads?From my orders table, show revenue by day for the last 30 days, using order_date as the date, and flag any day more than 30% below the average.From my refunds table, show the total refund amount by reason for the last 7 days and the 7 days before, using refunded_at as the date. Which reasons grew?
Each prompt reads one table. Prompts that combine PostgreSQL with another source need a paid plan after the first 30 days. On the free forever plan, prompts that name a date column read the last 30 days. Without a date column, Windsor.ai reads the table’s current rows.
How fresh is the PostgreSQL data in ChatGPT?
Windsor.ai reads your PostgreSQL table when ChatGPT asks and keeps the result for 6 hours. The same query within those 6 hours returns the stored result.
How much does it cost to connect PostgreSQL to ChatGPT with Windsor.ai?
You can start on Windsor.ai’s free forever plan, no credit card. For the first 30 days it covers up to 10 sources and 15 accounts. After that, the free forever plan covers 1 user, 1 data source and 1 account with the last 30 days of data, and PostgreSQL can be that source. Paid plans start at $19/month for 3 sources (Basic). Standard is $99/month for 7 sources. Both prices are per month with annual billing. See the pricing page for every plan.
Do you have helpful links to get started with integrating PostgreSQL and ChatGPT using Windsor.ai?
Yes. These pages cover setup, prompts and the PostgreSQL fields.
- How to connect PostgreSQL to ChatGPT: setup steps, example prompts and troubleshooting
- Connect PostgreSQL to Claude: the same connection in Claude
- Connect BigQuery to ChatGPT, Snowflake to ChatGPT and MySQL to ChatGPT: other databases in ChatGPT
- PostgreSQL Field Reference: the fields every PostgreSQL account has
- ChatGPT Integration Documentation: the Windsor.ai plugin for any source
Tired of manual PostgreSQL data exports? Try Windsor.ai today to automate your reporting

