Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iCPEu-0008KA-Ew for pgsql-general@arkaria.postgresql.org; Mon, 23 Sep 2019 14:22:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iCPEt-0002Sd-9e for pgsql-general@arkaria.postgresql.org; Mon, 23 Sep 2019 14:22:55 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iCPEr-0002RJ-Ha for pgsql-general@lists.postgresql.org; Mon, 23 Sep 2019 14:22:55 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iCPEn-0003rj-OX for pgsql-general@lists.postgresql.org; Mon, 23 Sep 2019 14:22:53 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 841E142F; Mon, 23 Sep 2019 10:22:46 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 23 Sep 2019 10:22:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=7 zteySncCvryYGcnuL0/S63heLsUQ9J/RlN3DfhWAq8=; b=OGb+lgpObAkFoCUSz Tm1YeFXnbq3+uc+ar/IoUzmNHd5dLTuHKqVwDY57Aga70yfA2nSO5dLbVXeXsiSo cTJqQVw1PWQ5PvZKm8wBXnz8hUfMWFzR9jydCS2s6U/mXxL6nZwLxak/TPlJAmSf xF03ieeChXQviuNJJaO7Md0FuQDlYGzSV+OAyOqTq0EKgD9ht5GjmNnNIsyeeuwN MpdToH0YtRSaj8eXgbWeDybrxEyKrmzIowuz66qTRUIACzx1zfHLvyRiVugbaTii InbL8BITmT3ikPed9LszybYTam1Dc5IEi+Wr8wMNKTQ4hfmuQpf4kL6GlGX4SYWw PhKdg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=7zteySncCvryYGcnuL0/S63heLsUQ9J/RlN3DfhWA q8=; b=Mki0VTBqh5efX8Nai36blXdDdDt8q6VdK90U069gSHFCvBbxN1wcYVr7V NCqmFKMLkD7z802OIfWb8AKO5wR0wUah2UQ4T5GqsgO1qcqvVCNTYwkYKNiGctt0 pQ2aFmLCT3nfoOFHIq4i8hdJfHavtpnwzZfZBUnvsQ3hGErOwJjqaNwEXaNHAze4 lmeWYXPOFXEu6ooCGJ5yY6mTUDRv8ywlHoJfvUqfzPyBskJC1qNi5qdKjvTOhdKd yIJWA2QBZ51AdtYnILNnAGHhBDgNKEIagiDWHkV6ZbVFARjHML7EzmJoSzv88AD8 zESpYRogrjeE4pogb1Uzk1lq9Wp3g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrvdekgdejhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthekre dttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucfkphepudejgedrvddurdejkedrudeike enucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgr vhgvrhdrtghomhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from [192.168.1.3] (174-21-78-168.tukw.qwest.net [174.21.78.168]) by mail.messagingengine.com (Postfix) with ESMTPA id 2DDE0D60069; Mon, 23 Sep 2019 10:22:45 -0400 (EDT) Subject: Re: postgres 9.6: insert into select finishes only in pgadmin not psql To: Corey Taylor , Tom Lane Cc: pgsql-general@lists.postgresql.org References: <11667.1568842347@sss.pgh.pa.us> From: Adrian Klaver Message-ID: Date: Mon, 23 Sep 2019 07:22:44 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 9/23/19 12:07 AM, Corey Taylor wrote: > First thing I'd look at is whether it's the same execution environment > in both cases, eg same search_path. > > > As far as I can tell, it's the same execution environment, same > search_path and same user. > > I found after testing other situations, that the psql command would > always finish as expected after canceling the first query that ran too > long.  I was able to reproduce this scenario with psql and pgadmin4 with > various combinations. > > Any suggestions on what that would indicate?  The canceled query does > not complete as there are no rows and no duplicate errors when running > the second time. Can we see the actual function/query? Also the schema of the table(s) involved? > > corey -- Adrian Klaver adrian.klaver@aklaver.com