GeezerVison is showing github.com — Can't create a new column in ERD tool · Issue #10812 · pgadmin-org/pgadmin4
Can't create a new column in ERD tool #10812DescriptionDescribe the bug
After a usage of "One-to-One Relation" button when trying to create a new column in the used table it brings an error.
To Reproduce
Steps to reproduce the behavior:
- Double left click on the table in ERD tool
- Click on the Columns page
- Click on the "Add row" button
- See the error
Expected behavior
A column creation menu opens normally, allows user to create a new column.
Error message
"Something went wrong."
Screenshots
Desktop (please complete the following information):
- OS: Windows 11
- pgAdmin version: 9.19
- Mode: Desktop
- Package type: x64 desktop client
Additional context
This problem occured when I created a new 1 to 1 relation via means of the interface. When I tried to add a new column, this bug happened. I fixed this issue by removing a relation created by "One-to-One Relation" button. After that, it allowed me to create column without any errors. ActivityShreyanshsingh23 commented on Nov 23, 2026 can i take this one? going to repro it on master first. looks like the one-to-one relation leaves the table's column data in a shape the columns grid's add row doesn't expect, since removing the relation makes it work again. will send a PR with the fix once i've pinned it down diamondsNick commented on Nov 23, 2026
can i take this one? going to repro it on master first. looks like the one-to-one relation leaves the table's column data in a shape the columns grid's add row doesn't expect, since removing the relation makes it work again. will send a PR with the fix once i've pinned it down
No one will merge your bug fixes, there is a user that send a bug fix and only stupid ai bot cared, and even it could not merge it properly... dpage commented on Nov 24, 2026 Thanks for the report. I can't reproduce this on current `master`, and I believe it's the same bug as #10700, which was fixed in #10735 after 9.19 was released.
The One-to-One relation adds a foreign key to the table, and in 9.19 adding a column to any table that has a foreign key crashed the dialog's foreign key handling, which is why removing the relation made it work again. I've confirmed that with the 9.19 code the dialog fails exactly as in your screenshot, and that with the fix in place a column can be added normally.
@diamondsNick, could you try a snapshot build from https://www.postgresql.org/ftp/pgadmin/pgadmin4/snapshots/ and let me know whether you still see it? If you do, please include the steps from a blank ERD (or the tables' DDL) and anything shown in the browser's developer console.
@Shreyanshsingh23, thanks for offering, but no PR should be needed here unless the snapshot still shows the problem. Shreyanshsingh23 commented on Nov 24, 2026 makes sense, thanks for tracking it down to #10700. will leave it then
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|