Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rAaA9-007GRZ-RM for pgsql-hackers@arkaria.postgresql.org; Tue, 05 Dec 2023 18:28:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rAaA7-005EWA-6J for pgsql-hackers@arkaria.postgresql.org; Tue, 05 Dec 2023 18:28:51 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rAaA6-005EW2-TY for pgsql-hackers@lists.postgresql.org; Tue, 05 Dec 2023 18:28:50 +0000 Received: from mail-io1-xd2b.google.com ([2607:f8b0:4864:20::d2b]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rAaA4-008xON-CD for pgsql-hackers@postgresql.org; Tue, 05 Dec 2023 18:28:49 +0000 Received: by mail-io1-xd2b.google.com with SMTP id ca18e2360f4ac-7b350130c3fso168406839f.3 for ; Tue, 05 Dec 2023 10:28:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701800927; x=1702405727; darn=postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=gh9zl/2zX2TjkZ5h9RPp0RopVwaImJ3MbH506SYfeA4=; b=X7nEqHpmHtVbTP8hbSkjKjosffll99UsS61LQRuaMN2qYIpIS8L0yMbCRvjsZN12Mv aE07OqgEvnd8Bx6o0hPmSGrPlJMmbGRsE5kiN0THvn5YCgcnuMZcLwzJLu5xz8W/GlOG UIR0nfUzljsOfaGaCoFF0XEV71zjtsqyJOROsffu4k6J0S1ZrjqXBGdNtOPs1ncaCclh IwnRMiTiymc/rXmmeHOvTuKEAbfZmcrs9Zrwk5QnfwhFlsQiHjuGHBRoWZdQzV8JpaIW MW/pvukcNKbUwsc48z3XhCjMPeogBWHy8NIUyLDTT0+bAPytz8p6tcdS9RJllQ9NqWGD sS4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701800927; x=1702405727; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=gh9zl/2zX2TjkZ5h9RPp0RopVwaImJ3MbH506SYfeA4=; b=j1RR9x37VgnKHXMIaRjYBR7mtC66yrov9SBnpgqyZ4yp8dVlkO/jtRTYhbcblvV+YU 9+vpBFkLPC1H62vsO9jnr5TOvxZFxXGwUQ8CjP+Rid9ZBPm+JNVZxGsws4ETnFSIjUzb mMISx72/CkEzZm/gB40JzF+B6HLLQNzGUG8w0EF0Zl47JGKRWkpN38gZjmrSxCkdW4ct jV8UZStMCEDrG9NzL/64KoYCf14/nnkpWYehy4MnwaZSHuxmnt8fwNZskMeuMYUQqIuj BTRJ1FnZHSsCR6bRRwBmqmvnk2GPo9e9ScejL2giQ/N9zJ/nenMELrlqy4bGNYM+w8zC EtrQ== X-Gm-Message-State: AOJu0Yw6Qq/YlIBlNam5cqglqzyP6i4AXxuCdL+Wcilm0sqDEs+7KBll YP0K3zVYBS3kZsSN+11CeicOg8QMxR4= X-Google-Smtp-Source: AGHT+IEoaE+j3kT6Mzmst3Y5vMfYBtXcwMEojJ3uBcQw2EXempdlIOXmkjbi0p7tnyx2hAKYeaZGvg== X-Received: by 2002:a05:6602:b86:b0:7b3:7b0d:9fa6 with SMTP id fm6-20020a0566020b8600b007b37b0d9fa6mr5701778iob.5.1701800927577; Tue, 05 Dec 2023 10:28:47 -0800 (PST) Received: from nathanxps13 (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id q17-20020a6bd211000000b007b42bf452f4sm2203613iob.33.2023.12.05.10.28.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 10:28:47 -0800 (PST) Date: Tue, 5 Dec 2023 12:28:45 -0600 From: Nathan Bossart To: Robert Haas Cc: Peter Eisentraut , pgsql-hackers Subject: Re: backtrace_on_internal_error Message-ID: <20231205182845.GD2757816@nathanxps13> References: <20231205174034.GA2757816@nathanxps13> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Dec 05, 2023 at 01:16:22PM -0500, Robert Haas wrote: > I think we should consider unconditionally emitting a backtrace when > an elog() is hit, instead of requiring a GUC. Or at least any elog() > that's not at a DEBUGn level. If the extra output annoys anybody, that > means they're regularly hitting an elog(), and it ought to be promoted > to ereport(). Perhaps this should be a GUC that defaults to LOG or ERROR. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com