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 1iwtxu-0004CH-9p for pgsql-hackers@arkaria.postgresql.org; Wed, 29 Jan 2020 20:29:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iwtxq-0004Ix-Pn for pgsql-hackers@arkaria.postgresql.org; Wed, 29 Jan 2020 20:29:30 +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 1iwtxq-0004Ip-9L for pgsql-hackers@lists.postgresql.org; Wed, 29 Jan 2020 20:29:30 +0000 Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iwtxm-00078J-Lo for pgsql-hackers@lists.postgresql.org; Wed, 29 Jan 2020 20:29:28 +0000 Received: by mail-qk1-x741.google.com with SMTP id d10so669243qke.1 for ; Wed, 29 Jan 2020 12:29:26 -0800 (PST) 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=emZYhkEqUGSpVaCbQdXaHTHlqjnFq1vbRSiI7KjxhB8=; b=SBgsHTgwSz3WSvGXSIhEVMJGVuTh9NglvX6AEdqNIe3AEIu2Hd+zXHZnWG3kwdfari 1YqMMUFZ5pyZJZG4m+tnbPA1GHR9E5AG5ZRo/PU9Mb2/W/f41PZW3r6+yd9cHcDWOEtK T+T3Jf7PNbiojKoRHpFi1is2pPGtz83r9oYNPrvB0Y+sFYTrd8fcvW6Sgo6NYrDMYbgu it4I6WlDGVczmGOls9EZtgQR/hxocrv70g0tDpOH4RTdue0xtq/3hQKVgeDRFvRItRRV xNW5RrOKyL4aTj9Uh7IQyluP96Kismg52RAYfjm5hmZJ7f2LDpin5LbRvkAsMlhe0Ihe jp2g== 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=emZYhkEqUGSpVaCbQdXaHTHlqjnFq1vbRSiI7KjxhB8=; b=nWEZXI5usts+Pvvn6xhz/7HL+D5xhXbQGpAujpXp5rfIIIW4Hrhb9i0kqtLJ/hMc2m fgj3+ruS9qclSHZEIkbhKJZUgw90YG7Su4fis2NCfKgxQcchuwl6MZ+lp7HdAxUsbk5b 9uk0hAv33iGrmsu5og+1JmSPSu/gvtBZ6eq4Utv6QoUi5teiLg4Fspd2fJrIB4OZda2m RLds6/1tA0zOGSAqsc6nit6Xg3oQytYUkIFZVRNe40XTE3d+Uzq3ZFm2gGOx9kUO6NkK 1wdNwnctgy26XKS2E3GGWbTMtnJdtp3pZfIOTheUiumMqqkDZKRilRj+rZOncu0QsbBW 2G2g== X-Gm-Message-State: APjAAAXkaRNYV3H2nfE8agOVoekR4WsLMbOQrf2py0OfAo37/wFHGZQ7 TeDfIjUxaJoEXwMIi58pE8jibQp3uW80drFsJhEro3JtkFzN+/pavRVPtB5mqacB4XHSZMF/2Fu OUrjsrBqSVwTNYjzCvbhB8YqXytDdUladeCA67KzFB4twg7ijnnHoZd9U2pTRDXQTxuafrPq6Wo GpWtqwAm/7Gk2LxA== X-Google-Smtp-Source: APXvYqyp79WAqKnxyi+9Owafwy+vVpG1606R9jZ+YUf0wOrXbxCx8sfwYZeh/5Fk2xGe51b+q716vQ== X-Received: by 2002:a05:620a:2119:: with SMTP id l25mr1690211qkl.248.1580329764780; Wed, 29 Jan 2020 12:29:24 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([190.217.183.15]) by smtp.gmail.com with ESMTPSA id v7sm1708812qtk.89.2020.01.29.12.29.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jan 2020 12:29:24 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 449A53007F4; Wed, 29 Jan 2020 17:29:19 -0300 (-03) Date: Wed, 29 Jan 2020 17:29:19 -0300 From: Alvaro Herrera To: Tom Lane Cc: pgsql-hackers@lists.postgresql.org Subject: Re: Marking some contrib modules as trusted extensions Message-ID: <20200129202919.GA8446@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <32315.1580326876@sss.pgh.pa.us> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Jan-29, Tom Lane wrote: > Not sure what I think about these: > > bloom (are these useful in production?) > btree_gin > btree_gist > pgrowlocks (seems safe, but are there security issues?) > spi/autoinc (I doubt that these four are production grade) > spi/insert_username > spi/moddatetime > spi/refint > sslinfo (seems safe, but are there security issues?) > xml2 (nominally safe, but deprecated, and libxml2 > has been a fertile source of security issues) Of these, btree_gist is definitely useful from a user perspective, because it enables creation of certain exclusion constraints. I've never heard of anyone using bloom indexes in production. I'd argue that if the feature is useful, then we should turn it into a core-included index AM with regular WAL logging for improved performance, and add a stripped-down version to src/test/modules to cover the WAL-log testing needs. Maybe exposing it more, as promoting it as a trusted extension would do, would help find more use cases for it. > Also, how should we document this, if we do it? Add a boilerplate > sentence to each module's description about whether it is trusted > or not? Put a table up at the front of Appendxix F? Both? If it were possible to do both from a single source of truth, that would be great. Failing that, I'd just list it in each module's section. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services