Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kfozB-0002Ks-9a for pgsql-bugs@arkaria.postgresql.org; Thu, 19 Nov 2020 18:48:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kfoz8-0001Pm-Bp for pgsql-bugs@arkaria.postgresql.org; Thu, 19 Nov 2020 18:48:46 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kfoz7-0001Pe-FY for pgsql-bugs@lists.postgresql.org; Thu, 19 Nov 2020 18:48:46 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kfoz4-0006kz-CU for pgsql-bugs@postgresql.org; Thu, 19 Nov 2020 18:48:44 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id 9B8D8B11; Thu, 19 Nov 2020 13:48:40 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 19 Nov 2020 13:48:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=1zAWcIgpPQGUAbmKR 1gyg75Fmq8DTyUYAnIaBa1IfZo=; b=Awo9KnSPTB7wcHBnS76eIeTRv86FWqwFs dUIX6k7AljzvKZa5NyAgwpsXkRt19ID2E+EfUJ/7DiulmjeiIhW4NvTaSO5UYjmf zberYCbwoAMNhTbxSvZFd9IQxaGrXuOxJ1G1lrvdCWCwPXlpaZGe75GOnTM3CcWe NKVz4msEZdOJkFoTpg/NMpmekksidjuE3oTRWNlCL/K0fYUuKvkzfE56F5Vtj1aI wPcwt+RM35ySpnj26coSHm3HavsQa4rHmfmBv4VepSh538kKXr1MuK940tpqUzvI 8o/3xz3KyGE7kgszZ6XVESHn8hYaWOwWuBMdAGwFRUlYOdhhuFXTw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudefjedgudduiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkgggtuggjfgesthdtredttdervdenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepvefgleevgeeujeeghfegteeghfegheeifeehheelteet ieduieeihffggfehffetnecukfhppeduledtrdelhedrudekrdejleenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghl vhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Received: from perhan.alvh.no-ip.org (unknown [190.95.18.79]) by mail.messagingengine.com (Postfix) with ESMTPA id B85D13280063; Thu, 19 Nov 2020 13:48:39 -0500 (EST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id C74072A18D4; Thu, 19 Nov 2020 15:48:37 -0300 (-03) Date: Thu, 19 Nov 2020 15:48:37 -0300 From: Alvaro Herrera To: Jaime Soler Cc: pgsql-bugs Subject: Re: vacuumdb -Z can't find function declared on functional index with inline sql function Message-ID: <20201119184837.GA11918@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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-Nov-19, Jaime Soler wrote: > CREATE OR REPLACE FUNCTION public.tecnologia_index_func(nombre character > varying, tipotec bigint) > RETURNS text > LANGUAGE sql > IMMUTABLE > AS $function$ > select tipotec || '_' || upper(sinacentos(trim(nombre))); > $function$ This should be fixable by either schema-qualifying function 'sinacentos', or adding a SET search_path clause to the function. CREATE OR REPLACE FUNCTION public.tecnologia_index_func(nombre character varying, tipotec bigint) RETURNS text LANGUAGE sql IMMUTABLE AS $function$ select tipotec || '_' || upper(public.sinacentos(trim(nombre))); $function$;