pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ross J. Reedstrom <reedstrm@rice.edu>
To: Roberto Mello <rmello@cc.usu.edu>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Edipo E. F. Melo <edipoelder@ig.com.br>
Cc: pgsql-sql <pgsql-sql@postgresql.org>
Cc: sara@conectiva.com.br <sara@conectiva.com.br>
Cc: sarafabiana@starmedia.com <sarafabiana@starmedia.com>
Subject: Re: I can be a BUG?
Date: Fri, 1 Dec 2000 21:27:06 -0600
Message-ID: <20001201212706.A32124@rice.edu> (raw)
In-Reply-To: <3A283370.B6F8BD19@cc.usu.edu>
References: <200012012250.eB1MoQF29124@mail.postgresql.org>
	<15559.975711642@sss.pgh.pa.us>
	<3A283370.B6F8BD19@cc.usu.edu>

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



view thread (6+ messages)  latest in thread

Message-ID: <20001201212706.A32124@rice.edu>
Permalink:  ../20001201212706.A32124@rice.edu/
Also on:    postgresql.org/message-id/20001201212706.A32124@rice.edu

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: reedstrm@rice.edu, rmello@cc.usu.edu, tgl@sss.pgh.pa.us, edipoelder@ig.com.br, sara@conectiva.com.br, sarafabiana@starmedia.com
  Subject: Re: I can be a BUG?
  In-Reply-To: <20001201212706.A32124@rice.edu>
  References: <200012012250.eB1MoQF29124@mail.postgresql.org> <15559.975711642@sss.pgh.pa.us> <3A283370.B6F8BD19@cc.usu.edu> <20001201212706.A32124@rice.edu>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox