Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aynV4-00056X-8O for pgsql-hackers@arkaria.postgresql.org; Fri, 06 May 2016 21:41:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aynV3-0000fK-RW for pgsql-hackers@arkaria.postgresql.org; Fri, 06 May 2016 21:41:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aynTi-0007UY-ON for pgsql-hackers@postgresql.org; Fri, 06 May 2016 21:40:06 +0000 Received: from www.commandprompt.com ([2604:da00:2:2:5054:ff:fe07:7618] helo=lists.commandprompt.com) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aynTd-0004P2-D7 for pgsql-hackers@postgresql.org; Fri, 06 May 2016 21:40:05 +0000 Received: from [192.168.1.60] (spinlock.commandprompt.com [69.168.55.30]) by lists.commandprompt.com (Postfix) with ESMTPA id 8856D238; Fri, 6 May 2016 14:39:58 -0700 (PDT) Received: from c-73-225-27-179.hsd1.wa.comcast.net ([73.225.27.179] helo=[192.168.1.60]) by assp.commandprompt.com with SMTPSA(TLSv1_2 ECDHE-RSA-AES128-GCM-SHA256) (2.4.5); 6 May 2016 14:39:58 -0700 Subject: Re: Reviewing freeze map code To: Andres Freund References: <572D0309.4090402@commandprompt.com> <20160506205012.ipuhvctss2ozzs6m@alap3.anarazel.de> <572D0471.3040009@commandprompt.com> <20160506205824.ysst7mk3k26ztok2@alap3.anarazel.de> <572D062E.5030308@agliodbs.com> <572D068F.3050608@commandprompt.com> <20160506210806.f6pnk6ueirjqrlmu@alap3.anarazel.de> <572D09D9.5080407@commandprompt.com> <20160506212958.wwwc22hfesvj76af@alap3.anarazel.de> Cc: Josh berkus , Robert Haas , Masahiko Sawada , "pgsql-hackers@postgresql.org" From: "Joshua D. Drake" Organization: Command Prompt, Inc. Message-ID: <572D0F2D.7050207@commandprompt.com> Date: Fri, 6 May 2016 14:39:57 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <20160506212958.wwwc22hfesvj76af@alap3.anarazel.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Assp-Version: 2.4.5(15162) on assp.commandprompt.com X-Assp-ID: assp.commandprompt.com m1-70798-08578 X-Assp-Session: 7FC10013B1A0 (mail 1) X-Assp-Envelope-From: jd@commandprompt.com X-Assp-Intended-For: pgsql-hackers@postgresql.org X-Assp-Intended-For: sawada.mshk@gmail.com X-Assp-Intended-For: robertmhaas@gmail.com X-Assp-Intended-For: josh@agliodbs.com X-Assp-Intended-For: andres@anarazel.de X-Assp-Original-Subject: Re: [HACKERS] Reviewing freeze map code X-Assp-Client-SSL: yes X-Pg-Spam-Score: -4.0 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 05/06/2016 02:29 PM, Andres Freund wrote: > Hi, > > > On 2016-05-06 14:17:13 -0700, Joshua D. Drake wrote: >> How do I test? >> >> Is there a script I can run? > > Unfortunately there's few interesting things to test with pre-made > scripts. There's no relevant OS dependency here, so each already > existing test doesn't really lead to significantly increased coverage > being run by other people. Generally, when testing for correctness > issues, it's often of limited benefit to run tests written by the author > of reviewer - such scripts will usually just test things either has > thought of. The dangerous areas are the ones neither author or reviewer > has considered. I can't argue with that. > > >> Are there specific things I can do to try and break it? > > Upgrade clusters using pg_upgrade and make sure things like index only > scans still work and yield correct data. Set up workloads that involve > freezing, and check that less WAL (and not more!) is generated with 9.6 > than with 9.5. Make sure queries still work. > > >> What are we looking for exactly? > > Data corruption, efficiency problems. > I am really not trying to be difficult here but Data Corruption is an easy one... what is the metric we accept as an efficiency problem? > >> A lot of -hackers seem to forget that although we have 100 -hackers, we have >> 10000 "consultant/practitioners". Could I read the code and with a weekend >> of WTF and -hackers questions figure out what is going on, yes but a lot of >> people couldn't and I don't have the time. > > I think tests without reading the code are quite sensible and > important. And it perfectly makes sense to ask for information about > what to test. But fundamentally testing is a lot of work, as is writing > and reviewing code; unless you're really really good at destructive > testing, you won't find much in a 15 minute break. > Yes, this is true but with a proper testing framework, I don't need a 15 minute break. I need 1 hour to configure, the rest just "happens" and reports back. I have cycles to test, I have team members to help test (as do *lots* of other people) but sometimes we just get lost in how to help. > >> You want me (or people like me) to test more? Give us an easy way to >> do it. > > Useful additional testing and easy just don't go well together. By the > time I have made it easy I've done the testing that's needed. I don't know that I can agree with this. A proper harness allows you to execute: go.sh and boom... 2, 4, even 8 hours later you get a report. I will not argue that it isn't easy to implement but I know it can be done. >> Otherwise, we do what we can, which is try and interface on the things that >> will directly and immediately affect us (like keywords and syntax). > > The amount of bikeshedding on -hackers steals energy and time for > actually working on stuff, including testing. So I have little sympathy > for the amount of bike shedding done. Insuring a reasonable and thought out interface for users is not bike shedding, it is at least as important and possibly more important than any feature we add. Sincerely, JD > > Greetings, > > Andres Freund > -- Command Prompt, Inc. http://the.postgres.company/ +1-503-667-4564 PostgreSQL Centered full stack support, consulting and development. Everyone appreciates your honesty, until you are honest with them. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers