Reputation: 3702
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:
After executing the query to view all table rows this is what I can see:
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:
Upvotes: 56
Views: 47161
Reputation: 6524
My issue was that I was doing a join and pgAdmin didn't like that. I had to query the table directly.
Another possible cause is not including the primary key in the SELECT
statement, whether it exists in the table or not.
If you need to add a primary key to an existing table, see this answer.
Upvotes: 0
Reputation: 3702
Found the problem! That was happening, because I didn't select any of the columns as 'Primary key':
Upvotes: 114