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 1r5Bz5-00CGeL-LB for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Nov 2023 21:39:11 +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 1r5Bz4-00At3B-BW for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Nov 2023 21:39:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r5Bz3-00At2S-UD for pgsql-hackers@lists.postgresql.org; Mon, 20 Nov 2023 21:39:10 +0000 Received: from mail-pg1-x531.google.com ([2607:f8b0:4864:20::531]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1r5Bz1-007UoK-AH for pgsql-hackers@postgresql.org; Mon, 20 Nov 2023 21:39:09 +0000 Received: by mail-pg1-x531.google.com with SMTP id 41be03b00d2f7-5be24d41bb8so3350543a12.0 for ; Mon, 20 Nov 2023 13:39:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20230601.gappssmtp.com; s=20230601; t=1700516345; x=1701121145; darn=postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=G52Qnb4UkLIwBPr1BOjNJoeVN/R+gpQEejgN1VRZHGY=; b=EEVjQzfMJt0ANBJ17N/TUkhtVx0x15IVL3Eq5vmGDh9AY4KVR+m4On+EXEcp7Qkw6/ zkMCdsF+eedEP6TSxQxIfXjCjzZjleXaMMv+/eBeGZCPtNYnf15PK+zl58yuwilKblpb q5id5/c+zrJLBCodPQJ8uRFqNqzpWBsBRit/tWXJ/8HgTbhByzhG3MbGglH26bsXwKVL gIQRlnXX+L71mwK3Xyh1nmsc4kRdN9mLZkq2zwSDIGvCNVyKFCc5lxbfh3KahgNaVfME mYvZCn8HvhynviHYarK4kqmv5Lcb0DNswzmERr2YtEg4hB3xjJUMeL1IPetnPErYi5L1 5JqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700516345; x=1701121145; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=G52Qnb4UkLIwBPr1BOjNJoeVN/R+gpQEejgN1VRZHGY=; b=dt2oOhzN9rwjZ6796GlahMjGiwMboGWqV40sxazYv4bvncKg0z8X4ZsKcheU9p7gXJ fFN68O1nUW0V2+/ElJ62G+fSzo7sNVWsEQ8IRNLaxLh2DbF7GVzhzUR2muZ2cfaMCWt4 qm+Odunt8nvkwMeGRyQh54bO3z5aRC1S1Nj9u2WQfQeN6e6V9PKEyeeewxZK+OV7Ccwa yh+1oKpt6NJ/PlJBOVOy+xNcHsqFsJzlo0SnSQM/meM3h73fSHCrUNyMRgaaDuJzzDZm pFkDujQ/FIfeVGGReqX7arPbTURDOle61h0//cXzliPJxxzKLVeH88KlFz6S330CBauX u4Rw== X-Gm-Message-State: AOJu0YzhnPGKjkqqeGhlkvT92TuqIphhnis3KEtDBYTmGXT3c0spHSbr Biz8iNLobm/gTnctm7ERx6syB3mLE8Q5Pw5thtw= X-Google-Smtp-Source: AGHT+IGt10u7Zz1LZGSLkh+rySvBpj2sPTXXbRxg6Z2+rD+nBc0G6WWIfP4jywnXRB29Ql6PZemKTA== X-Received: by 2002:a05:6a20:144e:b0:187:cd93:aea1 with SMTP id a14-20020a056a20144e00b00187cd93aea1mr883030pzi.30.1700516344736; Mon, 20 Nov 2023 13:39:04 -0800 (PST) Received: from [172.18.10.36] ([12.126.244.130]) by smtp.gmail.com with ESMTPSA id j26-20020a63551a000000b005b529d633b7sm6449983pgb.14.2023.11.20.13.39.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 13:39:04 -0800 (PST) Message-ID: <37ff74e14ec83d19c0e7fd3ba35e2f15f99263a1.camel@j-davis.com> Subject: Re: PANIC serves too many masters From: Jeff Davis To: Andres Freund , pgsql-hackers@postgresql.org Date: Mon, 20 Nov 2023 13:39:03 -0800 In-Reply-To: <20231118222911.trznxgya4hvzapva@awork3.anarazel.de> References: <20231118222911.trznxgya4hvzapva@awork3.anarazel.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4-0ubuntu2 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On Sat, 2023-11-18 at 14:29 -0800, Andres Freund wrote: > I don't quite know what we should do. But the current situation > decidedly > doesn't seem great. Agreed. Better classification is nice, but it also requires more discipline and it might not always be obvious which category something fits in. What about an error loop resulting in: ereport(PANIC, (errmsg_internal("ERRORDATA_STACK_SIZE exceeded"))); We'd want a core file, but I don't think we want to restart in that case, right? Also, can we do a change like this incrementally by updating a few PANIC sites at a time? Is it fine to leave plain PANICs in place for the foreseeable future, or do you want all of them to eventually move? Regards, Jeff Davis