Re: Equivalent to "use database" in postgre - Mailing list pgsql-general

From Tom Lane
Subject Re: Equivalent to "use database" in postgre
Date
Msg-id 2501.1277478044@sss.pgh.pa.us
Whole thread Raw
In response to Re: Equivalent to "use database" in postgre  (Scott Marlowe <scott.marlowe@gmail.com>)
Responses Re: Equivalent to "use database" in postgre
List pgsql-general
Scott Marlowe <scott.marlowe@gmail.com> writes:
> On Fri, Jun 25, 2010 at 7:10 AM, javijava <welove.e.music@gmail.com> wrote:
>> How can I say "use name_database" on postgre sql?

> You have to re-connect to use a different db in pgsql.

But keep in mind that mysql databases are more nearly akin to what
postgres calls schemas.  The best way to do what you want might be
to translate your mysql DBs into schemas, and then "set search_path"
would be a good approximation to "use".

            regards, tom lane

pgsql-general by date:

Previous
From: Tim Landscheidt
Date:
Subject: Re: Equivalent to "use database" in postgre
Next
From: Ozz Nixon
Date:
Subject: Re: Equivalent to "use database" in postgre