Re: I can be a BUG?

From: "Ross J(dot) Reedstrom" <reedstrm(at)rice(dot)edu>
To: Roberto Mello <rmello(at)cc(dot)usu(dot)edu>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Edipo E(dot) F(dot) Melo" <edipoelder(at)ig(dot)com(dot)br>, pgsql-sql <pgsql-sql(at)postgresql(dot)org>, "sara(at)conectiva(dot)com(dot)br" <sara(at)conectiva(dot)com(dot)br>, "sarafabiana(at)starmedia(dot)com" <sarafabiana(at)starmedia(dot)com>
Subject: Re: I can be a BUG?
Date: 2000-12-02 03:27:06
Message-ID: 20001201212706.A32124@rice.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2000-12-02 05:18:39 Re: Re: [SQL] Rules with Conditions: Bug, or Misunderstanding
Previous Message Mark Hollomon 2000-12-02 02:47:51 Re: Re: [SQL] Rules with Conditions: Bug, or Misunderstanding