10

How to unlock the fields in pgadmin4 so I can insert/update column directly threw pgadmin4 Data Output result. Please refer below image displaying lock icon in each field

enter image description here

I want result like below which has icon of a pencil which shows that the field is editable.

enter image description here

I have given all the permission on the table.

Vishnu S. Divetia
  • 305
  • 1
  • 2
  • 10

4 Answers4

36

Give your table a primary key column. Otherwise, pgAdmin4 has no way to communicate to the database which row you are trying to edit.

jjanes
  • 37,812
  • 5
  • 27
  • 34
2

We have to make sure we have selected the primary key at tables properties level (right click on your table). You can do that inside table properties column section:

enter image description here

Shahid Tariq
  • 886
  • 6
  • 19
0

The reason your table columns have a black key icon is because the id column is not a primary key, maybe because you accidentally deleted it. I encountered that in hasura when I accidentally deleted the primary key id, after resetting it. went back to normal in postgres. You also just need to reset id as primary key in postgres

Trinh Hieu
  • 379
  • 3
  • 6
-1

It happens if I do a join with me, try seperately running the queries without joins for the columns that you want to edit.