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 1rqDn2-00BFcJ-5m for pgsql-hackers@arkaria.postgresql.org; Fri, 29 Mar 2024 15:05:08 +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 1rqDmz-002G64-QJ for pgsql-hackers@arkaria.postgresql.org; Fri, 29 Mar 2024 15:05:05 +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 1rqDmz-002G4m-DN for pgsql-hackers@lists.postgresql.org; Fri, 29 Mar 2024 15:05:05 +0000 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rqDmv-0074FZ-EO for pgsql-hackers@lists.postgresql.org; Fri, 29 Mar 2024 15:05:04 +0000 Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-6ea9a616cc4so1548849b3a.1 for ; Fri, 29 Mar 2024 08:05:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20230601.gappssmtp.com; s=20230601; t=1711724702; x=1712329502; darn=lists.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=/aFLnsrO/evO2DA7b4Vux5XonRF0BmSBnyOSZHi2eOU=; b=oBPhC3gtucFuUoz2IwtmI0a9+MqtlDNGmRWVU0E7WqSQ4n79cZNayfkUNJp0A5/BkS khIgF9+hlpJyKwI13DTTKBXi2lZ3LxLvFAJvPIh9+iDVAmwNtVtUYTF9l5LsYIfoqnf1 lf9m5GaLB4P0jb3LwbChGUpVNWLXeqxNhmn+8mxynLX3DPg+5OTay35SbhjuZCSe3M83 dEz9iAqsf+2pqBnAW2SjNdCNyyfKWarpxwWXR6LF65O0wYcAOXDPKD0HqD2EVUeiMqew q4igFOHlBYXyF0nk76UZrsOL617RgDcL8bVMZxK2kgOv7G/Kgb/ryjDgV+P74UX7oJIl tOYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711724702; x=1712329502; 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=/aFLnsrO/evO2DA7b4Vux5XonRF0BmSBnyOSZHi2eOU=; b=YHzNsSZe7nKzOEI6kmPMXAyoI/F+Hwjjux+z9XqlTpZCxA7UThhvYtgNU1e677GWcU olp0zXXFnBOgW0CZWG1EdNs5clbUDZEfAE3lnKPnT6N2GiTcH43H3LOlX2oAiDMOr4VZ n0bItG9EJkPSzM45JsAkJzVtlpkqXjxUKuvUd6veW6ioNbl9f24OwWc5FhH9xIMs/MFa t4i4CL6vbtEFYFh7w1Qah+Rib3z8KapAi9P79IpnALoSrw7fTwzQyZqc4kh5REM9n4qj cym2vMbaKYzCe3Hm0hIp5fc8zRgluFO2/NwQAOMOx7G/eOS0jVPHowAk0OtaSFOoV0Ki 3U8A== X-Forwarded-Encrypted: i=1; AJvYcCVEv8WFI9FX6OVXx5lOx8qzUMP48sEGs9tWR9mBw1BbBVzWKJ6i7sok2FgWR1AuMeCPpxugJlIGiw5nY1ZiQIXXDXjNAo42I7wrnni7/a6ETwZA X-Gm-Message-State: AOJu0Yx4KoiD8/6iyYgSqDLvTS1j69ruN3idgqmCqDNl9oVoxXVZ5VTS y0n48VYw+FCI+N3Gjl/QkwD8lQMx0mstIjJ5y7uMl2wPEfNK89CthB3xZbvbzg== X-Google-Smtp-Source: AGHT+IHPvxJTbe20ZysF1w88HERntx5jNvnLgxsMQh1cigz4ERNwt4LP5OPT0Ji60UtGqXw2zFYgrQ== X-Received: by 2002:a05:6a00:1acf:b0:6ea:ba47:a441 with SMTP id f15-20020a056a001acf00b006eaba47a441mr3059342pfv.4.1711724701641; Fri, 29 Mar 2024 08:05:01 -0700 (PDT) Received: from jeff-laptop.lan (c-76-102-242-158.hsd1.ca.comcast.net. [76.102.242.158]) by smtp.gmail.com with ESMTPSA id k17-20020aa788d1000000b006e5af565b1dsm3111524pff.201.2024.03.29.08.05.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 08:05:01 -0700 (PDT) Message-ID: <3df03aa65aa6ea3a76582e1a792e422dc5c32ad3.camel@j-davis.com> Subject: Re: Statistics Import and Export From: Jeff Davis To: Corey Huinker Cc: Tomas Vondra , Stephen Frost , Matthias van de Meent , Ashutosh Bapat , Peter Smith , PostgreSQL Hackers Date: Fri, 29 Mar 2024 08:05:00 -0700 In-Reply-To: References: <54f190b6c757da2a33cce811949e9dd9601fcba7.camel@j-davis.com> <1632327b74a734f8c434eb75e824160d2b06a697.camel@j-davis.com> <16412b8b7ae443cb7470006beff3011927048860.camel@j-davis.com> <1b1bd1ec39ab3de09a17bf7b241021067e5bd63c.camel@j-davis.com> <2bce855db8259c5672a09f863a307ca07b967b68.camel@j-davis.com> <5e94c358caedf2a231dd71624c3578db7227a265.camel@j-davis.com> <4afa70edab849ff16238d1100b6652404e9a4d9d.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, 2024-03-29 at 05:32 -0400, Corey Huinker wrote: > That is fairly close to what I came up with per our conversation > (attached below), but I really like the=C2=A0att_stats_arginfo construct > and I definitely want to adopt that and expand it to a third > dimension that flags the fields that cannot be null. I will > incorporate that into v15. Sounds good. I think it cuts down on the boilerplate. > 0002: > - All relstats and attrstats calls are now their own statement > instead of a compound statement > - moved the archive TOC entry from post-data back to SECTION_NONE (as > it was modeled on object COMMENTs), which seems to work better. > - remove meta-query in favor of more conventional query building > - removed all changes to fe_utils/ Can we get a consensus on whether the default should be with stats or without? That seems like the most important thing remaining in the pg_dump changes. There's still a failure in the pg_upgrade TAP test. One seems to be ordering, so perhaps we need to ORDER BY the attribute number. Others seem to be missing relstats and I'm not sure why yet. I suggest doing some manual pg_upgrade tests and comparing the before/after dumps to see if you can reproduce a smaller version of the problem. Regards, Jeff Davis