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 1l2eEm-0005rL-OR for pgsql-general@arkaria.postgresql.org; Thu, 21 Jan 2021 17:59:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l2eEl-0005oF-CM for pgsql-general@arkaria.postgresql.org; Thu, 21 Jan 2021 17:59:15 +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 1l2eEk-0005o8-W2 for pgsql-general@lists.postgresql.org; Thu, 21 Jan 2021 17:59:15 +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 1l2eEi-0002AJ-Gj for pgsql-general@postgresql.org; Thu, 21 Jan 2021 17:59:14 +0000 Received: from Marcio (unknown [186.226.37.77]) (Authenticated sender: marcio@zyontecnologia.com.br) by mailserver.concordia.psi.br (Postfix) with ESMTPA id 814BA1004ABD; Thu, 21 Jan 2021 15:59:10 -0200 (-02) From: =?iso-8859-1?Q?M=E1rcio_Ant=F4nio_Sepp?= To: =?iso-8859-1?Q?'M=E1rcio_Ant=F4nio_Sepp'?= , References: <000601d6f01e$34f07fb0$9ed17f10$@com.br> In-Reply-To: <000601d6f01e$34f07fb0$9ed17f10$@com.br> Subject: RES: Error while running restore Date: Thu, 21 Jan 2021 14:59:10 -0300 Message-ID: <001601d6f01f$1ec50890$5c4f19b0$@com.br> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0017_01D6F005.F977D090" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AdbwHjSrkrYtEXKlSHCp0ScB97Ib1AAAOJQw 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_0017_01D6F005.F977D090 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable =20 Ops, Server version tested are:=20 PostgreSQL 11.5 and PostgreSQL 13.1 =20 In both cases, i=92m making dump and restore to the same Server. =20 =20 -- Att M=E1rcio A. Sepp =20 De: M=E1rcio Ant=F4nio Sepp [mailto:marcio@zyontecnologia.com.br]=20 Enviada em: quinta-feira, 21 de janeiro de 2021 14:53 Para: pgsql-general@postgresql.org Assunto: Error while running restore =20 =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_0017_01D6F005.F977D090 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

 

Ops, Server version = tested are:
PostgreSQL 11.5

and

PostgreSQL = 13.1

 

In both cases, i’m = making dump and restore to the same Server.

 

 

--

Att

M=E1rcio A. = Sepp

 

De: = M=E1rcio Ant=F4nio Sepp [mailto:marcio@zyontecnologia.com.br] =
Enviada em: quinta-feira, 21 de janeiro de 2021 = 14:53
Para: pgsql-general@postgresql.org
Assunto: = Error while running restore

 

 

Hi = all,

 

 

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

 

ERROR:  function = f_validanumero_cnpj_cpf(character) does not exist

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

         &= nbsp;      ^

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"

 

 

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_0017_01D6F005.F977D090--