newbie Connect question

From: "Phil Oelkers" <Phil(dot)Oelkers(at)experian(dot)com>
To: <pgsql-general(at)hub(dot)org>
Subject: newbie Connect question
Date: 1999-09-01 22:07:04
Message-ID: s7cd5d47.026@gwpoa1.sch.experian.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I'm trying to run the following script through interactive postgres.

CONNECT DATABASE BASEBALL;

CREATE UNIQUE index1 on team(team_name);

If I start postgres as

>psql baseball

the script runs no problem. If I start it as

>pgsql template1 (or any other database) I get a
cann't connect to database error. So my question is
how do I connect to more than one database at a time?

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 1999-09-01 23:05:11 Re: [GENERAL] 6.5.1 pg_dump adds "connect as" line
Previous Message David Heinecke 1999-09-01 21:47:59