pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Badawy, Mohamed <Mohamed.Badawy@ams-europe.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: connection variables problem
Date: Fri, 4 May 2007 12:16:00 -0400 (EDT)
Message-ID: <Pine.BSO.4.64.0705041214320.20762@leary.csoft.net> (raw)
In-Reply-To: <8EF82CD876C6F2439EBF55C5A1D9061A429C96@amsmamx01.mannheim-germany.europe.ams.local>
References: <8EF82CD876C6F2439EBF55C5A1D9061A429C96@amsmamx01.mannheim-germany.europe.ams.local>



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




view thread (3+ messages)  latest in thread

Message-ID: <Pine.BSO.4.64.0705041214320.20762@leary.csoft.net>
Permalink:  ../Pine.BSO.4.64.0705041214320.20762@leary.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.64.0705041214320.20762@leary.csoft.net

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: books@ejurka.com, Mohamed.Badawy@ams-europe.com
  Subject: Re: connection variables problem
  In-Reply-To: <Pine.BSO.4.64.0705041214320.20762@leary.csoft.net>
  References: <8EF82CD876C6F2439EBF55C5A1D9061A429C96@amsmamx01.mannheim-germany.europe.ams.local> <Pine.BSO.4.64.0705041214320.20762@leary.csoft.net>

* 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