November 2019
Beginner to intermediate
470 pages
11h 59m
English
So far, a lot of stuff has already been configured. The trouble is, what happens if new tables are added to the system? It can be quite painful and risky to process these tables one by one, and to set the proper permissions. Wouldn't it be nice if those things would just happen automatically? This is exactly what the ALTER DEFAULT PRIVILEGES clause does. The idea is to give users an option to make PostgreSQL automatically set the desired permissions, as soon as an object comes into existence. It is now impossible to simply forget to set those rights.
The following listing shows the first part of the syntax specification:
postgres=# \h ALTER DEFAULT PRIVILEGESCommand: ALTER DEFAULT PRIVILEGESDescription: define ...
Read now
Unlock full access