
What happened
EDB Postgres AI demonstrates a semantic layer built as an AIDB extension inside the operational Postgres database, using COMMENT statements, foreign keys, and Postgres grants. An agent on Amazon Bedrock AgentCore answers customer 360 questions, and a single column comment on purchases.price changes a top-customer answer from roughly $502,529 to $27,991.66.
Why it matters
Keeping business definitions in the same Postgres database means there is no second system to deploy or catalog to synchronize, so the semantic layer stays in one place that every agent reads from. The purchases.price comment shows that a definitional detail alone can mean the difference between a wrong and a right answer.
Summaries like this, every morning.
The post is part of a series that has already shown the same customer 360 pattern built on Stardog's knowledge graph, Denodo's data virtualization platform, AtScale's dimensional model, and Strategy Mosaic's linked models. The difference here is where the meaning layer lives: instead of a separate system, EDB Postgres AI places it inside the operational Postgres database as an AIDB extension, so schema and business definitions are indexed together and Postgres GRANT, row-level security, and column-level grants enforce access rather than an advisory system prompt. That design removes the need for a second system to deploy and a catalog to synchronize.
The post walks through the mechanics: COMMENT ON statements and aidb.create_semantic_alias act as the authoring surface, foreign keys crawl into join paths, and the built-in EDB MCP endpoint is fronted by an Application Load Balancer and registered as an MCP target on AgentCore Gateway. The concrete example of purchases.price shows why the semantic work matters: the column records the order total, not the unit price, and an agent that misreads it and multiplies by quantity returns roughly $502,529 for the top customer instead of $27,991.66. The same model, prompt, and tool catalog produce the wrong answer without the comment and the right one with it.
The governance section traces how identity flows from an Amazon Cognito user pool through AgentCore to the Postgres role that evaluates the SQL, with AgentCore Identity injecting the Postgres credential so the agent code never sees it. Two roles that differ only in a column-level GRANT produce different results for the same question, and AIDB captures OpenTelemetry traces for every SQL execution as rows in the aidb_otel schema queryable with ordinary SQL. The post also notes that in-database agents can be confined to a named Postgres role through AIDB purposes, while the external AgentCore path governs through Postgres roles at the MCP endpoint. For production, it recommends pairing Postgres GRANT with Amazon Bedrock Guardrails, since the database layer stops the agent from reading sensitive columns while Guardrails help prevent PII patterns from leaking through other paths in the model response.
Pick your industry and the AI tools you use, and get news related to your work every day.
Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →
Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.
Verra, founded by Kashyap Nathan and Christopher Farrington, raised $5 million in seed funding led by Kearny J…
Education Minister Sarah Al Amiri said Mira will launch in March for parents in UAE public schools, letting th…

A Zenn writer asked Claude Code to build a small Japanese library-lending Copilot Studio agent using PAC CLI…

Levent Alpöge published a 17-million-line Lean proof of the Riemann hypothesis, made with Claude; the Lean Foc…

UK-based Agon raised a $70 million Series A led by Northzone, with Lakestar, XYZ, Lux Capital, Global Founders…

BrightAI raised $97 million led by Smith Point Capital, with existing backers Khosla Ventures, Inspired Capita…
