Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id E2E33632B09 for ; Tue, 8 Jun 2010 23:22:31 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 02782-03 for ; Wed, 9 Jun 2010 02:22:24 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-gw0-f46.google.com (mail-gw0-f46.google.com [74.125.83.46]) by mail.postgresql.org (Postfix) with ESMTP id CE27563254B for ; Tue, 8 Jun 2010 23:22:24 -0300 (ADT) Received: by gwb15 with SMTP id 15so2133183gwb.19 for ; Tue, 08 Jun 2010 19:22:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:reply-to:to :content-type:organization:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=Cw5eDLjzS6JqHKTBI18mMBS/jri8qG+VJVBob6kozZM=; b=dffrGX9cagGCoMW1lKhYuOKIG2Teo4PKEOBFEkcBYqoXoWAscYzytDvYUQzVpNqww6 SG+kcZHLBhB5aUWh+php5OZUa7IARb3wR9gvg768OLHBdyqwysWaE79GgmfHAhvF+vJh 6/0A2CQBkbcaNdLnqyF0vp9gWjuabVH0Znidc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:reply-to:to:content-type:organization:date:message-id :mime-version:x-mailer:content-transfer-encoding; b=Y6y0inwTDlEw9uF4V0/X0NP1XXUP/n3SJt/Oxj6CjAcReVBPrqQo8SBD+3TN4q/0Hj PCvVncVh14E30x+lRd7KTwjzXsXUBAZzYp4TIT7lQMF5o426E1xblFBxClweMZyIBclZ eY+KpLWnnFttHdIPUs+Q17SxsKhVhfCxzaMfw= Received: by 10.101.6.18 with SMTP id j18mr17259176ani.12.1276050141738; Tue, 08 Jun 2010 19:22:21 -0700 (PDT) Received: from [192.168.1.2] (static-200-105-163-201.acelerate.net [200.105.163.201]) by mx.google.com with ESMTPS id n18sm33778534anl.12.2010.06.08.19.22.18 (version=SSLv3 cipher=RC4-MD5); Tue, 08 Jun 2010 19:22:20 -0700 (PDT) Subject: I can't get the database's list From: miguel manzano Reply-To: miguel.miguelmanzano@gmail.com To: pgsql-jdbc@postgresql.org Content-Type: text/plain; charset="UTF-8" Organization: mapm Date: Tue, 08 Jun 2010 22:22:07 -0400 Message-Id: <1276050127.8267.6.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.28.0 (2.28.0-2.fc12) Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.5 tagged_above=-10 required=5 tests=BAYES_05=-0.5, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201006/49 X-Sequence-Number: 20619 I try to obtain the database's list in my instalation but when I use : System.out.println("Driver : "); System.out.println(" " + md.getDatabaseProductName() ); System.out.println(" " + md.getDatabaseProductVersion() ); ResultSet catalogRs = md.getCatalogs(); while ( catalogRs.next() ){ System.out.println("Catalog " + catalogRs.getString(1)); ResultSet tableRs = md.getTables(catalogRs.getString(1),"%","%",(String []) null); } } I just got only the name of the database at I have conected but the another databases didn't figure in the list. But if I use : psql template1 -c "select datname from pg_catalog.pg_database" I can see all databases in my machine. I have read documentation but I haven't found where is the problem please I need help about this topic Thanks for all Miguel Manzano miguel.miguelmanzano@gmail.com-