Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 0A8ED9FBDF9 for ; Fri, 4 May 2007 13:16:05 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 23173-08 for ; Fri, 4 May 2007 13:16:01 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail63.csoft.net (leary.csoft.net [205.205.214.5]) by postgresql.org (Postfix) with SMTP id A57A09FB395 for ; Fri, 4 May 2007 13:16:01 -0300 (ADT) Received: (qmail 24934 invoked by uid 1112); 4 May 2007 16:16:00 -0000 Date: Fri, 4 May 2007 12:16:00 -0400 (EDT) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: "Badawy, Mohamed" cc: pgsql-jdbc@postgresql.org Subject: Re: connection variables problem In-Reply-To: <8EF82CD876C6F2439EBF55C5A1D9061A429C96@amsmamx01.mannheim-germany.europe.ams.local> Message-ID: References: <8EF82CD876C6F2439EBF55C5A1D9061A429C96@amsmamx01.mannheim-germany.europe.ams.local> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/10 X-Sequence-Number: 17000 On Wed, 2 May 2007, Badawy, Mohamed wrote: > Am working using maven framework I want to connect to the DB with no > foreign key checking in mysql I use to write (Connection jdbcConnection > = DriverManager.getConnection( > > "jdbc:postgresql://localhost:5432/post?sessionVariables=FOREIGN_KEY_CHEC > KS=0", "aaa", "aaa");) > > I want the corresponding to in postgresql Postgresql does not offer a similar feature and I see no reason that it should. Why would you possibly want to disable your foreign keys? Perhaps you should be using deferred foreign keys instead? Kris Jurka