Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d1AJz-0005OY-TV for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Apr 2017 11:32:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1d1AJz-0007t4-9X for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Apr 2017 11:32:23 +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 1d1AJx-0007rW-Rl for pgsql-hackers@postgresql.org; Thu, 20 Apr 2017 11:32:21 +0000 Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1d1AJq-0007Sp-At for pgsql-hackers@postgresql.org; Thu, 20 Apr 2017 11:32:21 +0000 Received: by mail-wm0-x22d.google.com with SMTP id o81so101152936wmb.1 for ; Thu, 20 Apr 2017 04:32:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=mQgYC3fD3M1tmgu+biE6psPCOHFnrGPS3Ih3o2pUL0o=; b=tIDvxfhKH4Lk8arhl4VmVbpjNcgkKEFopzIf8v38uNOoHvct419Ja4RBTM9o8VO5TM UWeMviX7vbtOfno7WAK1okItjGalw/M2TtY2MC0Qozkkb7vRt+QZqqMoqqVphaQAxmwe Syqwntub3kBcPSIsAYsHYk8JNBLaaquSHhqonfgR+zpizp7KCagQDTDmFDWb+GDfLwmI kPuNvOkayg7e4nh++z6CT5Zx7jPn0wrpnOl8h9coeLpUzYECRK1C+4bb8zBlLdXbSlsi ngk+5sLBV/EE7vMsXMotSotm+62p0Sswxo8cpsZwAVkqOfkif/bKyD9IjmtjQQ3ubf3F mZMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=mQgYC3fD3M1tmgu+biE6psPCOHFnrGPS3Ih3o2pUL0o=; b=qzds4fWdFjWwdwjaYcnoXoKHvGUu7B8s2lZrYKmt3kgBoIRcfQaKu2HBv/kdXtbXug Pb3YdH3Dg36JM9mvWlb9yHBm38iZgGYlEo266huhU+Gf9zRgf6Qxfc6lWPQAiWBAxLCt EwGCSxp6+Ys6WMAaT87CKMt8UB8fI2vhBxxkV6855s1REXa4MS/dOhMYj0DjEsVsQzR9 gOEFQ+Jos9R+bw4uU2y9CsQ7gnUaV3yITcwKD1788sBupDsK6fIJuaEnuaZlhromYPLS 5WODvbaHu0ar+pVTBKyY5Rg6pm07QbQfxxrjYj7tIKrM5+zvNYKKpQX18BZonszkoBDf QxcQ== X-Gm-Message-State: AN3rC/65vmT0BzrZUK7TePbbPZl5XJRr8+2A+gyci4vFDGHuVkd+P/mK fEx2b4uPmrg4QcoD X-Received: by 10.28.128.197 with SMTP id b188mr2626810wmd.115.1492687932068; Thu, 20 Apr 2017 04:32:12 -0700 (PDT) Received: from [192.168.0.105] (150.123.broadband11.iol.cz. [90.178.123.150]) by smtp.gmail.com with ESMTPSA id p101sm7242162wrb.64.2017.04.20.04.32.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Apr 2017 04:32:11 -0700 (PDT) Subject: Re: snapbuild woes To: Andres Freund , Noah Misch References: <6e0a391d-d85a-dbf6-ce33-4c26a486e909@pgmasters.net> <20170408135659.ersubdrhjp736nob@alap3.anarazel.de> <20170408143059.nrzuwyvv5apnhhta@alap3.anarazel.de> <20170412063142.GC2870454@tornado.leadboat.com> <20170412172151.nauhiagitlpfxief@alap3.anarazel.de> <20170413045812.GA2917375@tornado.leadboat.com> <20170417020404.GB2988768@tornado.leadboat.com> <20170418041657.hvwss6hz73ghozp5@alap3.anarazel.de> <20170420000906.75t6uo7bof5pazrq@alap3.anarazel.de> Cc: Peter Eisentraut , Erik Rijkers , David Steele , PostgreSQL-development , Robert Haas , Craig Ringer , pgsql-hackers-owner@postgresql.org From: Petr Jelinek Message-ID: Date: Thu, 20 Apr 2017 13:32:10 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20170420000906.75t6uo7bof5pazrq@alap3.anarazel.de> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.6 (--) 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 20/04/17 02:09, Andres Freund wrote: > On 2017-04-17 21:16:57 -0700, Andres Freund wrote: >> I think we might need some more tests for this to be committable, so >> it might not become committable tomorrow. > > I'm working on some infrastructure around this. Not sure if it needs to > be committed, but it's certainly useful for evaluation. Basically it's > a small UDF that: > 1) creates a slot via walsender protocol (to some dsn) > 2) imports that snapshot into yet another connection to that dsn > 3) runs some query over that new connection > > That makes it reasonably easy to run e.g. pgbench and continually create > slots, and use the snapshot to run queries "verifying" that things look > good. It's a bit shoestring-ed together, but everything else seems to > require more code. And it's just test. > > Unless somebody has a better idea? > I don't. I mean it would be nice to have isolation tester support walsender protocol, but I don't know anything about isolation tester internals so no idea how much work that is. On top of that some of the issues are not even possible to provoke via isolation tester (or anything similar that would give us control over timing) unless we expose a lot of guts of xlog/xact as a UDFs as well. So I think simple function that does what you said and pgbench are reasonable solutions. I guess you plan to make that as one of the test/modules or something similar (the UDF)? -- Petr Jelinek http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers