no privileges were granted for "table01"
It usually means that the user running the GRANT
command (in your case, psqladmin
) doesn't actually own the table. In PostgreSQL, only the table owner or a superuser can grant permissions on that table.
For example, when you run:
GRANT INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA public TO myuser01;
it will only apply to tables owned by the user you're currently connected as. If other users own some of the tables, those won't be affected by this command.
To grant permissions on those tables, you'll need to either:
- Run the command as the user who owns the tables, or
- Use a superuser account to apply the privileges.