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 1iYY37-0000gO-CX for pgsql-hackers@arkaria.postgresql.org; Sat, 23 Nov 2019 16:14:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iYY36-00056v-1h for pgsql-hackers@arkaria.postgresql.org; Sat, 23 Nov 2019 16:14:16 +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 1iYY35-00056o-LT for pgsql-hackers@lists.postgresql.org; Sat, 23 Nov 2019 16:14:15 +0000 Received: from mail-qk1-x743.google.com ([2607:f8b0:4864:20::743]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iYY32-00039f-3x for pgsql-hackers@postgresql.org; Sat, 23 Nov 2019 16:14:15 +0000 Received: by mail-qk1-x743.google.com with SMTP id e2so9052573qkn.5 for ; Sat, 23 Nov 2019 08:14:11 -0800 (PST) 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=UbExK6w0M45sJv21koVUXrdf3fHoemgJR/EMH+9LfyY=; b=skKZmOsz1TtI2lgTZXFcyEPb7HrNEdMdk9LIy5WJH+IPmtQMmsE0wNaJ5BLpxlQMcx yhXhS64Vovq1eHy4i6wVSUfs+3812zX7T4rko4XerPQC1RLHTHVMTvv4BJmeCX+zx3dX 2ra8KT3zTlnvr7QsCq7FJwHn2ylS/Btz04JXu2h7MY71RtN2Dg5Fg4cQNhzU969UxhKf cqet10sWFDo1GI1zeeTcOUty65D4ZJ5z2jojW77yR2WgKFs2fwvzwnwC2w75SmEaw3XR f0AivqByq08Q5qpnMfafqAK/h/bDhYyA1kVqWd+6BWUgLsDEmvfNLyTazmKA4xe2ARgk nnmw== 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=UbExK6w0M45sJv21koVUXrdf3fHoemgJR/EMH+9LfyY=; b=gvk7kUHRxn4uSfar2jvYLFHleoHog1ZzUQ7zkdVuEx9dGKA2c55IXVZLgid7i1ekdF Hs5/lwcsdVD5OUUXYsm8DfUB1gTi85PDC7bSiLZJCOwxWPCk9BU58BSgruJbSy0/2uII 5Umj/phPqoH5Aw0oL6Ima8xsBLxp3cA6W0r7hQ2OR1a2LZQVcPioKK+1iIk8sX48OdCh 5o3SpNB2pMGB8wSKEJNyo+sUmsdc+iuwV42uPs4yZcB6krlxY7PtlRieysCh5XJRvWKH ytw8f0JIy1ReZag99c98rqk4k9Ysn3+Mj/JsldT8tKU9lMicj14rOlb5R8OAGApEgaxv 0Ecg== X-Gm-Message-State: APjAAAWcED2ay2omwwIIbJFWoZ6xTn+g1XZAiMzLtw26MqgrmBMn8W1h yePaD0LLM0sFLO5dEC69tF2yIw== X-Google-Smtp-Source: APXvYqzLZPc6hxcVYlB20K7hE8seYVt+khTDneZCw7H+MySsx2bJkDHvFXYUsefu9fxoIC/ZTR5fxg== X-Received: by 2002:a37:27cc:: with SMTP id n195mr10046330qkn.428.1574525650025; Sat, 23 Nov 2019 08:14:10 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([190.95.19.128]) by smtp.gmail.com with ESMTPSA id i10sm810303qtj.19.2019.11.23.08.14.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Nov 2019 08:14:09 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id BD15F300A44; Sat, 23 Nov 2019 13:14:06 -0300 (-03) Date: Sat, 23 Nov 2019 13:14:06 -0300 From: Alvaro Herrera To: Tom Lane Cc: Peter Eisentraut , pgsql-hackers , Dmitry Dolgov <9erthalion6@gmail.com>, Thomas Munro Subject: Re: errbacktrace Message-ID: <20191123161406.GA8050@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <26476.1574525468@sss.pgh.pa.us> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Nov-23, Tom Lane wrote: > I had occasion to try to use errbacktrace() just now, and it blew up > on me. Investigation finds this: > > int > errbacktrace(void) > { > ErrorData *edata = &errordata[errordata_stack_depth]; > MemoryContext oldcontext; > > Assert(false); > > > I suppose that's a debugging leftover that shouldn't have been committed? > It did what I wanted after I took out the Assert. Uhh ... facepalm. Yes, that's not intended. I don't remember why would I want to put that there. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services