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 1tyJ0f-004weu-JU for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Mar 2025 23:21:09 +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 1tyJ0e-000q5J-1k for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Mar 2025 23:21:08 +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 1tyJ0d-000q5B-Cz for pgsql-hackers@lists.postgresql.org; Fri, 28 Mar 2025 23:21:07 +0000 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tyJ0X-001ha3-26 for pgsql-hackers@postgresql.org; Fri, 28 Mar 2025 23:21:06 +0000 Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-2240b4de12bso19709205ad.2 for ; Fri, 28 Mar 2025 16:21:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20230601.gappssmtp.com; s=20230601; t=1743204060; x=1743808860; darn=postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=JlfH9P51cnsug8t4wc0HNrLvVxNxyZnFVQDJrI2Jmz8=; b=Npbl2VhxhwJXeLwy6qvsyVNO6zuzn/o9wZTgrHgk8YKbhVsQcuwYGraEBCbTYElrYM jooISOpJG12a7b5fNlBUkdF+yuQ5A/uuPBarcLW1bXk1yBHuNxPxk79V73Tn7eKHSCHt fFfixpQNHqK27/JEVZRFepX5JpOgtHM6oZwD2iwpRUmn1BYVXVdVo48AZpJOUctODPIN kgoJNSOOYAtjIzyOrbnitruylMUUqnpSTqYR3KjpO4LpKaFratOOkYwhFIVcQegV6BzL qGa9EbLgJaQDyQ/TTwq4QaJAEQzYqbAXmFvxaEkCLWSKcpermxodGoZBPVHwRJOMHWLq Tn5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743204060; x=1743808860; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=JlfH9P51cnsug8t4wc0HNrLvVxNxyZnFVQDJrI2Jmz8=; b=OWNtGWy6/z0uaCsm1sVgMPYKMvm8t66yyLrMOAidZZNqYXxDqPwJltwKKD75onHYIL w6q+SgO0Z9OTBjQPO6X/bVBT7qMdnjgtDKBz8dPEVZhGqqPOlkTbMsXum2x8k+ItcbpY WO5HgsoXOMA/GsHoL02u+IRH7qG97F7Q0KQRO32SUgjgzP9tXPGxijCHKjFJaO3iIyPW +vCjEEznboVU57b50bWSEZF+BfomfWaFMK3G4NSxHL/zWAFCU/L/CY85sr/jYE/V60w4 cSoSOT3wyQTMuxKC597ojHvCM5Pt1PQ4ywStXGo4tQLipy6b8PJrc/etb5H+LGUGt39w 87Iw== X-Forwarded-Encrypted: i=1; AJvYcCUGydYWotJrNUGmHT5lCza2ocbGvGzKf0lwc+v5hasdM42owmwsI+4h+8/jM5XcPy0D4rhqdnhP8J4a7OMc@postgresql.org X-Gm-Message-State: AOJu0Yzm0PuxaUFksbrqsYlAmknpLIBdJcnGIcs/KTQAXFgqHpRaxebw YUj5LGQZnAIV0Dd6whcEm0fZ2IAOyNnOElqbjgbs5HPUEykd6D9rp17oW0NaoA== X-Gm-Gg: ASbGncuTcxcR1J+o8Swdr4xHkCMxolDbo/oKBa9wsRHxrwvuIEty5U+xR/P/Y7PqIXm exik9KJh5yyS8uwK6gjf34pp4tVcf6WY7B3QfPIK2uFXbB4P9CzIIBE5t3rlyP//mqwJtuNvf5y 2Or7Sc4Jz4gjnJl+P2j+ex/k/+qTIMMV7w4Bk457aGkzuAgqnKZ7cJUKUwK5VmnvGOSJs8prPFg bLOgD1nn+xy32vFguN7E16a5f+W47ngVFO1m1rRW1aXH7WtMZ89ks3O0bsAravkWl/Xia0HkKEI C3DSGMdYbIfYQiD5usbR8DeM+rsCliVIc1zHbrQUkvEhW79VJpC0moIMcUCocY8j7nOUgxtqCeV IwA+JgDDd X-Google-Smtp-Source: AGHT+IE9rMFRglyRTFbp74fzDsL0XT577Zz4lHxP8Hyc4pc9ngtZ7RuDN03T2PU19OshvC7GKodAtA== X-Received: by 2002:a17:902:e74e:b0:224:1579:5e91 with SMTP id d9443c01a7336-2292f9fa349mr10784155ad.47.1743204060326; Fri, 28 Mar 2025 16:21:00 -0700 (PDT) Received: from ?IPv6:2601:642:4c01:ba0e:209d:839:920:8536? ([2601:642:4c01:ba0e:209d:839:920:8536]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2291eee2667sm24403065ad.92.2025.03.28.16.20.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Mar 2025 16:20:59 -0700 (PDT) Message-ID: <29a2087d79080e9bbdde6d2423a94635cca639b8.camel@j-davis.com> Subject: Re: Statistics import and export: difference in statistics of materialized view dumped From: Jeff Davis To: Ashutosh Bapat Cc: Tom Lane , pgsql-hackers , Corey Huinker Date: Fri, 28 Mar 2025 16:20:58 -0700 In-Reply-To: References: <1427602.1741702648@sss.pgh.pa.us> <1500726.1741706804@sss.pgh.pa.us> <1a83225688da8a72a97029f69a222246638014ba.camel@j-davis.com> <73f0555abad4b40b82cae193789e4d1b0d0a1b00.camel@j-davis.com> 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 On Fri, 2025-03-28 at 14:53 +0530, Ashutosh Bapat wrote: > When I applied v1 it didn't pass. I applied v1 on top of master as of March 15 (771ba90298), and then took your two changes adding the tests, and it passed. Version v2j is just rebased forward, which involved a trivial merge conflict. > But applying v2j-0003, the test passes. Great. > It feels like we can simplify this as: REFRESH MATERIALIZED VIEW > replaces storage and resets the stats hence the Matview stats should > be printed after printing REFRESH MATERIALIZED VIEW command in > SECTION_POST_DATA. Also the materialized view ... . Hence the section > may be updated later for materialized views. Done, with a few modifications. Hopefully it's simpler. Tom suggested that there may be other dependency problems lurking, but I believe the patch is an improvement, so I committed it now to unblock your work. Regards, Jeff Davis