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 1ppBRv-0002Fw-R1 for pgsql-general@arkaria.postgresql.org; Wed, 19 Apr 2023 17:18:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ppBRu-0001ZM-Ny for pgsql-general@arkaria.postgresql.org; Wed, 19 Apr 2023 17:18:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ppBRu-0001Yv-D4 for pgsql-general@lists.postgresql.org; Wed, 19 Apr 2023 17:18:30 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ppBRs-003rrG-8w for pgsql-general@lists.postgresql.org; Wed, 19 Apr 2023 17:18:29 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 33JHIFNQ2993959; Wed, 19 Apr 2023 13:18:16 -0400 From: Tom Lane To: gzh cc: "Erik Wienhold" , pgsql-general@lists.postgresql.org Subject: Re: psql:t_mstr.sql:994: ERROR: function to_char(numeric) does not exist In-reply-to: <70c95d95.7a58.1879a77ed4f.Coremail.gzhcoder@126.com> References: <328d2a0.828a.18799afd0ac.Coremail.gzhcoder@126.com> <1597875806.606392.1681915893771@office.mailbox.org> <70c95d95.7a58.1879a77ed4f.Coremail.gzhcoder@126.com> Comments: In-reply-to gzh message dated "Thu, 20 Apr 2023 01:02:43 +0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2993957.1681924695.1@sss.pgh.pa.us> Date: Wed, 19 Apr 2023 13:18:15 -0400 Message-ID: <2993958.1681924695@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk gzh writes: > Thank you for your prompt reply. > Is there another solution if the database is not upgraded to 12.14? The solution is the same whether you upgrade or not: you need to adjust your search_path to include the "oracle" schema, or else explicitly qualify references to orafce functions. regards, tom lane