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 1l2e8X-0005AD-QB for pgsql-general@arkaria.postgresql.org; Thu, 21 Jan 2021 17:52: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 1l2e8W-0002EN-Pl for pgsql-general@arkaria.postgresql.org; Thu, 21 Jan 2021 17:52:48 +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 1l2e8W-0002EF-IG for pgsql-general@lists.postgresql.org; Thu, 21 Jan 2021 17:52:48 +0000 Received: from cafe.concordia.psi.br ([189.91.194.2] helo=mailserver.concordia.psi.br) by makus.postgresql.org with smtp (Exim 4.92) (envelope-from ) id 1l2e8Q-00027O-5K for pgsql-general@postgresql.org; Thu, 21 Jan 2021 17:52:46 +0000 Received: from Marcio (unknown [186.226.37.77]) (Authenticated sender: marcio@zyontecnologia.com.br) by mailserver.concordia.psi.br (Postfix) with ESMTPA id 3E9E410051CC for ; Thu, 21 Jan 2021 15:52:38 -0200 (-02) From: =?iso-8859-1?Q?M=E1rcio_Ant=F4nio_Sepp?= To: Subject: Error while running restore Date: Thu, 21 Jan 2021 14:52:37 -0300 Message-ID: <000601d6f01e$34f07fb0$9ed17f10$@com.br> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0007_01D6F005.0FA347B0" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AdbwHjSrkrYtEXKlSHCp0ScB97Ib1A== Content-Language: pt-br List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. ------=_NextPart_000_0007_01D6F005.0FA347B0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable =20 Hi all, =20 =20 I=92m getting this error message when try to restore a database : =20 ERROR: function f_validanumero_cnpj_cpf(character) does not exist LINE 1: SELECT (f_validanumero_cnpj_cpf(trim(cnpj_cpf)::char)=3Dfalse) ^ HINT: No function matches the given name and argument types. You might = need to add explicit type casts. QUERY: SELECT (f_validanumero_cnpj_cpf(trim(cnpj_cpf)::char)=3Dfalse) CONTEXT: fun=C3=A7=C3=A3o PL/pgSQL public.f_testacnpjcpf(character) = linha 31 em IF COPY esp_altera_estoque, line 1, column nr_cnpjcpf: "24614011000120" =20 =20 The funny is that i=92m restoring the database to the same Server. Steps: pg_dump dbname > dumpfile =20 Create new database and restoring with: psql < dumpfile =20 =20 Witch making mistakes do am i making?=20 =20 In this case, the database is small and if I open the dumpfile with a notepad and split in 2 files and run after other it works fine.=20 =20 =20 -- Att M=E1rcio A. Sepp =20 ------=_NextPart_000_0007_01D6F005.0FA347B0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

 

Hi = all,

 

 

I’m = getting this error message when try to restore a database = :

 

ERROR:=A0 function f_validanumero_cnpj_cpf(character) = does not exist

LINE 1: SELECT = (f_validanumero_cnpj_cpf(trim(cnpj_cpf)::char)=3Dfalse)

=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 = ^

HINT:=A0 No function matches the = given name and argument types. You might need to add explicit type = casts.

QUERY:=A0 SELECT = (f_validanumero_cnpj_cpf(trim(cnpj_cpf)::char)=3Dfalse)

CONTEXT:=A0 fun=C3=A7=C3=A3o PL/pgSQL = public.f_testacnpjcpf(character) linha 31 em IF

COPY esp_altera_estoque, line 1, column nr_cnpjcpf: = "24614011000120"

 

 

The funny is = that i’m restoring the database to the same = Server.

Steps:

pg_dump dbname > = dumpfile

 

Create new database and restoring = with:

psql < =
dumpfile

 

 

Witch making = mistakes do am i making?

 

In this = case, the database is small and if I open the dumpfile with a notepad = and split in 2 files and run after other it works fine. =

 

 

--

Att

M=E1rcio A. = Sepp

 

------=_NextPart_000_0007_01D6F005.0FA347B0--