From: John R Pierce <pierce@hogranch.com>
To: pgsql-general@postgresql.org
Subject: Re: Use, Set Catalog and JDBC questions
Date: Mon, 25 Feb 2013 10:29:03 -0800
Message-ID: <512BAD6F.6020800@hogranch.com> (raw)
In-Reply-To: <OF452CD15F.978F2C6E-ON85257B1D.0063F9C0-85257B1D.00653F7F@us.ibm.com>
References: <OF452CD15F.978F2C6E-ON85257B1D.0063F9C0-85257B1D.00653F7F@us.ibm.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>
On 2/25/2013 10:22 AM, Frank Cavaliero wrote:
> 1. Is there a USE DATABASE command or something of the sort (similar
> to MySQL) that allows you to quickly connect to a database without
> having to reconnect using the username,password and database again ?
> In Java, we are using set catalog to do this in MySQL.
no, there isn't. you have to connect to the database. mysql's
databases are in many ways equivalent to postgres' 'schemas' within a
single database (you can move between schemas with SET SEARCH_PATH=...).
--
john r pierce 37N 122W
somewhere on the middle of the left coast
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: pierce@hogranch.com, pgsql-general@postgresql.org
Subject: Re: Use, Set Catalog and JDBC questions
In-Reply-To: <512BAD6F.6020800@hogranch.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox