Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WrWId-0000v1-2A for pgsql-bugs@arkaria.postgresql.org; Mon, 02 Jun 2014 17:45:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WrWIc-0004Bj-8L for pgsql-bugs@arkaria.postgresql.org; Mon, 02 Jun 2014 17:45:30 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WrVwK-0000EV-3a for pgsql-bugs@postgresql.org; Mon, 02 Jun 2014 17:22:28 +0000 Received: from mail.cybercat.ca ([207.96.251.195] helo=cybercat.ca) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WrVwG-0004ve-Lv for pgsql-bugs@postgresql.org; Mon, 02 Jun 2014 17:22:25 +0000 Received: from [216.191.123.162] (account rossnick HELO versa.cybercat.priv) by cybercat.ca (CommuniGate Pro SMTP 5.2.19) with ESMTPSA id 157365171; Mon, 02 Jun 2014 13:22:23 -0400 Message-ID: <538CB2CF.8020200@cybercat.ca> Date: Mon, 02 Jun 2014 13:22:23 -0400 From: Nicolas Ross User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Andres Freund CC: pgsql-bugs@postgresql.org Subject: Re: BUG #10500: Cannot restore from a dump when some function is used in public shcema References: <20140602161427.2797.72238@wrigleys.postgresql.org> <20140602171736.GC24145@awork2.anarazel.de> In-Reply-To: <20140602171736.GC24145@awork2.anarazel.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Andres Freund a écrit : > Hi, > > On 2014-06-02 16:14:27 +0000, nicolas@cybercat.ca wrote: >> The pg_restore or psql won't create the index in the last sql, despite the >> fact that the public schema is specified to reference the function. > What exactly do you mean with "won't create"? Does it generate an error? > If so, what's that exactly? Yes, sorry, here it is : ERROR: function unaccent(text) does not exist LIGNE 1 : SELECT unaccent(lower($1)); ^ ASTUCE : No function matches the given name and argument types. You might need to add explicit type casts. REQUÊTE : SELECT unaccent(lower($1)); CONTEXTE : SQL function "cyunaccent" during inlining ********** Error ********** ERROR: function unaccent(text) does not exist SQL state: 42883 Hint: No function matches the given name and argument types. You might need to add explicit type casts. Context: SQL function "cyunaccent" during inlining -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs