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 1tx9EN-003emH-7A for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Mar 2025 18:42:31 +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 1tx9EL-008ApW-Lr for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Mar 2025 18:42:29 +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 1tx9EL-008ApO-8M for pgsql-hackers@lists.postgresql.org; Tue, 25 Mar 2025 18:42:29 +0000 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tx9EI-0015vh-1F for pgsql-hackers@lists.postgresql.org; Tue, 25 Mar 2025 18:42:28 +0000 Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-22580c9ee0aso123479345ad.2 for ; Tue, 25 Mar 2025 11:42:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20230601.gappssmtp.com; s=20230601; t=1742928145; x=1743532945; 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=BcJ86gli2nW5SiCOgXYK+b1VqwA9uG0Jx0GRp16DPUE=; b=PCo3wXU/0lPW+0vTo2GP6R0FL2PKnP6hHKCO6eIDH6B3YYIh2mfgk1BHNa88bSq7y2 hlY/o1hrDNcSS/+N+zZoredVvhXttHoMf3Zevc0ulmqaEi64st6lz5mDYkfkvs+SCEkc 5yXXBQOoIHOB14vVr5IDodNPw1HNIgC6SSmHF4e5Yf8M+WGiW2+B2y9DPK66/SepM76g Zl6T6/OFaV6L4axMK9DCdfFLv3OBcZX30kDLWXdopP3iU/uk2fCfX2wJv/nfrSFSxqkA 94tlxWW2F5aoP6Al4K6mZOt9QhmUu5LVKmd0bNdQ0xltJVrz3uVddgHkJbQYO5KxUksw fJAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742928145; x=1743532945; 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=BcJ86gli2nW5SiCOgXYK+b1VqwA9uG0Jx0GRp16DPUE=; b=fSqkRw0s4O6vcnpCYIiqr1+XjujfOP8MOo3PlrU8KWZep72jmvF1nTPd8Z4YpDcxYY ULdx1MuBqMvtyU+SWfmjEPe1Go4IJ0mhZT5nri805e5k/mSUY1rfgm/ZazJAqdSPlWY8 jtbeySbzKAtXf5Np31yBXc1fqsN20fr/EFV/SgkVIb7e+BaCE1h2hqu4lLNyx8r+46Iq e2vuo0WfTVvE4jpVisfrctkht2N4zWPQx2cQoKlYnfsSk2HWIq9I+Vof9yV9xqAfW7aW qGVJ6Cl10p85/YFqbrVHca/cZppROtEvAgy2jv6KsmdSa6HKfn+45r7LFfVtkS8dcYsY WdnA== X-Forwarded-Encrypted: i=1; AJvYcCXMDuyrZgdfSX7Q7EwShZsXGdxpUPkxitWkXVuSp7Aza5ri/1v/7ToxKYIkN5TXvmBGQfOWMlZtLyyCClyI@lists.postgresql.org X-Gm-Message-State: AOJu0Yx9QwY9a5kDVdBLs2JGTWUnonnOnX11snu+ClsZ+QuJ/b3X5Cli sNbtPIZWdBLgiEpJXHHdr3qn6zQbFX14KGmeLhIjhoYnc0mhvSeldO6zvygcdQ== X-Gm-Gg: ASbGncuml066cacd80nfbzKljSaef8tjQTj0FmS1oEChv0ALPrNCWfOU1BNgZmjh3wk 3GbZ3BuxkBK8KJDhploLN5mMBGBlTSMGiL2qi37eIqNpYQrwFfbCLRUtwlFPFgTB268PHKxF3NZ BsEV5zssUdh61NMtoVTdYk6tdM0DEp/hEEC2Ix7B8AmE53NCv1AI0M0GJfsRQM+ChIS4bk5Lq8p ifdACwGSzNYApUNKCb8+9MMiEPnu2kUxJB5H6/GxByy9SxmwUMjdg/mNN2ZKxte9u0UeoCwmjy6 vLPwPMtGhbY8XfrFdC2sPhqfZM/CdiHmJAjIJ/yv8ekOjqweDjTzm7PFWb+Kd6dxtGK5Mr4ycQL J9LWERcQIe4POAw== X-Google-Smtp-Source: AGHT+IFXHKfflermt0St9GzfT9qqwOUzEQp6QlUJy92DemL73MrhzWLes+/nTj7eAhpct9yLlO+bOw== X-Received: by 2002:a05:6a00:2291:b0:736:53c5:33ba with SMTP id d2e1a72fcca58-73905a02b96mr28866650b3a.16.1742928145223; Tue, 25 Mar 2025 11:42:25 -0700 (PDT) Received: from ?IPv6:2601:642:4c01:9572:f2ac:282a:8454:9cac? ([2601:642:4c01:9572:f2ac:282a:8454:9cac]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-73905fd5644sm10496304b3a.48.2025.03.25.11.42.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Mar 2025 11:42:24 -0700 (PDT) Message-ID: <0576fa4dbd6e62e027b41e0ef9254896540f1cb4.camel@j-davis.com> Subject: Re: Statistics Import and Export From: Jeff Davis To: Corey Huinker Cc: Robert Treat , Robert Haas , Andres Freund , Nathan Bossart , Tom Lane , Michael Paquier , jian he , Bruce Momjian , Matthias van de Meent , Magnus Hagander , Stephen Frost , Ashutosh Bapat , Peter Smith , PostgreSQL Hackers , alvherre@alvh.no-ip.org Date: Tue, 25 Mar 2025 11:42:22 -0700 In-Reply-To: References: <6af48508a32499a8be3398cafffd29fb6188c44b.camel@j-davis.com> <6rpmhyrtci4epuzay7y5xvd2cwdwb6zmtt6ofxrvakyawxhm7s@6grajbpr4kij> <5812bf576f181e2f94944cab485cee46f611ed3e.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 Tue, 2025-03-25 at 10:53 -0400, Corey Huinker wrote: >=20 > So this patch swings the pendulum a bit back towards accepting some > things as errors. Not exactly. I see patch 0001 as a change to the function signatures from regclass to schemaname/relname, both for usability as well as control over ERROR vs WARNING. There's agreement to do so, so I went ahead and committed that part. > the best we can do is to draw the error-versus-warning line at a > place that: >=20 > * doesn't mess up flawed restores that we would otherwise expect to > complete at least partially > * is easy for us to understand > * is easy for us to explain > * we can live with for the next couple of decades The original reason we wanted to issue warnings was to allow ourselves a chance to change the meaning of parameters, add new parameters, or even remove parameters without causing restore failures. If there are any ERRORs that might limit our flexibility I think we should downgrade those to WARNINGs. Also, out of a sense of paranoia, it might be good to downgrade some other ERRORs to WARNINGs, like in 0002.=C2=A0I don't think it's quite as important as you seem to think, however. It doesn't make a lot of difference unless the user is running restore with --single-transaction or --exit-on-error, in which case they probably don't want the restore to continue if something unexpected happens. I'm fine having the discussion, though, or we can wait until beta to see what kinds of problems people encounter. Regards, Jeff Davis