Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PC×
Skip to content
World desk4 min

5 Things AI Cannot Do at PostgreSQL (and What to Check Instead)

AI can help write and run PostgreSQL queries, but it cannot replace database authorization, version checks, operational judgment or human accountability. Here are five boundaries to plan around, using PostgreSQL 18 and pgAdmin 4 9.18.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

AI tools can write SQL, explain execution plans and, in some tools, run queries against a live PostgreSQL database. What they cannot do is replace the database’s own authorization rules, supply context they were never shown, guarantee that generated SQL fits your PostgreSQL major version, judge operational impact from a prompt alone, or take responsibility for what gets executed. The examples below use PostgreSQL 18 and pgAdmin 4 9.18, the versions documented for this guidance as of October 2026. Other products and configurations can behave differently.

1. AI cannot know what it has not been shown

A standalone language model has no automatic knowledge of your schema, configuration, data volumes or workload. A database-connected assistant can receive some of that context, but only what the tool chooses to send or what you explicitly select.

In pgAdmin 4 9.18, what leaves your environment depends on the feature you invoke and the provider you configure. Depending on the feature, data sent to a cloud LLM provider can include schema definitions, settings read from pg_settings, query text and EXPLAIN output. pgAdmin’s documentation states that no information is transmitted unless an AI feature is invoked, and it documents local-provider options for teams that cannot send database metadata to a third party.

The Query Tool AI Assistant can also run queries. The pgAdmin 4 9.18 documentation says: “The AI Assistant in the Query Tool is also able to run queries against your database, within a read-only transaction and limited to 1000 rows, so row data may be included where the assistant determines it is needed to answer a question.” The 1,000-row limit applies to that assistant; it is not a universal ceiling for every AI tool. Read-only execution also does not mean nothing leaves the environment, because the provider you choose determines where prompts and returned results are processed.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

2. AI cannot replace database authorization

PostgreSQL enforces privileges and row-level security (RLS) inside the database engine. An assistant’s suggested policy or GRANT statement is only a proposal until the server evaluates it against real roles. The key rules in PostgreSQL 18 are:

  • RLS is not active by default. Enabling it on a table without any policies gives default-deny behavior for ordinary access.
  • Table owners normally bypass policies, so a generated policy may appear to work when tested as the owner and fail or leak when tested as an application role.
  • The PostgreSQL 18 documentation states: “Superusers and roles with the BYPASSRLS attribute always bypass the row security system when accessing a table.”
  • TRUNCATE and REFERENCES are not covered by row security, so a policy written for SELECT, INSERT, UPDATE or DELETE does not protect against them.

Any access statement an AI produces needs review against the actual roles, ownership, grants, policy combinations and command types in your database.

3. AI cannot guarantee SQL that is correct for your PostgreSQL version

PostgreSQL has its own syntax, functions, catalog views and behavior, and those change between major releases. Standards support does not settle the question. The PostgreSQL 18 SQL Conformance appendix says that “PostgreSQL supports most of the major features of SQL:2023,” and reports support for at least 170 of 177 mandatory Core features. The same appendix describes its feature lists as approximate, notes that features may differ in detail, and states that no DBMS claims full Core SQL:2023 conformance at the time of writing. A standard-compliant query can therefore still depend on PostgreSQL-specific behavior, and a query that works on one major version may need changes on another.

Version coverage also moves. At the time of the documentation check (accessed 2026), the PostgreSQL project listed 18, 17, 16, 15 and 14 as supported major versions, and documented 18.6 as the current minor release. Listing a version as supported is not a recommendation to run every listed version, and the list will change.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

4. AI cannot judge operational impact from a prompt alone

A proposed query or migration can be harmless on a development schema and damaging on a production table. Judging the consequence requires information a prompt rarely contains: table size and data distribution, existing indexes, permissions, concurrent workload, lock behavior of the statement, and a tested recovery path.

The pgAdmin and PostgreSQL documentation does not publish an error rate for AI-generated SQL, so this point rests on engineering reasoning rather than measured failure statistics. Treat AI output as a draft that needs the same review you would give a colleague’s change, and assess its impact with real catalog data before running it.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

5. AI cannot take accountability for execution and review

pgAdmin’s AI features can produce security, performance and design reports. The documentation presents these as findings, risk assessments, recommendations and best practices. They are advisory artifacts. They do not carry authority to change a database, and they do not transfer responsibility for the outcome.

A named engineer or operator remains responsible for validating each recommendation, applying changes through authorized workflows and documenting what was changed and why. That accountability cannot be delegated to the assistant, regardless of how confident its report sounds.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Checks to run before acting on AI output

  • Confirm the server version with SELECT version(); and check the command reference for that exact major release.
  • Check the role you will execute as: SELECT rolname, rolsuper, rolbypassrls FROM pg_roles WHERE rolname = current_user;. A superuser or BYPASSRLS role will ignore policies you are trying to test.
  • Check RLS status on each affected table: SELECT relname, relrowsecurity, relforcerowsecurity FROM pg_class WHERE relname = 'your_table';. Confirm whether owners are subject to policies (relforcerowsecurity).
  • Test generated policies and migrations on a restored copy with realistic data volume, using a non-owner application role.
  • Before enabling a cloud AI provider in pgAdmin, confirm which feature sends schema, settings, query text or row data, and whether a local provider is an option.
  • Keep an approval step and a rollback plan for any change the assistant proposes.

Feature behavior, provider choices and supported versions are documented as of October 2026 and can change, so recheck the current pgAdmin and PostgreSQL documentation before relying on these details.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.