Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fXfjH-0002G5-6R for pgsql-hackers@arkaria.postgresql.org; Tue, 26 Jun 2018 04:37:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fXfjE-00080a-Ei for pgsql-hackers@arkaria.postgresql.org; Tue, 26 Jun 2018 04:37:20 +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.89) (envelope-from ) id 1fXfjD-00080T-SK for pgsql-hackers@lists.postgresql.org; Tue, 26 Jun 2018 04:37:20 +0000 Received: from mail-it0-x230.google.com ([2607:f8b0:4001:c0b::230]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fXfjA-00031K-6O for pgsql-hackers@postgresql.org; Tue, 26 Jun 2018 04:37:18 +0000 Received: by mail-it0-x230.google.com with SMTP id 188-v6so335260ita.5 for ; Mon, 25 Jun 2018 21:37:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=jOqHk1cD+QnYpge4mSe8Do4sPAXIfH1QbGkWX1aKzAU=; b=TDXc9+R6U4jD249RIhJKplL+64/qqQRderV6LrdtEMsTuq+/b2DNMYEfTcSNtQOP2r OCrvXnPCU102pG0GfcqllGc8UxJhPURhzX/py6QO4PXly8EY7rzTyLpowiWyBU2+UYfY bHs62FCPLxdVw4woOtGELdTtyo4Fdf4C3udGnH/6C316lS83f+rF+K1s0zEMQDVv9s5b 7WQXr4Te1YZlIgEAivPA9G8zBj48est/Ka/l6rEmPNd9rZ/qy1ideMXRAg//O2cXeEsA XUZaNlG3ouV5VWycouheY8O+tlucGGII8kSpXdQtpkl5Sin9mMeNhBbKVGj3uPrjIeXn VbWQ== 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:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=jOqHk1cD+QnYpge4mSe8Do4sPAXIfH1QbGkWX1aKzAU=; b=OhqLUR4p918MZfjIasrNvnwZyQwhtrKFtpMtB2fDZ0izjc388zmQD7hME8o6dVJIkJ S410R0yhRURSRdUXs/jZs85ITl8gxvXd4MYioOvB7nikAhzaJuYhUXFw4dSqN63kyYsl 1Uq5QOuQplFUFHXMl7xMMZF/ZcbylniVXe1EdstL3DNdyUrTAEDP9nA58quDjIjBI/Tc ncQMD/vJwOirjj9EgK6onb7oOLSMwJyK+WKYtzi4YQrRYDiP8NQylBrCZ9v6kKhi9QIg jr/KYkypiaAAQLZj4heOIi/Wua3aTpQ3q8Fr+OA99n3XA1baowu/tHCg9k4FwUehyfE6 /SBw== X-Gm-Message-State: APt69E2q8AY4WQJgVVfMcxdT6zxRDuSkvYpQGCFAlJDs3zm2Mlqe5nUy quAhYlb1/LRNa7kMq8GNO0xoqg== X-Google-Smtp-Source: AAOMgpcdHVicBbpvcoLfJuioIi9rRsEoh6v9uwEKh6ApHq6tiII3iNFdVEVtTt14cMfLeMB6a3JcRg== X-Received: by 2002:a24:6c8a:: with SMTP id w132-v6mr199485itb.4.1529987834642; Mon, 25 Jun 2018 21:37:14 -0700 (PDT) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id x6-v6sm516989itb.32.2018.06.25.21.37.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Jun 2018 21:37:14 -0700 (PDT) Received: by pryzbyj (Postfix, from userid 1000) id 7F3CA804EA3; Mon, 25 Jun 2018 23:37:13 -0500 (CDT) Date: Mon, 25 Jun 2018 23:37:13 -0500 From: Justin Pryzby To: Rui DeSousa Cc: Isaac Morland , "David G. Johnston" , "Yotsunaga, Naoki" , Postgres hackers Subject: Re: automatic restore point Message-ID: <20180626043713.GG20857@telsasoft.com> References: <8E9126CB6CE2CD42962059AB0FBF7B0DBE3167@g01jpexmbkw23> <0FF13FF7-C81F-43D0-B262-4D422E5D857B@crazybean.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <0FF13FF7-C81F-43D0-B262-4D422E5D857B@crazybean.net> User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, Jun 26, 2018 at 12:04:59AM -0400, Rui DeSousa wrote: > Why not use auto commit off in the session or .psqlrc file or begin and then use rollback? \set AUTOCOMMIT off > > What would be nice is if a syntax error didn’t abort the transaction when auto commit is off — being a bad typist. I think you'll get that behavior with ON_ERROR_ROLLBACK. Justin