Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iCjtN-0000fj-Fv for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Sep 2019 12:26:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iCjtK-0006Gj-S4 for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Sep 2019 12:26:02 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1iCjtK-0006FS-JM for pgsql-hackers@lists.postgresql.org; Tue, 24 Sep 2019 12:26:02 +0000 Received: from mail-qt1-x844.google.com ([2607:f8b0:4864:20::844]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iCjtH-0007Wu-Gr for pgsql-hackers@lists.postgresql.org; Tue, 24 Sep 2019 12:26:01 +0000 Received: by mail-qt1-x844.google.com with SMTP id x4so1838711qtq.8 for ; Tue, 24 Sep 2019 05:25:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=dDL04siZoBV7uG09tmYi1CNZQV9cI07PmDbeaJmaF78=; b=Shan/xp+Go1aLDDQTcKfoLFpdWr4/kfXX2EzHbq5agMldl8DuzZsEEshKtiT+S9FEf AqdePFrizSfqX6ZZaWWNSueVdw19JALRbnQi9mk8wH6QOoA7h8ZB7A169llwARCnTtYx Q5m4jcP6WshuQHfB8mTkSKzlerApko1qWM6OudBgBoBlKwmePphGyZPTCbNf8gyeTsf8 wcAnHEp56fKLDyrLwyn9OuKIe1KjxLfp1W8Rjq9tILIlrq+z1T6vaOyENaWbBSQ0IMxZ tkf/K9IAmicYWeUAGQJrH49dspr2WL6ypV+OuOMmiI644bs/EFiRue5QPm7cbqlDA85/ 5EFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=dDL04siZoBV7uG09tmYi1CNZQV9cI07PmDbeaJmaF78=; b=nGrqzrBUwHHmD8YeA6s6Ueo2/lUJdYmI/mrS6g4r5lDVPcaTGnBxeObh3rpu6yL1Sh LL2oRDPWmzes8E4KrykRfA8g99s7bKsRLXryBVVhVaLrsRA86CbdWoTb+vBb7hwEEYX/ vWwD0AI2fVmUdx5nBxW6y/o/WxDSs2bszlN/feN+uDG1VvoPSTaIr3xML0uG6U9tBQTV ly/9eZaqN+yBE8YqPVkrrM2cArQYzZahYYbrSafd4Nf0VOHNbmFpMuSAK4QHk5EGDTei hqCv5Ll358WJc+rtxjnDi4jhpZRjST0oHieRF8++pE7zGxE4z77mWUgLnGVtSnrkXfcM Oieg== X-Gm-Message-State: APjAAAUGczszjjWwbJnXpvBGcJscVoZwzBhm1mxHatonG3asT6caGXU7 qi1qhxRpk92mAWYcDHtOfBf7Ug== X-Google-Smtp-Source: APXvYqx8zbC+7sP5tYBhHcv4R/cJBbKspXGNUfngSr7GI2U7FGh3PTFf/FU67bT3PYGAmjGNdO4qfA== X-Received: by 2002:ac8:4704:: with SMTP id f4mr2415708qtp.183.1569327957790; Tue, 24 Sep 2019 05:25:57 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id q2sm824105qkc.68.2019.09.24.05.25.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Sep 2019 05:25:57 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 66DB112069E; Tue, 24 Sep 2019 09:25:54 -0300 (-03) Date: Tue, 24 Sep 2019 09:25:54 -0300 From: Alvaro Herrera To: Michael Paquier Cc: Nikolay Shaplov , Thomas Munro , Dent John , PostgreSQL Hackers , Tom Lane , Robert Haas Subject: Re: [PATCH] src/test/modules/dummy_index -- way to test reloptions from inside of access method Message-ID: <20190924122554.GA23698@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190924023952.GG2012@paquier.xyz> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Sep-24, Michael Paquier wrote: > I looked at that over the last couple of days, and done as attached. > Well, the actual module is in 0003. I have added more comments to > document the basic AM calls so as it can easier be used as a template > for some other work, and tweaked a couple of things. 0001 and 0002 > are just the patches from the other thread to address the issues with > the lock mode of custom reloptions. 0003 looks useful, thanks for completing it. I think it would be a good idea to test invalid values for each type of reloption too (passing floating point to integers, strings to floating point, and so on). If you can get this pushed, I'll push the enum reloptions on top. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services