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 1fNncG-0000Lz-Uc for pgsql-general@arkaria.postgresql.org; Tue, 29 May 2018 23:01:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fNncF-00011Y-PO for pgsql-general@arkaria.postgresql.org; Tue, 29 May 2018 23:01:19 +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 1fNncF-00011O-E2 for pgsql-general@lists.postgresql.org; Tue, 29 May 2018 23:01:19 +0000 Received: from mail-qt0-x229.google.com ([2607:f8b0:400d:c0d::229]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fNncC-0002Hs-5r for pgsql-general@postgresql.org; Tue, 29 May 2018 23:01:18 +0000 Received: by mail-qt0-x229.google.com with SMTP id m5-v6so20933800qti.1 for ; Tue, 29 May 2018 16:01:15 -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=lPl6O/Tig8DmTs+Db4VRjsPxJ/yPYKGN//u4yco2Rro=; b=SiotyQjmGBTVocqQ7LVqf0JRRmnWkSCnPw6xBFVmeqKrZZPdN03HMdVvRLfH7WSaNa 0uH2JWuZ7pm56Z368ajBrQUWDUxXBwuzob2wGfWtgumWCOOdLrzywQj+gXmN5hPgPDbN nhRS0Yoir3ylxS57CLFWQr3IZgtc3MG2JYaw2rEqQQ2wjZHAFMgDBttgPp4FGFceocKC /r0kpgd9CaYL2MTBZfSjp40OoWc26YvcJLlZFPXml8OpwwtOwKCaHfcqgD85MLAMVBNz wrTpZ8sQUQzvdU5JSAb/5NHCW4WU1GpZ+IMn2lL03CwtU5RPFLw8+FAIjhflgRF7hzeq Auuw== 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=lPl6O/Tig8DmTs+Db4VRjsPxJ/yPYKGN//u4yco2Rro=; b=ZDkfFaZmMBkTaSmTWpjt/peum/9KBB/c4uY9Wcni4peH5WYwabc4MnBTjQLewHHlgp JTAMvTnQ2bchjFp+Lp7eF1P0O6eTkBy2dR2/pDFeoUkguvcCgmTWrFHZi53ukK3VQo5n GnW5gXNY/85Pg+ro2xl9k/t/toDg2lqrlYge18zal+QoMKF5hPc7cPwE0NB5Xu0exSVB dpNheIayEIKKZEYWJYu4NkxCMpPDNyaVqpoGyBKE8UwOa4gIC3Qwt9BM8cd1ZCAN91xH GyhJHo1gkijoIDmQKcq7S8EKskwW6mVz7an8XajuxASDxLE8k3B23ZAc4R+tPsexjACY sZ9w== X-Gm-Message-State: APt69E2WZQFDcdPOqH2TxZ2h+vSQl6IrAL+EeKfz1lFsGF5ed5EdYwlF j4nStiklHBm/NWWQIMQto0W8AA== X-Google-Smtp-Source: ADUXVKLwkbKZCcb9G5g0KwyhHbkdMYtUhL1k7Pe2m/LC8lxxXiJCmI9cW5Q1A90EL03Fvl2q9tMlLQ== X-Received: by 2002:ac8:3517:: with SMTP id y23-v6mr338685qtb.143.1527634874943; Tue, 29 May 2018 16:01:14 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([191.126.227.221]) by smtp.gmail.com with ESMTPSA id b13-v6sm23574271qtp.89.2018.05.29.16.01.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 29 May 2018 16:01:14 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 931C060D; Tue, 29 May 2018 19:01:06 -0400 (-04) Date: Tue, 29 May 2018 19:01:06 -0400 From: Alvaro Herrera To: Stuart McGraw Cc: pgsql-general@postgresql.org Subject: Re: existence of a savepoint? Message-ID: <20180529230106.o46llmha7nsfqoqn@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <857d29bf-515d-e624-9e0a-135e9e28e91b@mtneva.com> User-Agent: NeoMutt/20170306-137-4415bd-dirty (1.8.0) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-May-29, Stuart McGraw wrote: > Alternatively if there were a setting to tell Postgresql to > follow the SQL standard behavior of overwriting rather stacking > savepoints, that too would also solve my current problem I think. > Perhaps it is just my limited experience but the former behavior > has always seemed more useful in practice than the latter. I think if what we're doing breaks the semantics of the SQL spec, we're definitely open to changing our behavior. But that wouldn't solve your problem today. What I think could solve your problem today is a C-language extension that uses xact.c callbacks in order to expose a list that you can query from user space. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services