[pgbr-geral] backup dos dados da tabela
Marcos Fabrício Corso
marcoscorso em terra.com.br
Terça Março 4 09:00:20 BRT 2008
(i) postgres 8.1.4 ;
(ii) pgadmin 1.4.2 ;
(iii) segue estrutura da tabela :
CREATE TABLE escol132
(
codigo int4 NOT NULL DEFAULT 0,
nome char(50) NOT NULL DEFAULT ''::bpchar,
endereco char(50) NOT NULL DEFAULT ''::bpchar,
cidade char(50) NOT NULL DEFAULT ''::bpchar,
uf char(2) NOT NULL DEFAULT ''::bpchar,
cep char(8) NOT NULL DEFAULT ''::bpchar,
fone char(10) NOT NULL DEFAULT ''::bpchar,
celular char(10) NOT NULL DEFAULT ''::bpchar,
email char(50) NOT NULL DEFAULT ''::bpchar,
responsavel char(50) NOT NULL DEFAULT ''::bpchar,
status char(2) NOT NULL DEFAULT ''::bpchar,
sigla char(10) NOT NULL DEFAULT ''::bpchar,
fantasia char(50) NOT NULL DEFAULT ''::bpchar,
bairro char(30) NOT NULL DEFAULT ''::bpchar,
perc numeric(6,2) NOT NULL DEFAULT 0,
ende_corres char(50) NOT NULL DEFAULT ''::bpchar,
cida_corres char(50) NOT NULL DEFAULT ''::bpchar,
cep_corres char(50) NOT NULL DEFAULT ''::bpchar,
uf_corres char(2) NOT NULL DEFAULT ''::bpchar,
quantidade int4 NOT NULL DEFAULT 0,
gestor char(50) NOT NULL DEFAULT ''::bpchar,
fone_gestor char(10) NOT NULL DEFAULT ''::bpchar,
email_gestor char(50) NOT NULL DEFAULT ''::bpchar,
fone_resp char(10) NOT NULL DEFAULT ''::bpchar,
email_resp char(50) NOT NULL DEFAULT ''::bpchar,
dfrecnum numeric(14) NOT NULL DEFAULT 0,
CONSTRAINT escol132001 PRIMARY KEY (dfrecnum),
CONSTRAINT escol132002 UNIQUE (codigo)
)
WITHOUT OIDS;
ALTER TABLE escol132 OWNER TO postgres;
COMMENT ON TABLE escol132 IS 'escol132' ;
o pg dump/restore funciona, apenas quando restauro/faco backup da tabela
inteira ...
devo ter baixado ele faz uns 2 anos, + ou -, nunca atualizei nada ...
----- Original Message -----
From: "Euler Taveira de Oliveira" <euler em timbira.com>
To: "Marcos Fabrício Corso" <marcoscorso em terra.com.br>; "Comunidade
PostgreSQL Brasileira" <pgbr-geral em listas.postgresql.org.br>
Sent: Tuesday, March 04, 2008 12:25 AM
Subject: Re: [pgbr-geral] backup dos dados da tabela
Marcos Fabrício Corso wrote:
> ERROR: syntax error at or near "1" at character 652 - o "1" eh esse aki :
> 1
> BRASIL - no comeco da linha ...
>
Preciso de mais alguns detalhes tais como: (i) versão do PostgreSQL (ii)
versão do PGAdmin III (iii) esquema da tabela escol132.
Utilizando o pg_dump / pg_restore funciona? Sugiro testar com as últimas
versões das respectivas aplicações (talvez você esteja utilizando um
PGAdmin muito antigo).
--
Euler Taveira de Oliveira
http://www.timbira.com/
E-mail classificado pelo Identificador de Spam Inteligente Terra.
Para alterar a categoria classificada, visite
http://mail.terra.com.br/cgi-bin/imail.cgi?+_u=marcoscorso&_l=1,1204601262.404217.25651.cosmoledo.hst.terra.com.br,2426,Des15,Des15
Esta mensagem foi verificada pelo E-mail Protegido Terra.
Scan engine: McAfee VirusScan / Atualizado em 03/03/2008 / Versão:
5.2.00/5243
Proteja o seu e-mail Terra: http://mail.terra.com.br/
More information about the pgbr-geral
mailing list