May 2017
Beginner
416 pages
10h 37m
English
So far, a lot of stuff has already been configured. The trouble naturally arising now 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 proper permissions. Wouldn't it be nice if those things would just happen automatically? This id 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 cannot happen anymore that somebody simply forgets to set those rights.
The following listing shows the first part of the syntax specification:
test=# h ALTER DEFAULT PRIVILEGES Command: ALTER DEFAULT ...
Read now
Unlock full access