 sessions can be connected to
   the template database while it is being copied.  <TT
CLASS="COMMAND"
>CREATE
   DATABASE</TT
> will fail if any other connection exists when it starts;
   otherwise, new connections to the template database are locked out
   until <TT
CLASS="COMMAND"
>CREATE DATABASE</TT
> completes.
   See <A
HREF="manage-ag-templatedbs.html"
>Section 21.3</A
> for more information.
  </P
><P
>   The character set encoding specified for the new database must be
   compatible with the chosen