Tom Lane wrote:
Change the ownership of public in template1 to be a "dbadmin" group. Grant membership in "dbadmin" to all the DB owners. End of problem.
Won't that suddenly grant the owner of foo_db dbadmin rights in bar_db? That seems to violate the principle of least surprise.
cheers andrew ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match