X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 1945FD1DA6A for ; Mon, 17 Nov 2003 15:35:53 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 92908-03 for ; Mon, 17 Nov 2003 11:35:26 -0400 (AST) Received: from serwer.skawsoft.com.pl (rtr.skawina.eu.org [80.48.213.10]) by svr1.postgresql.org (Postfix) with ESMTP id EBE68D1DAF9 for ; Mon, 17 Nov 2003 11:35:21 -0400 (AST) Received: from klaster.net (core-1.citynet.pl [80.48.135.69]) by serwer.skawsoft.com.pl (Postfix) with ESMTP id 548F32B3CB; Mon, 17 Nov 2003 16:35:21 +0100 (CET) Message-ID: <3FB8EAAB.7070603@klaster.net> Date: Mon, 17 Nov 2003 16:35:07 +0100 From: Tomasz Myrta User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; pl-PL; rv:1.5) Gecko/20031007 X-Accept-Language: pl, en-us, en MIME-Version: 1.0 To: Stephan Szabo Cc: Lista dyskusyjna pgsql-sql Subject: Re: strange "not deferrable" behaviour References: <3FB8D437.4050902@klaster.net> <20031117071555.C94696@megazone.bigpanda.com> In-Reply-To: <20031117071555.C94696@megazone.bigpanda.com> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/197 X-Sequence-Number: 16012 Dnia 2003-11-17 16:16, Użytkownik Stephan Szabo napisał: > Hmm, I'd suggest turning on query logging to make sure pgAdmin is doing > what you expect. Well, I've already done this. I didn't check query log, but a result by selecting rows from modified table. Anyway I opened a pgAdmin log and didn't find anything special. I also found something interesting in pgAdmin work. When constraint is defined as "NOT DEFERRABLE", I get "OK" only when I execute whole query at once. PgAdmin probably executes this query using only one statement - it separates each sql command using semicolon delimiter. If I try to split my query and execute each command separately - I get the same "integrity violation" error as in psql. I tried also change constraint into "DEFERRABLE". Behaviours of psql and PgAdmin are the same - query executes fine, doesn't matter whether it is executed as single or several statements. Regards, Tomasz Myrta