3 ms·
> psql template1? It doesn't make as much sense to me. What doesn't make sense about it? It opens a postgres shell to the `template1` database, that's all...
by masklinn 15y ago
> psql template1? It doesn't make as much sense to me.
What doesn't make sense about it? It opens a postgres shell to the `template1` database, that's all...
And there should be very little reason to connect to `template1`: it is the default template for creating a database (it's copied to the new db file basically), so the only point in connecting to it is e.g. creating a few common tables or enabling extensions so that all the databases you create have them by default.
I've yet to ever need that.