Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dYJsF-00054M-0I for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Jul 2017 22:24:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dYJsE-0004Ql-E4 for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Jul 2017 22:24:46 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dYJqi-0001lL-A3 for pgsql-hackers@postgresql.org; Thu, 20 Jul 2017 22:23:12 +0000 Received: from mail-qk0-x236.google.com ([2607:f8b0:400d:c09::236]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dYJqf-0006vd-Do for pgsql-hackers@postgresql.org; Thu, 20 Jul 2017 22:23:11 +0000 Received: by mail-qk0-x236.google.com with SMTP id d145so6967576qkc.2 for ; Thu, 20 Jul 2017 15:23:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=3tJJvtZlwKAwooFzeNOYp16CgmEy6tGAQaefjL5bQIA=; b=Z3iOVsE++kmcnDjroJKZb1pc+Lz9I2gpc34uT4mTrUnn5nKKTGPaFyh0HzI4gtAeLU Tg+QZcILTN7SNcENodSpv3QKpHf6cYfI851mnhkqX9f74t0OVUHcctTvtOJcAaxFVAYF EvFNQwus/CZC/1JPicBHIdrf8wbWzmnZdWWbvQDe/oMn6bAwkr2TxK4/2DyCqSvpd3eM 08UiIfVX2gci34fS32YMJ9PEYK0mtIb9OWoTHIpZz5hXv7pBVz00qlLcUUHlPSVszPWA km6MvsyYE4ZmuYXqP8urMV4drvdc7DqQPoW1izSTWSqM38NAOm7Ey3RmRbSUCiIozze+ QzuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=3tJJvtZlwKAwooFzeNOYp16CgmEy6tGAQaefjL5bQIA=; b=Egu/o+e6l9Jl1bmKbixKwDLqNJqOx69OiEts0e2to/34u3RwsPa2WoEBAJydZTy3sz D2ySeuFdSyFZSBChy9GvkNhJfw1Nw7vx2rXn9iKH5FCklvvMlM50Wq+TNhsgQYEdcv2s Yaqmb85hzk7G9KDRnsJukE3c88U8kJNcYkAnpQaJ2M1Pa5nwaWz14+hJZDA+k8+JmPuv 83bKb5CYjKxeKvqsyaaq/zd05hSjvCnTohTvonB3OkdEu1fds/gJPHDN4VVGtoTnXHiV hXS4i3DuAP04B8qSIYTLZEzoCrMgktkZfGdDjnVx7s8fqnC45qmKji5eGS48yQh9ItB3 oxUg== X-Gm-Message-State: AIVw113U3rbgfhKwLXV4VNSEsGsdroLQj3N1anZ7tIDqJ1YOW4vUWo/h HqSwgZ89K/s4VG3d X-Received: by 10.55.59.66 with SMTP id i63mr6872544qka.15.1500589388393; Thu, 20 Jul 2017 15:23:08 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([179.57.115.10]) by smtp.gmail.com with ESMTPSA id e66sm2206586qkb.69.2017.07.20.15.23.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Jul 2017 15:23:07 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 5C92553D; Thu, 20 Jul 2017 18:23:05 -0400 (-04) Date: Thu, 20 Jul 2017 18:23:05 -0400 From: Alvaro Herrera To: Kyotaro HORIGUCHI Cc: tgl@sss.pgh.pa.us, ashutosh.bapat@enterprisedb.com, pgsql-hackers@postgresql.org, Langote_Amit_f8@lab.ntt.co.jp, fcs1@poczta.onet.pl Subject: Re: PgFDW connection invalidation by ALTER SERVER/ALTER USER MAPPING Message-ID: <20170720222305.ij3pk7qw5im3wozr@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20170720.152533.252230418.horiguchi.kyotaro@lab.ntt.co.jp> User-Agent: NeoMutt/20170306-137-4415bd-dirty (1.8.0) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Kyotaro HORIGUCHI wrote: > Finally, I added a new TAP test library PsqlSession. It offers > interactive psql sessions. Then added a simple test to > postgres_fdw using it. Hmm, I think this can be very useful for other things. Let's keep this in mind to use in the future, even if we find another way to fix the issue at hand. In fact, I had a problem a couple of weeks ago in which I needed two concurrent sessions and one of them disconnected in the middle of the test. Can't do that with isolationtester ... -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers