Steve Frampton <frampton(at)LinuxNinja(dot)com> writes:
> However, if I try to connect to template0, I get the following error
> message:
> psql: FATAL 1: Database "template0" is not currently accepting
> connections
Yup, that's what it's supposed to do.
I will be exceedingly surprised if your 7.1.2 code let you into
template0 either. Perhaps you are confusing it with template1?
regards, tom lane