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 1tz8ZW-00Fbf0-Ll for pgsql-hackers@arkaria.postgresql.org; Mon, 31 Mar 2025 06:24:34 +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 1tz8ZT-0013tc-Hd for pgsql-hackers@arkaria.postgresql.org; Mon, 31 Mar 2025 06:24:31 +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 1tz8ZT-0013rI-7Y for pgsql-hackers@lists.postgresql.org; Mon, 31 Mar 2025 06:24:31 +0000 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tz8ZR-0025I0-22 for pgsql-hackers@postgresql.org; Mon, 31 Mar 2025 06:24:30 +0000 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-43d0c18e84eso17884555e9.3 for ; Sun, 30 Mar 2025 23:24:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1743402268; x=1744007068; darn=postgresql.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ooBJgCOZarzDsVmwXL4PgaKXPgeoX0xntv1MO9NDZrk=; b=TTtYgpvhnRDg6WuY/tTBdWDghjyG1NEJpGBP8TVTpPsCAvkxsuwLINrghu+wsfSpDJ Anr4HYXu8msw3JIo8S5jszee/HmrMvSOXzYT+8inxfpwOirVIKYwBgQ+QGod8yS8j7Um Q7Uf/j7GKxHfR+bvFqfoIMjz1vjR7ajOngXdqMpX7Z22v6TeXD+7Lzea4uvN4SLipi+R GCXqWQaRyMOC64S8kRIdL2icmmQSSY+/v8BKUEeSk52WanDkPhfg8SFV0ZY+ubv4hL+n aJjNDYlon51958PAx+2snhAXpWbCGx4/MY6kcowwy/+vxdkC+UHlFrbG6ohSBWoNAyI+ w/ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743402268; x=1744007068; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ooBJgCOZarzDsVmwXL4PgaKXPgeoX0xntv1MO9NDZrk=; b=Pqc/nb0s3zGd+wMitYuglA9fQRbbAtSH/xU+CzOv+kC6yjzvVknlb+kfxsIx9PKqSq luHqtquWRwma20YwqIIvKrX0N90a1Dm/lT5HBP47si0eYQ7HzSSA+e6ZcAbNtqIoopRE pFyWlwMmjGTTwvqscETT8gW4tyCjvRQ/umnwib2L5YqqzpCZaIOgHByjPsfu0biD2o9n 5/IwjI28Ggl4/TRI/71QfziHCnKca/OLOHL+heAxRSbYTt1yysi8LgnVv9FvKpchJ16b yQ9F/JWhoytxfLvqOZegGXUfPwfQT5y0CAUlblvvAkGpNAx90M/bSM2dbI79Gi/CmbNZ loew== X-Gm-Message-State: AOJu0YwpjOHnJ3RIUgQXZ3nEcakMcNxUCukcXIoKeRx1MWKx01YEDGxE PXyAIBbzyDu7qHDsS/KJlrtkxkhsXTdhLFlBoOwdw5Q+fYBE4zmO X-Gm-Gg: ASbGnctH0ikKtkKj8nvM/QFmCDKubrbMamZwUYgDccFgF53462r85A7KQOMqbkWE8m/ MIh33HXwiI1tQnmF3BbxaMxXm7rvgsIGGA6X8N3TrJf7EA/dChlPMq1HdL0Xl4vyhSiDPj3a4Wl JGtZNTdAA9W45s1exLwVz3zrlDHoZMQrx1xfbPDFZHLU65sppEzm6JJ6Thpw1Kpqb7U2ml73wqc yHPXCHMDrzcDDmJ+3wN/h0pD+SMtYcjvViJPHptWBeNYiOnK2KRuZIm9tT8zIS9NWLGpHyQgIdH 5Iaep13UFUeBvlM0TuEMOAqR9hnPndzc0xILTzY4uO+Wdq6mlBq4By1R9T3RM3yGecriVmwkCGG ay5ScjIZMAXdRzg== X-Google-Smtp-Source: AGHT+IE4Wq3zIQyrtHnseGDxIHf/wVhYggHjXoyWt8mZ4vw5E60f/Vl2636+Olxkt6u0Es8qAnhv2w== X-Received: by 2002:a05:600c:45ce:b0:43d:7de:16e3 with SMTP id 5b1f17b1804b1-43db628b924mr61050085e9.24.1743402267928; Sun, 30 Mar 2025 23:24:27 -0700 (PDT) Received: from [192.168.0.89] (84.123.232.230.dyn.user.ono.com. [84.123.232.230]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43d82e834a5sm158645505e9.13.2025.03.30.23.24.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 30 Mar 2025 23:24:27 -0700 (PDT) Message-ID: Date: Mon, 31 Mar 2025 08:24:26 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Proposal: Progressive explain To: torikoshia , Rafael Thofehrn Castro , robertmhaas@gmail.com Cc: pgsql-hackers References: <4be5223e-4725-49a2-b49f-769f4f402984@gmail.com> Content-Language: en-AU From: Andrei Lepikhov In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 3/31/25 02:23, torikoshia wrote: > On Fri, Mar 7, 2025 at 6:43 AM Rafael Thofehrn Castro >> Implemented this version. New patch has the following characteristics: > > > I haven't looked into the code yet, but when I ran below commands during > make installcheck, there was an error and an assertion failure > >   =# select * from pg_stat_progress_explain; >   =# \watch 0.1 Yeah, that's to be expected. I think many corner cases may be found: hash table in the middle of filling, opened file descriptors, an incorrect combination of variables, 'not yet visited' subtrees - who knows what else? So, last time, I just ended up with the idea that using the explain code is a bit dangerous - in the middle of execution, it is enough to expose only basic data - rows, numbers and timings. It seems safe to gather. -- regards, Andrei Lepikhov