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 1hvMnI-0006T1-UP for pgsql-general@arkaria.postgresql.org; Wed, 07 Aug 2019 14:20:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hvMnH-0007mI-Nm for pgsql-general@arkaria.postgresql.org; Wed, 07 Aug 2019 14:19:59 +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 1hvMnG-0007mB-KO for pgsql-general@lists.postgresql.org; Wed, 07 Aug 2019 14:19:59 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hvMnD-0002B8-K7 for pgsql-general@lists.postgresql.org; Wed, 07 Aug 2019 14:19:58 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 4E936437; Wed, 7 Aug 2019 10:19:52 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Wed, 07 Aug 2019 10:19:52 -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=fm3; bh=D Nxn9mrJsITY7TLh3ZHxN3hDcK0qfYrjZUhPh2J8mwM=; b=T8Q1gNoB/csShZwXh 9zKPuWRMiENP0lUo3fWWHUAX3wPfy7tPvd975PpDtF7fXAalsH6VmlhIJ81XsRiN z4HADzHBUlzfdp6RMivF4WhkHLGF3X/WlVsphZAQyKKNFin9Tp/koB9l505BaW/5 yEy6lyUK7r5rTLCFGsJ+C1ycmrAZT+f9l1KfSoYAkOTnWiOK3gUHAxBbI/CMUiqE pgqzrVmS1doqQCGqboqSt3C4d/n71XMNuD18mYj5ibilBNaC20Zww9s0X1FFqgxz i6s3+UymXDKKdHjQi13ExThcSMZqIdjzJfMRTOIxWkb6lSaGFkO8m7l8n8RuVmhF u4Uaw== 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=DNxn9mrJsITY7TLh3ZHxN3hDcK0qfYrjZUhPh2J8m wM=; b=Odsh6r1Y5nZh3QUvPemmKTtZEIBSFQCB0S+oiArG9319iqTDpeEE9FVWS pqt/dozA2lmH6HU9tKg33M1QNkoK6ctRn32ooP0oYO0RwWuYGtVVRBkgDu6e8p4s C0LeHSkUVT5RBfwPKHKp6NjuXnxXAIfAN3zShlqI+QEvTZnPXGJL5hMEVX5Ig6po ErJT2zNyJcxuOdUpGzK/yqOJq9aDsUMoD5Ab8kAs1LCq+tN9jurfKoJ1PMsp+OVY VFYMCs20tD89y6lnzFHTjviFRzvaBqGsT6/iwUFHRISRlHLs2ewLg1ye15uAoo0k 5qobiz8VNDYqNnWSI4GFs9Wld34Lw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudduvddgjeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthejredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucfkphepjedurddvuddvrdduhedtrddvtddvnecurfgrrhgrmhepmhgrihhlfhhr ohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmnecuvehluhhsth gvrhfuihiivgeptd X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id 7474D380089; Wed, 7 Aug 2019 10:19:50 -0400 (EDT) Subject: Re: Why must AUTOCOMMIT be ON to do txn control in plpgsql procedure? To: Luca Ferrari , Bryn Llewellyn Cc: pgsql-general list References: <9E141BBF-29E8-4825-9E7D-5F96BAD4365B@yugabyte.com> From: Adrian Klaver Message-ID: Date: Wed, 7 Aug 2019 07:19:49 -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: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 8/7/19 12:15 AM, Luca Ferrari wrote: > On Wed, Aug 7, 2019 at 12:19 AM Bryn Llewellyn wrote: >> 1. my call p2() starts a txn. > Luca > > P.S: > I don't believe that asking on a public mailing list for a company to > answer is the right thing to do, you can always ask themselves on your > own. Sort of moot as PROCEDURE is a Postgres feature not a company feature. -- Adrian Klaver adrian.klaver@aklaver.com