Re: 'moving' from one database to another - Mailing list pgsql-novice

From Jean MAURICE
Subject Re: 'moving' from one database to another
Date
Msg-id 51FDE983.2040403@numericable.fr
Whole thread Raw
In response to Re: 'moving' from one database to another  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-novice
Le 03/08/2013 22:51, Tom Lane a écrit :
>>   In Visual Foxpro, we have a
>> command "SET DATABASE TO mydatabase" and it is exactly what I
>> want to do !
>> In PostgreSQL a connection is to a particular database.  To use a
>> different database you must establish a new connection.  The psql
>> client software provides an easy way to do that with \c, but behind
>> the scenes that closes the existing connection and opens a new one.
ok.
> It's entirely likely that what you really want to approximate Foxpro with
> is not multiple databases, but multiple schemas within a single database.
>
no ! I know about database and schemas. My problem is only the first time I
connect to postgres to build my 'own' database. Once it is built, I want to work
on it ... and build schemas.
Disconnect() and connect() again is, then, not a big drawback.

Many thanks

--
Jean MAURICE
Grenoble - France - Europe
www.j-maurice.fr
www.atoutfox.org
www.aedtf.org



pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: 'moving' from one database to another
Next
From: Kinnard Hockenhull
Date:
Subject: Crazy hard time getting up and running