>In the docs it is mentioned for datistemplate that
>
>"If true then this database can be used in the "TEMPLATE" clause of
>CREATE DATABASE to create the new database as a clone of this one."
>
>However, one can create a database using as template another DB that has
>datistemplate set to false.
>
>In this situation, what is the point of having datistemplate?
If datistemplate is true, any user with CREATEDB privileges can clone the
database.
If datistemplate is false, only a cluster superuser can clone the database.