GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Editing a row with expression/alias columns in Query Tool fails to save with "column does not exist" error · Issue #10103 · pgadmin-org/pgadmin4

Editing a row with expression/alias columns in Query Tool fails to save with "column does not exist" error #10103

New issue
Copy link
New issue
Copy link
Closed
Closed
Editing a row with expression/alias columns in Query Tool fails to save with "column does not exist" error#10103
Copy link
Labels
Bug

Description

@hiteshjambhale
hiteshjambhale
opened on Jun 16, 2026
Issue body actions

Describe the bug

If your query includes a calculated or aliased column — for example first_name || ' ' || last_name AS the_name — and you edit any cell on an existing row and hit Save, pgAdmin throws an error. It tries to update the alias column (the_name) on the table, which doesn't actually exist as a real column. The column header shows a lock icon, so pgAdmin already knows it's not editable — but it still includes it when building the UPDATE.

To Reproduce

Open the Query Tool on any database where you can create tables.
Run this to set up a test table with some data:

DROP TABLE IF EXISTS some_table;
CREATE TABLE some_table (id INT PRIMARY KEY, first_name TEXT, last_name TEXT);
INSERT INTO some_table VALUES (1, 'John', 'Doe');

SELECT id, first_name, last_name,
first_name || ' ' || last_name AS the_name
FROM some_table;
In the result grid, click on an editable cell — for example, change first_name from John to Jane.
Press F5 to save.
You'll see an error in the result panel.

Expected behavior

The save should succeed. Only real table columns (id, first_name, last_name) should be updated. The alias column the_name should be ignored completely.

Error message

ERROR: column "the_name" of relation "some_table" does not exist
LINE 2: the_name = $1::text WHERE

Activity

  1. hiteshjambhale
    added
    Bug
    on Jun 16, 2026
  2. dpage
    added 2 commits that reference this issue on Aug 18, 2026

    fix: exclude non-editable/alias columns from Query Tool row UPDATE

    This issue will close once commit 693aa97 is merged into the 'master' branch.
    693aa97

    fix: exclude non-editable alias/expression columns from UPDATE saves …

    This issue will close once commit d6339e0 is merged into the 'master' branch.
    d6339e0
  3. dpage
    added 2 commits that reference this issue on Sep 23, 2026

    fix: exclude non-editable alias/expression columns from UPDATE saves …

    e9fa121

    fix: exclude non-editable alias/expression columns from UPDATE saves …

    1ace659
  4. dpage
    added 3 commits that reference this issue on Oct 6, 2026

    fix: exclude non-editable alias/expression columns from UPDATE saves …

    51cf2a2

    fix: exclude non-editable alias/expression columns from UPDATE saves …

    b068a06

    Exclude non-editable alias and expression columns from Query Tool UPD…

    224c486
  5. dpage commented on Oct 12, 2026

    @dpage
    dpage
    on Oct 12, 2026
    Contributor
    More actions

    Fixed by #10329 (224c486).

  6. dpage
    closed this as completedon Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.