Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PgAdmin 4: Cannot edit rows from one table

Something strange is happening with my new created tables in Postgres, I can add data to them, but I cannot use PgAdmin to edit the any row.

This is my table columns description:

Table columns

After executing the query to view all table rows this is what I can see:

Right click at the table

At the Data Output

Save button is disabled to update my table rows. But this is happening only with my new created tables, as you can see, I have other tables where I'm able to edit rows, for example at this table of Users:

Other table that is able to edit data

like image 904
Camilo Ortegón Avatar asked Sep 11 '17 04:09

Camilo Ortegón


People also ask

How do you make a table editable in pgAdmin 4?

To view or modify data, right click on a table or view name in the Browser tree control. When the context menu opens, use the View/Edit Data menu to specify the number of rows you would like to display in the editor panel. To modify the content of a table, each row in the table must be uniquely identifiable.

How do I make a table editable in PostgreSQL?

Select column, right click and choose Properties... option to open column editor. Alternatively select column in tree control and on Properties tab and open column editor with edit icon. In the editor update Comment field and confirm changes with Save button.

How do I enable query editor in pgAdmin 4?

If you want to edit the query, simply click you the table and then from Tools in the menu bar click on the Query Tool that will allow you to make edition to the query.

How do you save edit rows in pgAdmin?

Use the Save icon to save your changes to the currently displayed table contents. Use options on the Find menu to access Search and Replace functionality or to Jump to another line. Click the Copy icon to copy the currently selected data. Click the Paste Row icon to paste the content that is currently on the clipboard.


1 Answers

Found the problem! That was happening, because I didn't select any of the columns as 'Primary key':

Table columns description updated

like image 198
Camilo Ortegón Avatar answered Oct 11 '22 14:10

Camilo Ortegón