Re: Use, Set Catalog and JDBC questions

From: Frank Cavaliero <fcavalie(at)us(dot)ibm(dot)com>
To: John R Pierce <pierce(at)hogranch(dot)com>
Cc: pgsql-general(at)postgresql(dot)org, pgsql-general-owner(at)postgresql(dot)org
Subject: Re: Use, Set Catalog and JDBC questions
Date: 2013-02-25 18:59:02
Message-ID: OF6CAD819A.EA61FEFF-ON85257B1D.0068773B-85257B1D.00688E58@us.ibm.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

Hi John,

Thanks for the response. I will look into that as an option.

Thanks,
Frank

From:
John R Pierce <pierce(at)hogranch(dot)com>
To:
pgsql-general(at)postgresql(dot)org
Date:
02/25/2013 01:33 PM
Subject:
Re: [GENERAL] Use, Set Catalog and JDBC questions
Sent by:
pgsql-general-owner(at)postgresql(dot)org

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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message John R Pierce 2013-02-25 18:59:50 Re: Use, Set Catalog and JDBC questions
Previous Message Frank Cavaliero 2013-02-25 18:57:11 Re: [GENERAL] Use, Set Catalog and JDBC questions

Browse pgsql-general by date

  From Date Subject
Next Message John R Pierce 2013-02-25 18:59:50 Re: Use, Set Catalog and JDBC questions
Previous Message Frank Cavaliero 2013-02-25 18:57:11 Re: [GENERAL] Use, Set Catalog and JDBC questions