X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 23A51D1B171 for ; Thu, 5 Aug 2004 11:55:10 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 78701-09 for ; Thu, 5 Aug 2004 14:55:05 +0000 (GMT) Received: from www.postgresql.com (www.postgresql.com [200.46.204.209]) by svr1.postgresql.org (Postfix) with ESMTP id 5FDC0D1B1B4 for ; Thu, 5 Aug 2004 11:54:59 -0300 (ADT) Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by www.postgresql.com (Postfix) with SMTP id EC6EFCF4CDD for ; Thu, 5 Aug 2004 11:54:55 -0300 (ADT) Received: (qmail 29248 invoked by uid 1112); 5 Aug 2004 14:22:20 -0000 Date: Thu, 5 Aug 2004 09:22:20 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Ryoji Sawa Cc: pgsql-jdbc@postgresql.org Subject: Re: [Fwd: Q: database schema from JDBC driver and netbeans.] In-Reply-To: <4112052D.B3192531@Sun.COM> Message-ID: References: <4112052D.B3192531@Sun.COM> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/36 X-Sequence-Number: 10758 > Hi, > > I'm using JDBC driver 'postgres74.214.jdbc3.jar' with Sun Java Studio > Enterprise 6 (based on netbeans 3.42). > I'm struggling to create a database schema from a postgres > table. I can create a database schema from it, but it does not > have its primary key. > If anyone know this issue or has any solution, please kindly share > with me. I attached the database schema created by netbeans. > > The dump data is here. The table 'postalcode' has a primary key. > However, I could not create a database schema with primary key. > It is not clear what Java/JDBC has to do with your question. You've shown part of pg_dump output said something about netbeans. Are you having problems importing your dump? Are you trying to create constraints with JDBC? Are you trying to view constraints with DatabaseMetaData? I have no idea what you are asking. Kris Jurka