newbie Connect question - Mailing list pgsql-general

From Phil Oelkers
Subject newbie Connect question
Date
Msg-id s7cd5d47.026@gwpoa1.sch.experian.com
Whole thread Raw
Responses Re: [GENERAL] newbie Connect question
List 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?




pgsql-general by date:

Previous
From: David Heinecke
Date:
Subject:
Next
From: Daniel Stolk
Date:
Subject: How to make a read-write atomic?