Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> What happens if people issue create user or create database outside
> template1. Do we need to prevent it? Seems they work, but am not sure
> it is OK. Do we need to add a check?
Works fine, no, and no. The reason the scripts like to connect to
template1 is that it's the only database they can be sure is there.
But the commands themselves don't care where you're connected.
regards, tom lane