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 1hxeGB-00047F-Gd for pgsql-general@arkaria.postgresql.org; Tue, 13 Aug 2019 21:23:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hxeFB-0001oo-8W for pgsql-general@arkaria.postgresql.org; Tue, 13 Aug 2019 21:22:13 +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 1hxeFA-0001oh-SI for pgsql-general@lists.postgresql.org; Tue, 13 Aug 2019 21:22:12 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1hxeF7-0000nY-UN for pgsql-general@lists.postgresql.org; Tue, 13 Aug 2019 21:22:11 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x7DLM6fj004622; Tue, 13 Aug 2019 17:22:06 -0400 From: Tom Lane To: Derek Hans cc: pgsql-general@lists.postgresql.org Subject: Re: GIST/GIN index not used with Row Level Security In-reply-to: References: <12552.1565723566@sss.pgh.pa.us> <14241.1565725716@sss.pgh.pa.us> Comments: In-reply-to Derek Hans message dated "Tue, 13 Aug 2019 17:04:33 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4620.1565731326.1@sss.pgh.pa.us> Date: Tue, 13 Aug 2019 17:22:06 -0400 Message-ID: <4621.1565731326@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Derek Hans writes: > Unfortunately only "alter function" supports "leakproof" - "alter operator" > does not. Is there a function-equivalent for marking operators as > leakproof? Leakproofness is a property of the underlying function, not the operator, so that's where you change it. > Is there any documentation for which operators/functions are > leakproof? select oid::regprocedure from pg_proc where proleakproof; regards, tom lane