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 1iDevQ-0003GF-0T for pgsql-committers@arkaria.postgresql.org; Fri, 27 Sep 2019 01:20:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iDevO-00053l-8t for pgsql-committers@arkaria.postgresql.org; Fri, 27 Sep 2019 01:19:58 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iDevN-00053e-Sj for pgsql-committers@lists.postgresql.org; Fri, 27 Sep 2019 01:19:58 +0000 Received: from mail-io1-xd44.google.com ([2607:f8b0:4864:20::d44]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iDevJ-0007vf-9z for pgsql-committers@lists.postgresql.org; Fri, 27 Sep 2019 01:19:56 +0000 Received: by mail-io1-xd44.google.com with SMTP id q10so11938811iop.2 for ; Thu, 26 Sep 2019 18:19:53 -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=/bzMi/OHPigXX8fq0iE3IT9Mqav+lOuXwLOK9IgFnI8=; b=06MChf4pUziQyghqaWRn0ptYlITVlHp85tQ4jViCZ1TxBV+cLJok1xF0bmWubsSKlk DkAnIWVfjOdcdAxPQaQ94ORAqYDQFFNDXEf1PMPXgwvSLdDv2JobYDVCJP3jhDw/kwK8 DDEux+H7lZmgZ/43X6Rt12zYoCKJURQSZm26hxgonQck6CVT2U0zyLSzO1M7ahwReSnz aiqHnr3ef/BS/hGwV9kW8vVDFnXl1zCRdMfEN6kO001CvRTdYyrRW2nPPwKbQb/hxwlh Nd+S0A7rF5gfeqLBvoKqCOh9F9gCCtWXtfuwUEpm3ZoyrZ9rjVGYq8iWYwmE4m1nX0FA 8FHQ== 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=/bzMi/OHPigXX8fq0iE3IT9Mqav+lOuXwLOK9IgFnI8=; b=m6IxWj3msOPYWf93xZs7lW7ef7lukfQh0C30foRPGSWoXagzFUZHAmBRt2TpPTia70 PNLc8+34Qc1CgN+mFx329eVWH66xqzRVYope4te7HBW7mMc+DT2jp/MuqDJARgaS1h+b e3iqZo8LhPVPpdqZjYO3vQBkQs5h75g/Ktf+YsfX+R0671YKH75tv2RRjyhSOf52Cq5P T1mkl0TZiXuZEOPiZpB/rz6njyfl0Ux2U4K6rsyoisHKcsusAFw7eDj2gpOGzwqlTxl3 CNkEkdSNMXVgIV7smdXqjvhYgkUAd9Z8QuUChC28/o9gxzlPlyufD0a8AQaS2gaYcuVg 5yjA== X-Gm-Message-State: APjAAAV9r3XhEycoBC5N9yLrTmeNT7O6UoUcJNDh73YRoK6QJ6FZGoto zxinzs7pBTd4z8HRLiJsTbylhujuDTWVNKIZyoRHk1/DZChFaEzKliaTC9Q7IbfuT+x1K9rcC1w FYog+46vn26sLRVeA2CNO2m8FrgJ2/jxO8YnyokLCmds6NvLluoAM/FpLEgSMJe4W7MQPmoNU/X 5gBdSV+iWnhS714CGa0g== X-Google-Smtp-Source: APXvYqx7yzm1N+sxILQ9E4tdIElNAR9YWm15/TtdbiPJD4QWzD47c9kQDadhqTuFCNfqWUh4wJbO+Q== X-Received: by 2002:a05:6e02:544:: with SMTP id i4mr1912834ils.149.1569547192188; Thu, 26 Sep 2019 18:19:52 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([199.229.249.165]) by smtp.gmail.com with ESMTPSA id o5sm478928ilc.68.2019.09.26.18.19.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Sep 2019 18:19:51 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id E8ECD12088A; Thu, 26 Sep 2019 22:19:47 -0300 (-03) Date: Thu, 26 Sep 2019 22:19:47 -0300 From: Alvaro Herrera To: Michael Paquier Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Support reloptions of enum type Message-ID: <20190927011947.GA10059@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190925234152.GA2115@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 Hello, sorry I didn't notice this email. On 2019-Sep-26, Michael Paquier wrote: > This part from commit 773df88 is incorrect: > + /* > + * Set the default lock mode for this option. There is no actual way > + * for a module to enforce it when declaring a custom relation option, > + * so just use the highest level, which is safe for all cases. > + */ > + newoption->lockmode = AccessExclusiveLock; You're right, this was a merge blunder :-( Sorry about that. > Do you mind if I apply the attached to fix the issue? Or perhaps you > would prefer fixing the issue yourself? I noted some inconsistencies > with the rest while on it (please see attached). Thanks for fixing. It all looks correct to me. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services