Re: I can be a BUG?
От | Ross J. Reedstrom |
---|---|
Тема | Re: I can be a BUG? |
Дата | |
Msg-id | 20001201212706.A32124@rice.edu обсуждение исходный текст |
Ответ на | Re: I can be a BUG? (Roberto Mello <rmello@cc.usu.edu>) |
Список | pgsql-sql |
On Fri, Dec 01, 2000 at 04:25:36PM -0700, Roberto Mello wrote: > Tom Lane wrote: > > > > It kinda sounds like your wife created those tables in template1. > > > > Duplicating template1's contents into new databases isn't a bug, > > it's a feature ;-) > > I've seen this behaviour too. Yesterday I pg_dumpall my 7.01 db > compiled from scratch and loaded in PG 7.02 installed from Debian > packages (I know a pg_dumpall wasn't needed, but I did it anyway). > When I went into psql, I was some of my databases with all the pg_* > tables. Why? Also, if I dropdb the database and createdb it again, it's > as if I never deleted it. Is that normal/bug/feature? Why? > Ah, the Debian PostgreSQL package uses a different default convention with psql than a from source compile: if you don't provide a database name, debian psql will connect you to template1. On a from source compile, it'll try to connect to a database that matches your username. Ross
В списке pgsql-sql по дате отправления: