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 1hxWmp-0005Rj-R9 for pgsql-hackers@arkaria.postgresql.org; Tue, 13 Aug 2019 13:24:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hxWmo-0000Ig-Lz for pgsql-hackers@arkaria.postgresql.org; Tue, 13 Aug 2019 13:24:26 +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 1hxWmo-0000IX-8h for pgsql-hackers@lists.postgresql.org; Tue, 13 Aug 2019 13:24:26 +0000 Received: from mail-qt1-x842.google.com ([2607:f8b0:4864:20::842]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hxWml-0007MX-G5 for pgsql-hackers@postgresql.org; Tue, 13 Aug 2019 13:24:25 +0000 Received: by mail-qt1-x842.google.com with SMTP id q4so9107123qtp.1 for ; Tue, 13 Aug 2019 06:24:22 -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=5cls2qQFfnLAC9rv7MErwe2MZoLVADWAqzQtwFN2N7Q=; b=kxTmwhZvuZpeFNPk/1V0biL1qp52XcV+robWB0jJ7YqfWZYcA4hUw4R5o6U1SHA1be buBCQRFvJuD3WsSthRU2utVsTZi21lPI+7I33AJUisdQl+KLqzFdE/gPd5+PczmoNZlm U8t97xTUR/nui6bEYxwdAROZec4vajRrRHOtnrSfpMd55yFkLWbfU4u3vyW7iEm0DUR9 1NkDSnrGlHSu31CpUbidcEvCRtWKcjYWnlZZre5g9/pZ5Un/XjdFZ4j3w4ziaEW87TKu w3tq4+NrS/mF3AFxaoh7OpBNDGGMrzbZPwdnfZJZoVP1tIr+Ccb2joAw0GSpAhebniPm YI8A== 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=5cls2qQFfnLAC9rv7MErwe2MZoLVADWAqzQtwFN2N7Q=; b=C0scYt0BqLu57IGPm1ZaZqbHCV2PALiA5b0bZAYtaWwayYWXMQk1mCwOkVSWiuE+tf 2Zy4xaPX8szQif9dVleXIs3n911RWlEzCIEhnT8EAOat9GRU80OkkzQRxxsyqvBnLKoO j1woyfVfNOE/KG2PymfHWSHmlIYz5yi2nYRs0q63nDIvORWC21xjh+RE26INbPGuQtwu m1AFfJg6BX5a7FU/ttmW2CUMqtPa3Djuyav55q9Z4vx/lpIXa1Rgl0OyeIueKs0GacH1 C1YgvBlY34DRKS9I1/C95gYAPC+gjN909Y8V7wEQiIbkIXdIfodw0SCTF9N5xAeTGn55 TKJg== X-Gm-Message-State: APjAAAUxZ/Y8t/eboqtVrXCdypnMbuq3ME/cJfEgJOdEscMccq9Y7a+G p42WfWJ7ir72oXOKdCGkBAJYAA== X-Google-Smtp-Source: APXvYqx5vNugI/Zh2zEPgbB4x33ScngE83LRP7Jgfo/705TB6IL11xk7NjciGLgLpmfKafwoFOLsSQ== X-Received: by 2002:ad4:47c3:: with SMTP id p3mr1902966qvw.120.1565702661356; Tue, 13 Aug 2019 06:24:21 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([191.125.227.77]) by smtp.gmail.com with ESMTPSA id o18sm5201355qtt.4.2019.08.13.06.24.20 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 13 Aug 2019 06:24:20 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id D7C8F123B29; Tue, 13 Aug 2019 09:24:13 -0400 (-04) Date: Tue, 13 Aug 2019 09:24:13 -0400 From: Alvaro Herrera To: Peter Eisentraut Cc: pgsql-hackers , Dmitry Dolgov <9erthalion6@gmail.com>, Thomas Munro Subject: Re: errbacktrace Message-ID: <20190813132413.GA4757@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <35beac83-bf15-9d79-05c4-2dccd0834993@2ndquadrant.com> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Aug-13, Peter Eisentraut wrote: > I have changed the configuration setting to backtrace_functions plural, > so that you can debug more than one location at once. I had originally > wanted to do that but using existing functions like > SplitIdentifierString() resulted in lots of complications with error > handling (inside error handling!). So here I just hand-coded the list > splitting. Seems simple enough. Hmm ... but is that the natural way to write this? I would have thought you'd split the list at config-read time (the assign hook for the GUC) and turn it into a List of simple strings. Then you don't have to loop strtok() on each errfinish(). -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services