Re: 'moving' from one database to another

From: Jean MAURICE <mauricejea(at)numericable(dot)fr>
To:
Cc: "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>
Subject: Re: 'moving' from one database to another
Date: 2013-08-04 05:41:23
Message-ID: 51FDE983.2040403@numericable.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Kinnard Hockenhull 2013-08-05 07:55:48 Crazy hard time getting up and running
Previous Message Tom Lane 2013-08-03 20:51:01 Re: 'moving' from one database to another