· 7 years ago · Jan 14, 2019, 05:44 PM
1pg_restore: [archiver (db)] Error while PROCESSING TOC:
2pg_restore: [archiver (db)] Error from TOC entry 1193; 1255 47395439 FUNCTION apaga_arvore(bigint, character varying, character varying) postgres
3pg_restore: [archiver (db)] could not execute query: ERROR: function "apaga_arvore" already exists with same argument types
4 Command was: CREATE FUNCTION public.apaga_arvore(bigint, character varying, character varying) RETURNS integer
5 LANGUAGE plpgsql SECURITY DEFINER
6 AS $_$
7declare
8 vseq alias for $1;
9 vusuario alias for $2;
10 vtabela alias for $3;
11 vmaior int4;
12 vesq int4;
13 vdir int4;
14 vdir_novo int4;
15 vesq_novo int4;
16 vnivel int4;
17 vnova_seq int4;
18 vsql text;
19 qaux record;
20
21begin
22 vsql := 'select esq,dir from '||vtabela||' where seq_'||vtabela||' ='||vseq::text;
23
24 for qaux in execute vsql loop
25 vesq:=qaux.esq;
26 vdir:=qaux.dir;
27 end loop;
28
29 vsql:=' update '||vtabela||' set esq=esq-2, dir=dir-2 where esq > '||vesq::text; --Todos do outros ramos a direita
30 raise notice '% %',vsql,vesq;
31 execute vsql;
32 vsql:='update '||vtabela||' set dir=dir-2 where '||vesq::text||' BETWEEN esq AND dir'; --Todos do mesmo ramos
33 raise notice '%',vsql;
34 execute vsql;
35
36 vnova_seq :=vseq;
37
38 vsql:='delete from '||vtabela||' where seq_'||vtabela||' = '||vseq::text;
39 raise notice '%',vsql;
40 execute vsql;
41
42 return vnova_seq;
43end;
44$_$;
45
46
47
48pg_restore: creating FUNCTION "public.cobranca_adiciona_taxa(integer)"
49pg_restore: [archiver (db)] Error from TOC entry 1206; 1255 47395440 FUNCTION cobranca_adiciona_taxa(integer) postgres
50pg_restore: [archiver (db)] could not execute query: ERROR: function "cobranca_adiciona_taxa" already exists with same argument types
51 Command was: CREATE FUNCTION public.cobranca_adiciona_taxa(pmatricula integer) RETURNS character varying
52 LANGUAGE plpgsql
53 AS $$
54
55declare
56 rMatr record;
57 rPT record;
58 rC record;
59 rQ record;
60 rT record;
61 rPgto record;
62 rUltData date;
63 rVenc date;
64 i int;
65 iMovi int;
66begin
67
68 -- Dados da matricula
69 FOR rMatr IN SELECT m.seq_produto
70 , m.seq_plano_pgto
71 , m.matricula
72 , m.data_aquisicao
73 , pt.ciclico
74 , pt.periodicidade
75 , ppp.seq_produto_taxa
76 , m.dia_cobranca
77 , pt.valor
78 , m.seq_pessoa
79 , pt.numero_vezes
80
81 , pr.seq_produto_classe
82 , (SELECT MAX(data_fim)
83 FROM movimento_cobranca AS mc
84 JOIN competencia AS c USING(competencia)
85 JOIN produto_taxa AS pt USING(seq_produto_taxa)
86 WHERE matricula = m.matricula
87 AND seq_produto_taxa = ppp.seq_produto_taxa) AS dt_ultima
88 FROM matricula AS m
89 JOIN produto_plano_pgto AS ppp ON (ppp.seq_plano_pgto = m.seq_plano_pgto)
90 JOIN produto_taxa AS pt USING (seq_produto_taxa)
91
92 join produto as pr on pr.seq_produto=m.seq_produto
93 WHERE m.matricula = pmatricula LOOP
94
95 rUltData := COALESCE(rMatr.dt_ultima, rMatr.data_aquisicao);
96
97 -- A cobranca repete?
98 IF COALESCE(rMatr.ciclico, FALSE) THEN
99
100
101 -- Mensal?
102 IF (rMatr.periodicidade = 'Mensal') THEN
103
104
105
106 --Pega ultima data aberta
107 SELECT MAX(data_fim) as ult,count(mc.matricula) as tt
108 INTO rT
109 FROM movimento_cobranca AS mc
110 JOIN competencia AS c USING(competencia)
111 JOIN produto_taxa AS pt USING(seq_produto_taxa)
112 WHERE matricula = pmatricula
113 and mc.data_pagamento is null;
114
115
116 raise notice 'fazendo % %',rT.tt, rT.ult;
117
118 IF (rT.tt<12) THEN
119
120 SELECT MAX(data_fim) AS data_fim
121 INTO rPgto
122 FROM movimento_cobranca
123 JOIN competencia AS c USING(competencia)
124 JOIN produto_taxa AS pt USING(seq_produto_taxa)
125 WHERE matricula = pmatricula
126 AND data_pagamento IS NOT NULL;
127
128 IF (rPgto.data_fim IS NULL) THEN
129 rUltData := COALESCE(rT.ult, rMatr.data_aquisicao);
130 ELSE
131 rUltData := COALESCE(rPgto.data_fim, rMatr.data_aquisicao);
132 END IF;
133
134 FOR i IN 1..(12-rT.tt) LOOP
135 SELECT c.competencia
136 , TO_DATE(TO_CHAR(data_ini, 'yyyy-mm')||'-'||TO_CHAR(rMatr.dia_cobranca, 'dd'), 'yyyy-mm-dd') AS dt_vencimento
137 , c.data_ini
138 INTO rC
139 FROM competencia AS c
140 WHERE periodicidade = rMatr.periodicidade
141 AND data_ini > rUltData
142
143 and not((rMatr.seq_produto_classe=5) and (substr(c.competencia,1,2) in ('01','02')))
144 ORDER BY c.data_ini
145 LIMIT 1;
146
147 rVenc := rC.data_ini;
148
149
150
151 if not((rMatr.seq_produto_classe=5) and (substr(rC.competencia,1,2) in ('01','02'))) then --ESCOLINHA NAO ENTRA JAN E FEV ELVIS 11-01-2018
152 INSERT INTO movimento_cobranca
153 (matricula, seq_produto_taxa, valor_devido, valor_pago, data_vencimento, data_pagamento
154 ,data_cancelamento, usuario_alteracao, data_alteracao, seq_pessoa, competencia)
155 VALUES
156 ( pmatricula,
157 rMatr.seq_produto_taxa,
158 rMatr.valor, --valor_devido,
159 null, -- valor_pago,
160 rC.dt_vencimento, --data_vencimento,
161 null, -- data_pagamento,
162 null, --data_cancelamento,
163 -78, --usuario_alteracao,
164 now(), --data_alteracao,
165 rMatr.seq_pessoa,
166 rC.competencia);
167 SELECT rUltData + interval '1 month' INTO rUltData;
168
169 end if;
170 END LOOP;
171 end if; --IF (rT.tt<12)
172 ELSE
173 -- Anual
174 raise notice 'Anuidade: %', rMatr.dt_ultima;
175 IF ((rMatr.dt_ultima IS NULL) OR (NOW() > rMatr.dt_ultima + interval '1 year')) THEN
176
177 SELECT c.competencia
178 , TO_DATE(TO_CHAR(data_ini, 'yyyy-mm')||'-'||TO_CHAR(rMatr.dia_cobranca, 'dd'), 'yyyy-mm-dd') AS dt_vencimento
179 , c.data_ini
180 INTO rC
181 FROM competencia AS c
182 WHERE periodicidade = 'Mensal'
183 AND data_ini > rUltData
184
185 and not((rMatr.seq_produto_classe=5) and (substr(c.competencia,1,2) in ('01','02')))
186 ORDER BY c.data_ini
187 LIMIT 1;
188
189
190 if not((rMatr.seq_produto_classe=5) and (substr(rC.competencia,1,2) in ('01','02'))) then --ESCOLINHA NAO ENTRA JAN E FEV ELVIS 11-01-2018
191
192
193 INSERT INTO movimento_cobranca
194 (matricula, seq_produto_taxa, valor_devido, valor_pago, data_vencimento, data_pagamento
195 ,data_cancelamento, usuario_alteracao, data_alteracao, seq_pessoa, competencia)
196 VALUES
197 ( pmatricula,
198 rMatr.seq_produto_taxa,
199 rMatr.valor, --valor_devido,
200 null, -- valor_pago,
201 rC.dt_vencimento, --data_vencimento,
202 null, -- data_pagamento,
203 null, --data_cancelamento,
204 -78, --usuario_alteracao,
205 now(), --data_alteracao,
206 rMatr.seq_pessoa,
207 rC.competencia);
208
209 end if;
210
211 END IF;
212 END IF;
213
214 ELSE
215
216 -- Verifica se ja possui o numero de vezes e a primeira competencia
217 SELECT COUNT(*) AS tt
218 INTO iMovi
219 FROM movimento_cobranca
220 WHERE matricula = rMatr.matricula
221 AND seq_produto_taxa = rMatr.seq_produto_taxa;
222
223 IF (iMovi = 0) THEN
224
225 -- Insere os movimentos (loop no numero_vezes incrementando mensalmente)
226 FOR i IN 1..rMatr.numero_vezes LOOP
227
228 SELECT c.competencia
229 , TO_DATE(TO_CHAR(data_ini, 'yyyy-mm')||'-'||TO_CHAR(rMatr.dia_cobranca, 'dd'), 'yyyy-mm-dd') AS dt_vencimento
230 , c.data_ini
231 INTO rC
232 FROM competencia AS c
233 WHERE periodicidade = 'Mensal'
234 AND data_ini > rUltData
235
236 and not((rMatr.seq_produto_classe=5) and (substr(c.competencia,1,2) in ('01','02')))
237 ORDER BY c.data_ini
238 LIMIT 1;
239
240 INSERT INTO movimento_cobranca
241 (matricula, seq_produto_taxa, valor_devido, valor_pago, data_vencimento, data_pagamento
242 ,data_cancelamento, usuario_alteracao, data_alteracao, seq_pessoa, competencia)
243 VALUES
244 ( pmatricula,
245 rMatr.seq_produto_taxa,
246 rMatr.valor, --valor_devido,
247 null, -- valor_pago,
248 rC.dt_vencimento, --data_vencimento,
249 null, -- data_pagamento,
250 null, --data_cancelamento,
251 -78, --usuario_alteracao,
252 now(), --data_alteracao,
253 rMatr.seq_pessoa,
254 rC.competencia);
255
256 SELECT rUltData + interval '1 month' INTO rUltData;
257
258 END LOOP;
259
260 END IF;
261 raise notice 'Tem? %', rUltData;
262 END IF;
263
264 END LOOP;
265
266 RETURN 'OK';
267END;
268
269$$;
270
271
272
273pg_restore: creating FUNCTION "public.cobranca_adiciona_taxa(integer, integer)"
274pg_restore: [archiver (db)] Error from TOC entry 1207; 1255 47395441 FUNCTION cobranca_adiciona_taxa(integer, integer) postgres
275pg_restore: [archiver (db)] could not execute query: ERROR: function "cobranca_adiciona_taxa" already exists with same argument types
276 Command was: CREATE FUNCTION public.cobranca_adiciona_taxa(pmatricula integer, pseq_produto_taxa integer) RETURNS character varying
277 LANGUAGE plpgsql
278 AS $$
279declare
280 rPT record;
281 rC record;
282 rQ record;
283 rUltData date;
284 rVenc date;
285Begin
286
287 select * into rPT
288 from taxa as t
289 join produto_taxa as pt using(seq_taxa)
290 where seq_produto_taxa= pseq_produto_taxa;
291
292 if coalesce(rPT.ciclico,false) then --Verifica qual data falta
293 if rPT.periodicidade='Mensal' then
294
295 select max(data_fim) into rUltData
296 from movimento_cobranca as mc
297 join competencia as c using(competencia)
298 join produto_taxa as pt using(seq_produto_taxa)
299 where seq_produto_taxa= pseq_produto_taxa;
300
301 rUltData:=coalesce(rUltData,now());
302
303 select * into rC
304 from competencia as c
305 where periodicidade=rPT.periodicidade
306 and data_ini>rUltData
307 order by c.data_ini
308 limit 1;
309
310 rVenc:=rC.data_ini;
311
312 INSERT INTO movimento_cobranca(
313 matricula, seq_produto_taxa, valor_devido,
314 valor_pago, data_vencimento, data_pagamento, data_cancelamento,
315 usuario_alteracao, data_alteracao, seq_pessoa, competencia)
316 VALUES (
317 pmatricula,
318 pseq_produto_taxa,
319 rPT.valor, --valor_devido,
320 null, -- valor_pago,
321 rVenc, --data_vencimento,
322 null, -- data_pagamento,
323 null, --data_cancelamento,
324 -78, --usuario_alteracao,
325 now(), --data_alteracao,
326 (select seq_pessoa from matricula where matricula=pmatricula),
327 rC.competencia);
328
329
330 end if;
331
332
333 end if;
334
335
336
337 return 'OK';
338end;
339
340$$;
341
342
343
344pg_restore: creating FUNCTION "public.competencia_atual()"
345pg_restore: [archiver (db)] Error from TOC entry 1215; 1255 49625524 FUNCTION competencia_atual() postgres
346pg_restore: [archiver (db)] could not execute query: ERROR: function "competencia_atual" already exists with same argument types
347 Command was: CREATE FUNCTION public.competencia_atual() RETURNS character varying
348 LANGUAGE plpgsql
349 AS $$
350
351 declare
352
353 lsCompetencia varchar;
354
355begin
356
357select competencia into lsCompetencia from competencia where data_ini<=now()::date and data_fim >= now()::date;
358
359
360return lsCompetencia;
361
362
363end;$$;
364
365
366
367pg_restore: creating FUNCTION "public.concate(text, text)"
368pg_restore: [archiver (db)] Error from TOC entry 1208; 1255 47395442 FUNCTION concate(text, text) postgres
369pg_restore: [archiver (db)] could not execute query: ERROR: function "concate" already exists with same argument types
370 Command was: CREATE FUNCTION public.concate(text, text) RETURNS text
371 LANGUAGE sql
372 AS $_$
373SELECT COALESCE($2 ||', '|| $1,$1,$2,NULL)
374$_$;
375
376
377
378pg_restore: creating FUNCTION "public.concatefinal(text)"
379pg_restore: [archiver (db)] Error from TOC entry 1209; 1255 47395443 FUNCTION concatefinal(text) postgres
380pg_restore: [archiver (db)] could not execute query: ERROR: function "concatefinal" already exists with same argument types
381 Command was: CREATE FUNCTION public.concatefinal(text) RETURNS text
382 LANGUAGE sql
383 AS $_$
384SELECT substr($1,1,length($1))
385$_$;
386
387
388
389pg_restore: creating FUNCTION "public.depois_inserir_sessao()"
390pg_restore: [archiver (db)] Error from TOC entry 1210; 1255 47395444 FUNCTION depois_inserir_sessao() postgres
391pg_restore: [archiver (db)] could not execute query: ERROR: function "depois_inserir_sessao" already exists with same argument types
392 Command was: CREATE FUNCTION public.depois_inserir_sessao() RETURNS trigger
393 LANGUAGE plpgsql
394 AS $$
395declare
396 rQ record;
397begin
398 for rQ in select *
399 from evento_produto as ep
400 where ep.seq_evento=new.seq_evento
401
402 and not exists (select 1
403 from sessao_evento_produto as ss1
404 join evento_produto as ep1 using(seq_evento_produto)
405 where ep1.seq_evento=new.seq_evento
406 and ss1.seq_sessao = new.seq_sessao
407 and ss1.seq_evento_produto = ep.seq_evento_produto) loop
408 INSERT INTO sessao_evento_produto(
409 seq_sessao, seq_evento_produto, qtde,
410 dt_carga, seq_supervisor, usuario_alteracao, data_alteracao)
411 VALUES (
412 new.seq_sessao,
413 rQ.seq_evento_produto,
414 500,
415 null, --dt_carga,
416 null, --seq_supervisor,
417 'Andre e Buddy', --usuario_alteracao,
418 now()); --data_alteracao);
419
420 end loop;
421
422 return new;
423end; $$;
424
425
426
427pg_restore: creating FUNCTION "public.em_dia(integer, character varying)"
428pg_restore: [archiver (db)] Error from TOC entry 1230; 1255 49629109 FUNCTION em_dia(integer, character varying) postgres
429pg_restore: [archiver (db)] could not execute query: ERROR: function "em_dia" already exists with same argument types
430 Command was: CREATE FUNCTION public.em_dia(pimatricula integer, pscompetencia character varying) RETURNS boolean
431 LANGUAGE plpgsql
432 AS $$
433
434 declare
435
436 liqtde integer;
437
438 lscompetencia varchar(10);
439
440begin
441
442
443
444if pscompetencia is null then
445
446 lscompetencia := competencia_atual();
447
448else
449
450 lscompetencia := pscompetencia;
451
452end if;
453
454
455select count(seq_movimento_cobranca)
456
457 into liqtde
458
459from movimento_cobranca
460
461where matricula = pimatricula
462
463 and valor_pago is not null
464
465 and competencia = lscompetencia;
466
467
468
469 return liqtde > 0;
470
471
472
473
474end;$$;
475
476
477
478pg_restore: creating FUNCTION "public.estorna_movimento()"
479pg_restore: [archiver (db)] Error from TOC entry 1211; 1255 47395445 FUNCTION estorna_movimento() postgres
480pg_restore: [archiver (db)] could not execute query: ERROR: function "estorna_movimento" already exists with same argument types
481 Command was: CREATE FUNCTION public.estorna_movimento() RETURNS trigger
482 LANGUAGE plpgsql
483 AS $$
484declare
485 rEventoProduto record;
486 rIngressoNumero record;
487 vseq_ingresso int4;
488 ieven_ref Integer;
489begin
490 -- se tiver data de estorno, gera o cancelamento dos ingressos gerados pela movimento_item --
491 if new.data_estorno is not null then
492 update ingresso set dt_cancelamento = new.data_estorno where seq_movimento_item in (select seq_movimento_item from movimento_item where seq_movimento = new.seq_movimento);
493 end if;
494
495 return new;
496end; $$;
497
498
499
500pg_restore: creating FUNCTION "public.fatura_retorno()"
501pg_restore: [archiver (db)] Error from TOC entry 1212; 1255 47395446 FUNCTION fatura_retorno() postgres
502pg_restore: [archiver (db)] could not execute query: ERROR: function "fatura_retorno" already exists with same argument types
503 Command was: CREATE FUNCTION public.fatura_retorno() RETURNS integer
504 LANGUAGE plpgsql
505 AS $$
506
507declare
508 rRetorno record;
509
510 licont integer;
511begin
512
513 licont := 0;
514 for rRetorno in (select *
515
516 from public.cobranca_retorno
517
518 where dt_lido_sistema is null
519
520 order by seq_cobranca_retorno) loop
521
522 licont := licont + 1;
523
524 if rRetorno.cod_ocorrencia = '06' then
525
526 update public.cobranca_titulo
527
528 set status = rRetorno.cod_ocorrencia,
529
530 data_alteracao = now(),
531
532 usuario_alteracao = 'fatura_retorno_pgto',
533
534 valor_pago = rRetorno.vlr_pago::numeric/100,
535
536 data_pagamento = rRetorno.dt_credito
537
538 where nosso_numero = rRetorno.nosso_numero;
539
540 else
541
542 update public.cobranca_titulo
543
544 set status = rRetorno.cod_ocorrencia,
545
546 data_alteracao = now(),
547
548 usuario_alteracao = 'fatura_retorno'
549
550 where nosso_numero = rRetorno.nosso_numero;
551
552 end if;
553
554 update public.cobranca_retorno set dt_lido_sistema = now() where seq_cobranca_retorno = rRetorno.seq_cobranca_retorno;
555
556 end loop;
557
558 return licont;
559end;
560$$;
561
562
563
564pg_restore: creating FUNCTION "public.fnc_abertura_jogo(date)"
565pg_restore: [archiver (db)] Error from TOC entry 1213; 1255 47395447 FUNCTION fnc_abertura_jogo(date) postgres
566pg_restore: [archiver (db)] could not execute query: ERROR: function "fnc_abertura_jogo" already exists with same argument types
567 Command was: CREATE FUNCTION public.fnc_abertura_jogo(pdia date) RETURNS character varying
568 LANGUAGE plpgsql
569 AS $$
570declare
571 rQ record;
572 i integer;
573 vE integer;
574 vCB varchar(200);
575 vCP integer;
576 vTem integer;
577Begin
578
579-- acesso historico
580select seq_evento into vE from evento where dt_evento::date= (select min(data_acesso)::date from acesso);
581insert into acesso_historico ( --seq_acesso_historico, codigo, status, data_acesso, usuario_alteracao,
582 --seq_evento, seq_produto, seq_catraca, data_alteracao, tipo
583SELECT nextval('acesso_historico_seq_acesso_historico_seq'), a.codigo, a.status, a.data_acesso, l.usuario_alteracao,
584 vE, l.seq_produto, a.seq_catraca, a.data_alteracao, a.tipo, l.mensagem
585 FROM acesso as a
586 left join liberacao as l using(codigo)
587 --where seq_acesso not in (SELECT seq_acesso_historico from acesso_historico)
588);
589delete from acesso;
590
591insert into liberacao_historico (
592SELECT nextval('seq_liberacao_historico'), seq_liberacao, codigo, seq_produto,
593 status, data_acesso, usuario_alteracao, data_alteracao, tipo_acesso,
594 mensagem, vE
595 FROM liberacao
596);
597delete from liberacao;
598
599--for rQ in Select * from socio_tmp loop
600for rQ in select cod_barra as codigo
601 from matricula as m
602 join cartao as c using (matricula)
603 where em_dia
604 loop
605
606select seq_liberacao into vTem from liberacao where codigo=rQ.codigo;
607
608if vTem is null then
609
610insert into liberacao (codigo, seq_produto, status, data_acesso, usuario_alteracao,
611 data_alteracao, tipo_acesso, mensagem)
612pg_restore: connecting to database for restore
613pg_restore: creating SCHEMA "public"
614pg_restore: creating COMMENT "SCHEMA public"
615pg_restore: creating FUNCTION "public.apaga_arvore(bigint, character varying, character varying)"
616pg_restore: [archiver (db)] Error while PROCESSING TOC:
617pg_restore: [archiver (db)] Error from TOC entry 1193; 1255 47395439 FUNCTION apaga_arvore(bigint, character varying, character varying) postgres
618pg_restore: [archiver (db)] could not execute query: ERROR: function "apaga_arvore" already exists with same argument types
619 Command was: CREATE FUNCTION public.apaga_arvore(bigint, character varying, character varying) RETURNS integer
620 LANGUAGE plpgsql SECURITY DEFINER
621 AS $_$
622declare
623 vseq alias for $1;
624 vusuario alias for $2;
625 vtabela alias for $3;
626 vmaior int4;
627 vesq int4;
628 vdir int4;
629 vdir_novo int4;
630 vesq_novo int4;
631 vnivel int4;
632 vnova_seq int4;
633 vsql text;
634 qaux record;
635
636begin
637 vsql := 'select esq,dir from '||vtabela||' where seq_'||vtabela||' ='||vseq::text;
638
639 for qaux in execute vsql loop
640 vesq:=qaux.esq;
641 vdir:=qaux.dir;
642 end loop;
643
644 vsql:=' update '||vtabela||' set esq=esq-2, dir=dir-2 where esq > '||vesq::text; --Todos do outros ramos a direita
645 raise notice '% %',vsql,vesq;
646 execute vsql;
647 vsql:='update '||vtabela||' set dir=dir-2 where '||vesq::text||' BETWEEN esq AND dir'; --Todos do mesmo ramos
648 raise notice '%',vsql;
649 execute vsql;
650
651 vnova_seq :=vseq;
652
653 vsql:='delete from '||vtabela||' where seq_'||vtabela||' = '||vseq::text;
654 raise notice '%',vsql;
655 execute vsql;
656
657 return vnova_seq;
658end;
659$_$;
660
661
662
663pg_restore: creating FUNCTION "public.cobranca_adiciona_taxa(integer)"
664pg_restore: [archiver (db)] Error from TOC entry 1206; 1255 47395440 FUNCTION cobranca_adiciona_taxa(integer) postgres
665pg_restore: [archiver (db)] could not execute query: ERROR: function "cobranca_adiciona_taxa" already exists with same argument types
666 Command was: CREATE FUNCTION public.cobranca_adiciona_taxa(pmatricula integer) RETURNS character varying
667 LANGUAGE plpgsql
668 AS $$
669
670declare
671 rMatr record;
672 rPT record;
673 rC record;
674 rQ record;
675 rT record;
676 rPgto record;
677 rUltData date;
678 rVenc date;
679 i int;
680 iMovi int;
681begin
682
683 -- Dados da matricula
684 FOR rMatr IN SELECT m.seq_produto
685 , m.seq_plano_pgto
686 , m.matricula
687 , m.data_aquisicao
688 , pt.ciclico
689 , pt.periodicidade
690 , ppp.seq_produto_taxa
691 , m.dia_cobranca
692 , pt.valor
693 , m.seq_pessoa
694 , pt.numero_vezes
695
696 , pr.seq_produto_classe
697 , (SELECT MAX(data_fim)
698 FROM movimento_cobranca AS mc
699 JOIN competencia AS c USING(competencia)
700 JOIN produto_taxa AS pt USING(seq_produto_taxa)
701 WHERE matricula = m.matricula
702 AND seq_produto_taxa = ppp.seq_produto_taxa) AS dt_ultima
703 FROM matricula AS m
704 JOIN produto_plano_pgto AS ppp ON (ppp.seq_plano_pgto = m.seq_plano_pgto)
705 JOIN produto_taxa AS pt USING (seq_produto_taxa)
706
707 join produto as pr on pr.seq_produto=m.seq_produto
708 WHERE m.matricula = pmatricula LOOP
709
710 rUltData := COALESCE(rMatr.dt_ultima, rMatr.data_aquisicao);
711
712 -- A cobranca repete?
713 IF COALESCE(rMatr.ciclico, FALSE) THEN
714
715
716 -- Mensal?
717 IF (rMatr.periodicidade = 'Mensal') THEN
718
719
720
721 --Pega ultima data aberta
722 SELECT MAX(data_fim) as ult,count(mc.matricula) as tt
723 INTO rT
724 FROM movimento_cobranca AS mc
725 JOIN competencia AS c USING(competencia)
726 JOIN produto_taxa AS pt USING(seq_produto_taxa)
727 WHERE matricula = pmatricula
728 and mc.data_pagamento is null;
729
730
731 raise notice 'fazendo % %',rT.tt, rT.ult;
732
733 IF (rT.tt<12) THEN
734
735 SELECT MAX(data_fim) AS data_fim
736 INTO rPgto
737 FROM movimento_cobranca
738 JOIN competencia AS c USING(competencia)
739 JOIN produto_taxa AS pt USING(seq_produto_taxa)
740 WHERE matricula = pmatricula
741 AND data_pagamento IS NOT NULL;
742
743 IF (rPgto.data_fim IS NULL) THEN
744 rUltData := COALESCE(rT.ult, rMatr.data_aquisicao);
745 ELSE
746 rUltData := COALESCE(rPgto.data_fim, rMatr.data_aquisicao);
747 END IF;
748
749 FOR i IN 1..(12-rT.tt) LOOP
750 SELECT c.competencia
751 , TO_DATE(TO_CHAR(data_ini, 'yyyy-mm')||'-'||TO_CHAR(rMatr.dia_cobranca, 'dd'), 'yyyy-mm-dd') AS dt_vencimento
752 , c.data_ini
753 INTO rC
754 FROM competencia AS c
755 WHERE periodicidade = rMatr.periodicidade
756 AND data_ini > rUltData
757
758 and not((rMatr.seq_produto_classe=5) and (substr(c.competencia,1,2) in ('01','02')))
759 ORDER BY c.data_ini
760 LIMIT 1;
761
762 rVenc := rC.data_ini;
763
764
765
766 if not((rMatr.seq_produto_classe=5) and (substr(rC.competencia,1,2) in ('01','02'))) then --ESCOLINHA NAO ENTRA JAN E FEV ELVIS 11-01-2018
767 INSERT INTO movimento_cobranca
768 (matricula, seq_produto_taxa, valor_devido, valor_pago, data_vencimento, data_pagamento
769 ,data_cancelamento, usuario_alteracao, data_alteracao, seq_pessoa, competencia)
770 VALUES
771 ( pmatricula,
772 rMatr.seq_produto_taxa,
773 rMatr.valor, --valor_devido,
774 null, -- valor_pago,
775 rC.dt_vencimento, --data_vencimento,
776 null, -- data_pagamento,
777 null, --data_cancelamento,
778 -78, --usuario_alteracao,
779 now(), --data_alteracao,
780 rMatr.seq_pessoa,
781 rC.competencia);
782 SELECT rUltData + interval '1 month' INTO rUltData;
783
784 end if;
785 END LOOP;
786 end if; --IF (rT.tt<12)
787 ELSE
788 -- Anual
789 raise notice 'Anuidade: %', rMatr.dt_ultima;
790 IF ((rMatr.dt_ultima IS NULL) OR (NOW() > rMatr.dt_ultima + interval '1 year')) THEN
791
792 SELECT c.competencia
793 , TO_DATE(TO_CHAR(data_ini, 'yyyy-mm')||'-'||TO_CHAR(rMatr.dia_cobranca, 'dd'), 'yyyy-mm-dd') AS dt_vencimento
794 , c.data_ini
795 INTO rC
796 FROM competencia AS c
797 WHERE periodicidade = 'Mensal'
798 AND data_ini > rUltData
799
800 and not((rMatr.seq_produto_classe=5) and (substr(c.competencia,1,2) in ('01','02')))
801 ORDER BY c.data_ini
802 LIMIT 1;
803
804
805 if not((rMatr.seq_produto_classe=5) and (substr(rC.competencia,1,2) in ('01','02'))) then --ESCOLINHA NAO ENTRA JAN E FEV ELVIS 11-01-2018
806
807
808 INSERT INTO movimento_cobranca
809 (matricula, seq_produto_taxa, valor_devido, valor_pago, data_vencimento, data_pagamento
810 ,data_cancelamento, usuario_alteracao, data_alteracao, seq_pessoa, competencia)
811 VALUES
812 ( pmatricula,
813 rMatr.seq_produto_taxa,
814 rMatr.valor, --valor_devido,
815 null, -- valor_pago,
816 rC.dt_vencimento, --data_vencimento,
817 null, -- data_pagamento,
818 null, --data_cancelamento,
819 -78, --usuario_alteracao,
820 now(), --data_alteracao,
821 rMatr.seq_pessoa,
822 rC.competencia);
823
824 end if;
825
826 END IF;
827 END IF;
828
829 ELSE
830
831 -- Verifica se ja possui o numero de vezes e a primeira competencia
832 SELECT COUNT(*) AS tt
833 INTO iMovi
834 FROM movimento_cobranca
835 WHERE matricula = rMatr.matricula
836 AND seq_produto_taxa = rMatr.seq_produto_taxa;
837
838 IF (iMovi = 0) THEN
839
840 -- Insere os movimentos (loop no numero_vezes incrementando mensalmente)
841 FOR i IN 1..rMatr.numero_vezes LOOP
842
843 SELECT c.competencia
844 , TO_DATE(TO_CHAR(data_ini, 'yyyy-mm')||'-'||TO_CHAR(rMatr.dia_cobranca, 'dd'), 'yyyy-mm-dd') AS dt_vencimento
845 , c.data_ini
846 INTO rC
847 FROM competencia AS c
848 WHERE periodicidade = 'Mensal'
849 AND data_ini > rUltData
850
851 and not((rMatr.seq_produto_classe=5) and (substr(c.competencia,1,2) in ('01','02')))
852 ORDER BY c.data_ini
853 LIMIT 1;
854
855 INSERT INTO movimento_cobranca
856 (matricula, seq_produto_taxa, valor_devido, valor_pago, data_vencimento, data_pagamento
857 ,data_cancelamento, usuario_alteracao, data_alteracao, seq_pessoa, competencia)
858 VALUES
859 ( pmatricula,
860 rMatr.seq_produto_taxa,
861 rMatr.valor, --valor_devido,
862 null, -- valor_pago,
863 rC.dt_vencimento, --data_vencimento,
864 null, -- data_pagamento,
865 null, --data_cancelamento,
866 -78, --usuario_alteracao,
867 now(), --data_alteracao,
868 rMatr.seq_pessoa,
869 rC.competencia);
870
871 SELECT rUltData + interval '1 month' INTO rUltData;
872
873 END LOOP;
874
875 END IF;
876 raise notice 'Tem? %', rUltData;
877 END IF;
878
879 END LOOP;
880
881 RETURN 'OK';
882END;
883
884$$;
885
886
887
888pg_restore: creating FUNCTION "public.cobranca_adiciona_taxa(integer, integer)"
889pg_restore: [archiver (db)] Error from TOC entry 1207; 1255 47395441 FUNCTION cobranca_adiciona_taxa(integer, integer) postgres
890pg_restore: [archiver (db)] could not execute query: ERROR: function "cobranca_adiciona_taxa" already exists with same argument types
891 Command was: CREATE FUNCTION public.cobranca_adiciona_taxa(pmatricula integer, pseq_produto_taxa integer) RETURNS character varying
892 LANGUAGE plpgsql
893 AS $$
894declare
895 rPT record;
896 rC record;
897 rQ record;
898 rUltData date;
899 rVenc date;
900Begin
901
902 select * into rPT
903 from taxa as t
904 join produto_taxa as pt using(seq_taxa)
905 where seq_produto_taxa= pseq_produto_taxa;
906
907 if coalesce(rPT.ciclico,false) then --Verifica qual data falta
908 if rPT.periodicidade='Mensal' then
909
910 select max(data_fim) into rUltData
911 from movimento_cobranca as mc
912 join competencia as c using(competencia)
913 join produto_taxa as pt using(seq_produto_taxa)
914 where seq_produto_taxa= pseq_produto_taxa;
915
916 rUltData:=coalesce(rUltData,now());
917
918 select * into rC
919 from competencia as c
920 where periodicidade=rPT.periodicidade
921 and data_ini>rUltData
922 order by c.data_ini
923 limit 1;
924
925 rVenc:=rC.data_ini;
926
927 INSERT INTO movimento_cobranca(
928 matricula, seq_produto_taxa, valor_devido,
929 valor_pago, data_vencimento, data_pagamento, data_cancelamento,
930 usuario_alteracao, data_alteracao, seq_pessoa, competencia)
931 VALUES (
932 pmatricula,
933 pseq_produto_taxa,
934 rPT.valor, --valor_devido,
935 null, -- valor_pago,
936 rVenc, --data_vencimento,
937 null, -- data_pagamento,
938 null, --data_cancelamento,
939 -78, --usuario_alteracao,
940 now(), --data_alteracao,
941 (select seq_pessoa from matricula where matricula=pmatricula),
942 rC.competencia);
943
944
945 end if;
946
947
948 end if;
949
950
951
952 return 'OK';
953end;
954
955$$;
956
957
958
959pg_restore: creating FUNCTION "public.competencia_atual()"
960pg_restore: [archiver (db)] Error from TOC entry 1215; 1255 49625524 FUNCTION competencia_atual() postgres
961pg_restore: [archiver (db)] could not execute query: ERROR: function "competencia_atual" already exists with same argument types
962 Command was: CREATE FUNCTION public.competencia_atual() RETURNS character varying
963 LANGUAGE plpgsql
964 AS $$
965
966 declare
967
968 lsCompetencia varchar;
969
970begin
971
972select competencia into lsCompetencia from competencia where data_ini<=now()::date and data_fim >= now()::date;
973
974
975return lsCompetencia;
976
977
978end;$$;
979
980
981
982pg_restore: creating FUNCTION "public.concate(text, text)"
983pg_restore: [archiver (db)] Error from TOC entry 1208; 1255 47395442 FUNCTION concate(text, text) postgres
984pg_restore: [archiver (db)] could not execute query: ERROR: function "concate" already exists with same argument types
985 Command was: CREATE FUNCTION public.concate(text, text) RETURNS text
986 LANGUAGE sql
987 AS $_$
988SELECT COALESCE($2 ||', '|| $1,$1,$2,NULL)
989$_$;
990
991
992
993pg_restore: creating FUNCTION "public.concatefinal(text)"
994pg_restore: [archiver (db)] Error from TOC entry 1209; 1255 47395443 FUNCTION concatefinal(text) postgres
995pg_restore: [archiver (db)] could not execute query: ERROR: function "concatefinal" already exists with same argument types
996 Command was: CREATE FUNCTION public.concatefinal(text) RETURNS text
997 LANGUAGE sql
998 AS $_$
999SELECT substr($1,1,length($1))
1000$_$;
1001
1002
1003
1004pg_restore: creating FUNCTION "public.depois_inserir_sessao()"
1005pg_restore: [archiver (db)] Error from TOC entry 1210; 1255 47395444 FUNCTION depois_inserir_sessao() postgres
1006pg_restore: [archiver (db)] could not execute query: ERROR: function "depois_inserir_sessao" already exists with same argument types
1007 Command was: CREATE FUNCTION public.depois_inserir_sessao() RETURNS trigger
1008 LANGUAGE plpgsql
1009 AS $$
1010declare
1011 rQ record;
1012begin
1013 for rQ in select *
1014 from evento_produto as ep
1015 where ep.seq_evento=new.seq_evento
1016
1017 and not exists (select 1
1018 from sessao_evento_produto as ss1
1019 join evento_produto as ep1 using(seq_evento_produto)
1020 where ep1.seq_evento=new.seq_evento
1021 and ss1.seq_sessao = new.seq_sessao
1022 and ss1.seq_evento_produto = ep.seq_evento_produto) loop
1023 INSERT INTO sessao_evento_produto(
1024 seq_sessao, seq_evento_produto, qtde,
1025 dt_carga, seq_supervisor, usuario_alteracao, data_alteracao)
1026 VALUES (
1027 new.seq_sessao,
1028 rQ.seq_evento_produto,
1029 500,
1030 null, --dt_carga,
1031 null, --seq_supervisor,
1032 'Andre e Buddy', --usuario_alteracao,
1033 now()); --data_alteracao);
1034
1035 end loop;
1036
1037 return new;
1038end; $$;
1039
1040
1041
1042pg_restore: creating FUNCTION "public.em_dia(integer, character varying)"
1043pg_restore: [archiver (db)] Error from TOC entry 1230; 1255 49629109 FUNCTION em_dia(integer, character varying) postgres
1044pg_restore: [archiver (db)] could not execute query: ERROR: function "em_dia" already exists with same argument types
1045 Command was: CREATE FUNCTION public.em_dia(pimatricula integer, pscompetencia character varying) RETURNS boolean
1046 LANGUAGE plpgsql
1047 AS $$
1048
1049 declare
1050
1051 liqtde integer;
1052
1053 lscompetencia varchar(10);
1054
1055begin
1056
1057
1058
1059if pscompetencia is null then
1060
1061 lscompetencia := competencia_atual();
1062
1063else
1064
1065 lscompetencia := pscompetencia;
1066
1067end if;
1068
1069
1070select count(seq_movimento_cobranca)
1071
1072 into liqtde
1073
1074from movimento_cobranca
1075
1076where matricula = pimatricula
1077
1078 and valor_pago is not null
1079
1080 and competencia = lscompetencia;
1081
1082
1083
1084 return liqtde > 0;
1085
1086
1087
1088
1089end;$$;
1090
1091
1092
1093pg_restore: creating FUNCTION "public.estorna_movimento()"
1094pg_restore: [archiver (db)] Error from TOC entry 1211; 1255 47395445 FUNCTION estorna_movimento() postgres
1095pg_restore: [archiver (db)] could not execute query: ERROR: function "estorna_movimento" already exists with same argument types
1096 Command was: CREATE FUNCTION public.estorna_movimento() RETURNS trigger
1097 LANGUAGE plpgsql
1098 AS $$
1099declare
1100 rEventoProduto record;
1101 rIngressoNumero record;
1102 vseq_ingresso int4;
1103 ieven_ref Integer;
1104begin
1105 -- se tiver data de estorno, gera o cancelamento dos ingressos gerados pela movimento_item --
1106 if new.data_estorno is not null then
1107 update ingresso set dt_cancelamento = new.data_estorno where seq_movimento_item in (select seq_movimento_item from movimento_item where seq_movimento = new.seq_movimento);
1108 end if;
1109
1110 return new;
1111end; $$;
1112
1113
1114
1115pg_restore: creating FUNCTION "public.fatura_retorno()"
1116pg_restore: [archiver (db)] Error from TOC entry 1212; 1255 47395446 FUNCTION fatura_retorno() postgres
1117pg_restore: [archiver (db)] could not execute query: ERROR: function "fatura_retorno" already exists with same argument types
1118 Command was: CREATE FUNCTION public.fatura_retorno() RETURNS integer
1119 LANGUAGE plpgsql
1120 AS $$
1121
1122declare
1123 rRetorno record;
1124
1125 licont integer;
1126begin
1127
1128 licont := 0;
1129 for rRetorno in (select *
1130
1131 from public.cobranca_retorno
1132
1133 where dt_lido_sistema is null
1134
1135 order by seq_cobranca_retorno) loop
1136
1137 licont := licont + 1;
1138
1139 if rRetorno.cod_ocorrencia = '06' then
1140
1141 update public.cobranca_titulo
1142
1143 set status = rRetorno.cod_ocorrencia,
1144
1145 data_alteracao = now(),
1146
1147 usuario_alteracao = 'fatura_retorno_pgto',
1148
1149 valor_pago = rRetorno.vlr_pago::numeric/100,
1150
1151 data_pagamento = rRetorno.dt_credito
1152
1153 where nosso_numero = rRetorno.nosso_numero;
1154
1155 else
1156
1157 update public.cobranca_titulo
1158
1159 set status = rRetorno.cod_ocorrencia,
1160
1161 data_alteracao = now(),
1162
1163 usuario_alteracao = 'fatura_retorno'
1164
1165 where nosso_numero = rRetorno.nosso_numero;
1166
1167 end if;
1168
1169 update public.cobranca_retorno set dt_lido_sistema = now() where seq_cobranca_retorno = rRetorno.seq_cobranca_retorno;
1170
1171 end loop;
1172
1173 return licont;
1174end;
1175$$;
1176
1177
1178
1179pg_restore: creating FUNCTION "public.fnc_abertura_jogo(date)"
1180pg_restore: [archiver (db)] Error from TOC entry 1213; 1255 47395447 FUNCTION fnc_abertura_jogo(date) postgres
1181pg_restore: [archiver (db)] could not execute query: ERROR: function "fnc_abertura_jogo" already exists with same argument types
1182 Command was: CREATE FUNCTION public.fnc_abertura_jogo(pdia date) RETURNS character varying
1183 LANGUAGE plpgsql
1184 AS $$
1185declare
1186 rQ record;
1187 i integer;
1188 vE integer;
1189 vCB varchar(200);
1190 vCP integer;
1191 vTem integer;
1192Begin
1193
1194-- acesso historico
1195select seq_evento into vE from evento where dt_evento::date= (select min(data_acesso)::date from acesso);
1196insert into acesso_historico ( --seq_acesso_historico, codigo, status, data_acesso, usuario_alteracao,
1197 --seq_evento, seq_produto, seq_catraca, data_alteracao, tipo
1198SELECT nextval('acesso_historico_seq_acesso_historico_seq'), a.codigo, a.status, a.data_acesso, l.usuario_alteracao,
1199 vE, l.seq_produto, a.seq_catraca, a.data_alteracao, a.tipo, l.mensagem
1200 FROM acesso as a
1201 left join liberacao as l using(codigo)
1202 --where seq_acesso not in (SELECT seq_acesso_historico from acesso_historico)
1203);
1204delete from acesso;
1205
1206insert into liberacao_historico (
1207SELECT nextval('seq_liberacao_historico'), seq_liberacao, codigo, seq_produto,
1208 status, data_acesso, usuario_alteracao, data_alteracao, tipo_acesso,
1209 mensagem, vE
1210 FROM liberacao
1211);
1212delete from liberacao;
1213
1214--for rQ in Select * from socio_tmp loop
1215for rQ in select cod_barra as codigo
1216 from matricula as m
1217 join cartao as c using (matricula)
1218 where em_dia
1219 loop
1220
1221select seq_liberacao into vTem from liberacao where codigo=rQ.codigo;
1222
1223if vTem is null then
1224
1225insert into liberacao (codigo, seq_produto, status, data_acesso, usuario_alteracao,
1226 data_alteracao, tipo_acesso, mensagem)
1227 values (
1228 rQ.codigo,
1229 8, --case when rQ.nome ilike('%Cadeira%') then 12 else 13 end, --as seq_produto,
1230 'DA', --status,
1231 null, --data_acesso,
1232 'Barata', --usuario_alteracao,
1233 now(), --data_alteracao,
1234 'socio', --tipo_acesso,
1235 'BEM VINDO' --mensagem
1236 );
1237
1238end if;
1239
1240end loop;
1241
1242-- INGRESSOS --
1243
1244for rQ in
1245select nro_codigo_barras as codigo, p.seq_produto
1246 from movimento as m
1247 join movimento_item as mi using(seq_movimento)
1248 left join ingresso as i on (i.seq_movimento_item = mi.seq_movimento_item)
1249 join sessao_evento_produto as sep on (sep.seq_sessao_evento_produto = mi.seq_sessao_evento_produto)
1250 join evento_produto as ep on (ep.seq_evento_produto = sep.seq_evento_produto)
1251 join produto as p using(seq_produto)
1252 join evento as e on (e.seq_evento=ep.seq_evento)
1253 join usuario as u on (u.seq_usuario = m.operador)
1254where m.data_estorno is null
1255 and i.dt_cancelamento is null
1256 and e.dt_evento::date = pdia
1257 order by e.descricao, e.dt_evento, u.nome, p.produto
1258 loop
1259
1260select seq_liberacao into vTem from liberacao where codigo=rQ.codigo;
1261
1262if vTem is null then
1263
1264insert into liberacao (codigo, seq_produto, status, data_acesso, usuario_alteracao,
1265 data_alteracao, tipo_acesso, mensagem)
1266 values (
1267 rQ.codigo,
1268 rQ.seq_produto, --case when rQ.nome ilike('%Cadeira%') then 12 else 13 end, --as seq_produto,
1269 'DA', --status,
1270 null, --data_acesso,
1271 'Barata', --usuario_alteracao,
1272 now(), --data_alteracao,
1273 'torcedor', --tipo_acesso,
1274 'BEM VINDO' --mensagem
1275 );
1276end if;
1277end loop;
1278
1279
1280delete from liberacao where codigo='0037000019042D';
1281insert into liberacao (codigo, seq_produto, status, data_acesso, usuario_alteracao,
1282 data_alteracao, tipo_acesso, mensagem)
1283 values (
1284 '0037000019042D',
1285 8, --case when rQ.nome ilike('%Cadeira%') then 12 else 13 end, --as seq_produto,
1286 'ME', --status,
1287 null, --data_acesso,
1288 'Vinicius', --usuario_alteracao,
1289 now(), --data_alteracao,
1290 'mestre', --tipo_acesso,
1291 'Mavetec' --mensagem
1292 );
1293
1294delete from liberacao where codigo='0037000025760D';
1295insert into liberacao (codigo, seq_produto, status, data_acesso, usuario_alteracao,
1296 data_alteracao, tipo_acesso, mensagem)
1297 values (
1298 '0037000025760D',
1299 8, --case when rQ.nome ilike('%Cadeira%') then 12 else 13 end, --as seq_produto,
1300 'ME', --status,
1301 null, --data_acesso,
1302 'Vinicius', --usuario_alteracao,
1303 now(), --data_alteracao,
1304 'mestre', --tipo_acesso,
1305 'Mestre' --mensagem
1306 );
1307
1308
1309delete from liberacao where codigo='0037000019671D';
1310insert into liberacao (codigo, seq_produto, status, data_acesso, usuario_alteracao,
1311 data_alteracao, tipo_acesso, mensagem)
1312 values (
1313 '0037000019671D',
1314 8, --case when rQ.nome ilike('%Cadeira%') then 12 else 13 end, --as seq_produto,
1315 'ME', --status,
1316 null, --data_acesso,
1317 'Vinicius', --usuario_alteracao,
1318 now(), --data_alteracao,
1319 'mestre', --tipo_acesso,
1320 'Mestre' --mensagem
1321 );
1322
1323
1324delete from liberacao where codigo='0037000036559D';
1325insert into liberacao (codigo, seq_produto, status, data_acesso, usuario_alteracao,
1326 data_alteracao, tipo_acesso, mensagem)
1327 values (
1328 '0037000036559D',
1329 8, --case when rQ.nome ilike('%Cadeira%') then 12 else 13 end, --as seq_produto,
1330 'ME', --status,
1331 null, --data_acesso,
1332 'Vinicius', --usuario_alteracao,
1333 now(), --data_alteracao,
1334 'mestre', --tipo_acesso,
1335 'Mestre' --mensagem
1336 );
1337
1338
1339
1340-- Baca Catraca le diferente
1341UPDATE liberacao set codigo=substr(codigo,2,19)||'D' where codigo ilike('1%');
1342
1343return 'ECnh soh AS TOPs';
1344end;
1345$$;
1346
1347
1348
1349pg_restore: creating FUNCTION "public.fnc_carrega_even_ref()"
1350pg_restore: [archiver (db)] Error from TOC entry 1214; 1255 47395448 FUNCTION fnc_carrega_even_ref() postgres
1351pg_restore: [archiver (db)] could not execute query: ERROR: function "fnc_carrega_even_ref" already exists with same argument types
1352 Command was: CREATE FUNCTION public.fnc_carrega_even_ref() RETURNS trigger
1353 LANGUAGE plpgsql
1354 AS $$
1355begin
1356 new.even_ref := (select max(coalesce(even_ref,0)) + 1 from evento);
1357 return new;
1358end; $$;
1359
1360
1361
1362pg_restore: creating FUNCTION "public.fnc_cobranca_titulo()"
1363pg_restore: [archiver (db)] Error from TOC entry 1216; 1255 47395449 FUNCTION fnc_cobranca_titulo() postgres
1364pg_restore: [archiver (db)] could not execute query: ERROR: function "fnc_cobranca_titulo" already exists with same argument types
1365 Command was: CREATE FUNCTION public.fnc_cobranca_titulo() RETURNS trigger
1366 LANGUAGE plpgsql
1367 AS $$
1368
1369declare
1370
1371 rItensPgto record;
1372
1373
1374
1375begin
1376
1377
1378 if new.status = '06' then
1379
1380
1381 if new.valor_pago <> new.valor_total then
1382
1383 new.status = 'Valor Dif';
1384
1385 else
1386
1387 if old.status = new.status then
1388
1389 new.status = 'Duplicado';
1390
1391 else
1392
1393 for rItensPgto in (select *
1394
1395 from public.cobranca_titulo_item
1396
1397 where seq_cobranca_titulo = new.seq_cobranca_titulo) loop
1398
1399
1400 update public.movimento_cobranca
1401
1402 set valor_pago = rItensPgto.valor,
1403
1404 data_pagamento = new.data_pagamento,
1405
1406 data_alteracao = now(),
1407
1408 usuario_alteracao = 'fatura_retorno_pgto'
1409
1410 where seq_movimento_cobranca = rItensPgto.seq_movimento_cobranca;
1411
1412 end loop;
1413
1414 end if;
1415
1416 end if;
1417
1418 end if;
1419
1420 return NEW;
1421
1422end;$$;
1423
1424
1425
1426pg_restore: creating FUNCTION "public.fnc_gera_boleto_carne(integer, integer)"
1427pg_restore: [archiver (db)] Error from TOC entry 1217; 1255 47395450 FUNCTION fnc_gera_boleto_carne(integer, integer) postgres
1428pg_restore: [archiver (db)] could not execute query: ERROR: function "fnc_gera_boleto_carne" already exists with same argument types
1429 Command was: CREATE FUNCTION public.fnc_gera_boleto_carne(integer, integer) RETURNS character varying
1430 LANGUAGE plpgsql
1431 AS $_$
1432
1433declare
1434 pMovimento alias FOR $1;
1435 pRemessa alias FOR $2;
1436 rNossoNumero character varying(8);
1437 sCobranca integer;
1438 iMov integer;
1439 dtVencimento date;
1440
1441 rM record;
1442 rQ record;
1443
1444BEGIN
1445
1446 -- Se ja gerou o movimento, só retorna o nosso_numero
1447 SELECT nosso_numero FROM cobranca_titulo INTO rNossoNumero WHERE seq_movimento = pMovimento;
1448 --raise notice '%',rNossoNumero;
1449
1450 IF (rNossoNumero IS NULL) THEN
1451
1452 SELECT seq_movimento
1453 , data_criacao
1454 , valor_total
1455 , usuario_alteracao
1456 , seq_pessoa
1457 , (SELECT COALESCE(MIN(data_vencimento), NOW()+'3 days') AS dt_vencimento
1458 FROM movimento_cobranca
1459 WHERE seq_movimento_cobranca IN (SELECT seq_movimento_cobranca
1460 FROM movimento_item
1461 WHERE seq_movimento = movimento.seq_movimento)) AS data_vencimento
1462 FROM movimento
1463 INTO rM
1464 WHERE seq_movimento = pMovimento
1465 AND data_pagamento IS NULL;
1466
1467 IF (rM.seq_movimento IS NOT NULL) THEN
1468
1469 dtVencimento := rM.data_vencimento;
1470
1471 IF (dtVencimento <= NOW()) THEN
1472 dtVencimento := NOW() + '3 days';
1473 END IF;
1474
1475 SELECT '1'||trim(to_char(nextval('seq_nosso_numero'),'0000000')) INTO rNossoNumero;
1476
1477 SELECT nextval('cobranca_titulo_seq_cobranca_titulo_seq'::regclass) INTO sCobranca;
1478
1479 INSERT INTO public.cobranca_titulo
1480 (seq_cobranca_titulo, seq_cobranca_retorno, nosso_numero, titulo, status, valor_total
1481 ,valor_pago, valor_desconto, mensagem, data_pagamento, usuario_alteracao, data_alteracao
1482 ,seq_pessoa, seq_remessa, seq_movimento, dt_vencimento)
1483 VALUES
1484 ( sCobranca -- seq_cobranca_titulo
1485 , NULL -- seq_cobranca_retorno
1486 , rNossoNumero -- nosso_numero
1487 , NULL -- titulo
1488 , 'Bol' -- status
1489 , rM.valor_total -- valor_total
1490 , NULL -- valor_pago
1491 , NULL -- valor_desconto
1492 , '---' -- mensagem
1493 , NULL -- data_pagamento
1494 , rM.usuario_alteracao -- usuario_alteracao
1495 , NOW() -- data_alteracao
1496 , rM.seq_pessoa -- seq_pessoa
1497 , pRemessa -- seq_remessa
1498 , rM.seq_movimento -- seq_movimento
1499 , dtVencimento -- dt_vencimento
1500 );
1501
1502 FOR rQ IN SELECT mi.seq_movimento_item
1503 , mi.seq_produto_taxa
1504 , mi.valor_devido
1505 , mi.seq_movimento_cobranca
1506 , mi.usuario_alteracao
1507 , mi.data_alteracao
1508 , mc.data_vencimento
1509 FROM movimento_item AS mi
1510 JOIN movimento_cobranca AS mc USING (seq_movimento_cobranca)
1511 WHERE seq_movimento = pMovimento
1512 LOOP
1513
1514 IF (pRemessa = -1) THEN
1515 dtVencimento := NOW() + '3 days';
1516 ELSE
1517 dtVencimento := rQ.data_vencimento;
1518 END IF;
1519
1520 INSERT INTO public.cobranca_titulo_item
1521 (seq_cobranca_titulo, valor, seq_movimento_cobranca, usuario_alteracao, data_alteracao)
1522 VALUES
1523 ( sCobranca -- seq_cobranca_titulo
1524 , rQ.valor_devido -- valor
1525 , rQ.seq_movimento_cobranca -- seq_movimento_cobranca
1526 , rQ.usuario_alteracao -- usuario_alteracao
1527 , rQ.data_alteracao -- data_alteracao
1528 );
1529 END LOOP;
1530
1531 ELSE
1532 rNossoNumero := -1;
1533 END IF;
1534
1535 END IF;
1536
1537 RETURN rNossoNumero;
1538
1539END;
1540$_$;
1541
1542
1543
1544pg_restore: creating FUNCTION "public.fnc_insere_socios_tmp()"
1545pg_restore: [archiver (db)] Error from TOC entry 1218; 1255 47395451 FUNCTION fnc_insere_socios_tmp() postgres
1546pg_restore: [archiver (db)] could not execute query: ERROR: function "fnc_insere_socios_tmp" already exists with same argument types
1547 Command was: CREATE FUNCTION public.fnc_insere_socios_tmp() RETURNS character varying
1548 LANGUAGE plpgsql
1549 AS $$
1550declare
1551 rQ record;
1552 i integer;
1553 vE integer;
1554 vCB varchar(200);
1555 vCP integer;
1556 vTem integer;
1557Begin
1558
1559for rQ in Select * from socio_tmp loop
1560
1561select seq_liberacao into vTem from liberacao where codigo=rQ.codigo;
1562
1563if vTem is null then
1564
1565insert into liberacao (codigo, seq_produto, status, data_acesso, usuario_alteracao,
1566 data_alteracao, tipo_acesso, mensagem)
1567 values (
1568 rQ.codigo,
1569 8, --case when rQ.nome ilike('%Cadeira%') then 12 else 13 end, --as seq_produto,
1570 'EA', --status,
1571 null, --data_acesso,
1572 'Barata', --usuario_alteracao,
1573 now(), --data_alteracao,
1574 'socio', --tipo_acesso,
1575 'BEM VINDO' --mensagem
1576 );
1577
1578end if;
1579
1580end loop;
1581
1582return 'Elias deu o cu pro Zico';
1583end;
1584$$;
1585
1586
1587
1588pg_restore: creating FUNCTION "public.fnc_numero_ingresso(integer)"
1589pg_restore: [archiver (db)] Error from TOC entry 1219; 1255 47395452 FUNCTION fnc_numero_ingresso(integer) postgres
1590pg_restore: [archiver (db)] could not execute query: ERROR: function "fnc_numero_ingresso" already exists with same argument types
1591 Command was: CREATE FUNCTION public.fnc_numero_ingresso(integer) RETURNS character varying
1592 LANGUAGE plpgsql
1593 AS $_$
1594
1595declare
1596
1597 base alias for $1;
1598
1599 vaux int8;
1600Begin
1601
1602 vaux:=(base::text||trim(to_char(((random()*999)::int),'000')))::int8;
1603 vaux:=fnc_numero_valido(vaux);
1604 return '1'||trim(to_char(vaux,'0000000000000'));
1605end;
1606
1607
1608$_$;
1609
1610
1611
1612pg_restore: creating FUNCTION "public.fnc_numero_valido(bigint)"
1613pg_restore: [archiver (db)] Error from TOC entry 1220; 1255 47395453 FUNCTION fnc_numero_valido(bigint) postgres
1614pg_restore: [archiver (db)] could not execute query: ERROR: function "fnc_numero_valido" already exists with same argument types
1615 Command was: CREATE FUNCTION public.fnc_numero_valido(bigint) RETURNS character varying
1616 LANGUAGE plpgsql
1617 AS $_$
1618
1619declare
1620
1621 base alias for $1;
1622
1623 d1 Integer;
1624
1625 d4 Integer;
1626
1627 xx Integer;
1628
1629 nCount Integer;
1630
1631 resto Integer;
1632
1633 digito1 Integer;
1634
1635 digito2 Integer;
1636
1637 vCheck varchar;
1638
1639 xCPF varchar;
1640
1641Begin
1642
1643 xCPF:=base||'9';
1644
1645 d1 := 0;
1646
1647 d4 := 0;
1648
1649 xx := 1;
1650
1651 for nCount in 1..Length(xCPF)-1 loop
1652
1653 if strPos( substr( xCPF, nCount, 1 ), '/-.' ) = 0 then
1654
1655 d1 := d1 + ( 11 - xx ) * ( substr( xCPF, nCount, 1 ) )::integer;
1656
1657 end if;
1658
1659 d4 := d4 + ( 12 - xx ) * ( substr( xCPF, nCount, 1 ) )::integer;
1660
1661 xx := xx+1;
1662
1663 end loop;
1664
1665 resto := mod(d1,11);
1666
1667 if resto < 2 then
1668
1669 digito1 := 0;
1670
1671 else
1672
1673 digito1 := 11 - resto;
1674
1675 end if;
1676
1677 d4 := d4 + 2 * digito1;
1678
1679 resto := mod(d4,11);
1680
1681 if resto < 2 then
1682
1683 digito2 := 0;
1684
1685 else
1686
1687 digito2 := 11 - resto;
1688
1689 end if;
1690
1691 --Check := IntToStr(Digito1) + IntToStr(Digito2);
1692
1693
1694 vCheck :=(Digito2);
1695
1696
1697 return (base)||vCheck;
1698
1699
1700end;
1701
1702
1703$_$;
1704
1705
1706
1707pg_restore: creating FUNCTION "public.gera_ingressos_do_pagamento()"
1708pg_restore: [archiver (db)] Error from TOC entry 1221; 1255 47395454 FUNCTION gera_ingressos_do_pagamento() postgres
1709pg_restore: [archiver (db)] could not execute query: ERROR: function "gera_ingressos_do_pagamento" already exists with same argument types
1710 Command was: CREATE FUNCTION public.gera_ingressos_do_pagamento() RETURNS trigger
1711 LANGUAGE plpgsql
1712 AS $$
1713declare
1714 rEventoProduto record;
1715 rIngressoNumero record;
1716 vseq_ingresso int4;
1717 ieven_ref Integer;
1718 vcaixa integer;
1719begin
1720select caixa into vcaixa from movimento where seq_movimento=new.seq_movimento;
1721if vcaixa is null then
1722 -- verifica se existe na tabela de ingresso, se n�o existe gera o insert. --
1723 if new.seq_movimento_item not in (select seq_movimento_item from ingresso) then
1724 -- pega o event_ref do evendo --
1725 ieven_ref := (select evento.even_ref
1726 from sessao_evento_produto
1727 join sessao on (sessao.seq_sessao = sessao_evento_produto.seq_sessao)
1728 join evento on (evento.seq_evento = sessao.seq_evento)
1729 where seq_sessao_evento_produto = new.seq_sessao_evento_produto);
1730
1731 -- loop na quantidade do movimento item --
1732 for licont in 1..(new.qtde::integer) loop
1733 vseq_ingresso := nextval('ingresso_seq_ingresso_seq');
1734 -- pega 1 numero da tabela ingresso_numero --
1735 select * into rIngressoNumero from ingresso_numero where even_ref = ieven_ref and not usado limit 1;
1736
1737 -- gera o insert na tabela de ingresso --
1738 INSERT INTO ingresso(seq_ingresso,seq_sessao_evento_produto, seq_pessoa, seq_assento, nro_codigo_barras, nro_ingresso, nro_2d, nro_protocolo,
1739 seq_cartao, usuario_alteracao, data_alteracao, dt_cancelamento, seq_movimento_item)
1740 VALUES (vseq_ingresso,
1741 new.seq_sessao_evento_produto, -- seq_sessao_evento_produto
1742 (select seq_pessoa from movimento where seq_movimento = new.seq_movimento), -- seq_pessoa
1743 /* (select seq_assento from produto_assento where seq_produto = rEventoProduto.seq_produto), -- seq_assento */
1744 null, -- seq_assento
1745 rIngressoNumero.ingresso_numero, -- nro_codigo_barras
1746 rIngressoNumero.ingresso_numero, -- nro_ingresso
1747 null, -- nro_2d
1748 null, -- nro_protocolo
1749 null, -- seq_cartao
1750 new.usuario_alteracao, -- usuario_alteracao
1751 now(), -- data_alteracao
1752 null, -- dt_cancelamento
1753 new.seq_movimento_item); -- seq_movimento_item
1754
1755 -- marca o numero selecionado como usado --
1756 update ingresso_numero set usado = true where ingresso_numero = rIngressoNumero.ingresso_numero;
1757 end loop;
1758 end if;
1759end if;
1760 return new;
1761end; $$;
1762
1763
1764
1765pg_restore: creating FUNCTION "public.gera_script_importacao(text)"
1766pg_restore: [archiver (db)] Error from TOC entry 1222; 1255 47395455 FUNCTION gera_script_importacao(text) postgres
1767pg_restore: [archiver (db)] could not execute query: ERROR: function "gera_script_importacao" already exists with same argument types
1768 Command was: CREATE FUNCTION public.gera_script_importacao(ptabela text) RETURNS text
1769 LANGUAGE plpgsql
1770 AS $$
1771
1772declare
1773
1774 vSQL text;
1775
1776 rT record;
1777
1778 rC record;
1779
1780 vCampos text;
1781
1782 vValores text;
1783
1784BEGIN
1785
1786
1787 vCampos :='';
1788
1789 vValores :='';
1790
1791 vSQL:='';
1792
1793 for rC in SELECT *
1794
1795 FROM information_schema.columns
1796
1797 WHERE table_name = ptabela
1798
1799 AND table_schema = 'migra'
1800
1801 order by column_name
1802
1803 loop
1804
1805
1806 vCampos:=vCampos||rC.column_name||',';
1807
1808 vValores:=vValores||'''||coalesce(''''''''||replace('||rC.column_name||','''''''','''')||'''''''',''null'')||'',';
1809
1810
1811
1812/*
1813
1814
1815select substr('1234567',1, length('1234567')-1)
1816
1817
1818SELECT *
1819
1820 FROM information_schema.columns
1821
1822 WHERE table_name = 'ger_pessoa'
1823
1824 AND table_schema = 'migra'
1825
1826 order by column_name
1827
1828 SELECT
1829
1830 pg_attribute.attname,
1831
1832 format_type(pg_attribute.atttypid, pg_attribute.atttypmod)
1833
1834 into rCampoChave
1835
1836 FROM pg_index, pg_class, pg_attribute
1837
1838 WHERE pg_class.oid = (TG_TABLE_SCHEMA||'.'||TG_RELNAME)::regclass
1839
1840 AND pg_attribute.attname = rColunasTabela.column_name
1841
1842 AND indrelid = pg_class.oid
1843
1844 AND pg_attribute.attrelid = pg_class.oid
1845
1846 AND pg_attribute.attnum = any(pg_index.indkey)
1847
1848 AND indisprimary;
1849
1850*/
1851
1852
1853
1854
1855 end loop;
1856
1857
1858vCampos:= substr(vCampos,1, length(vCampos)-1);
1859
1860vValores:= substr(vValores,1, length(vValores)-1);
1861
1862
1863vSQL:='select ''insert into migra.'||ptabela||' ('||vCampos||') values ('||vValores||');'' as isso from '||ptabela;
1864
1865
1866
1867return vSQL;
1868
1869END;
1870
1871$$;
1872
1873
1874
1875pg_restore: creating FUNCTION "public.insere_arvore(bigint, character varying, character varying, character varying)"
1876pg_restore: [archiver (db)] Error from TOC entry 1223; 1255 47395456 FUNCTION insere_arvore(bigint, character varying, character varying, character varying) postgres
1877pg_restore: [archiver (db)] could not execute query: ERROR: function "insere_arvore" already exists with same argument types
1878 Command was: CREATE FUNCTION public.insere_arvore(bigint, character varying, character varying, character varying) RETURNS integer
1879 LANGUAGE plpgsql SECURITY DEFINER
1880 AS $_$
1881declare
1882 vseq_pai alias for $1;
1883 vnome alias for $2;
1884 vusuario alias for $3;
1885 vtabela alias for $4;
1886 vmaior int4;
1887 vesq int4;
1888 vdir int4;
1889 vdir_novo int4;
1890 vesq_novo int4;
1891 vnivel int4;
1892 vnova_seq int4;
1893 vsql text;
1894 vquem text;
1895 qaux record;
1896 vcaminho text;
1897 qcaminho record;
1898
1899begin
1900 vsql := ' select max(dir) as maior from '||vtabela;
1901 vquem :=current_user;
1902 raise notice '%,como %',vsql, vquem ;
1903 for qaux in execute vsql loop
1904 vmaior:=qaux.maior;
1905 end loop;
1906 vsql := 'select esq,dir from '||vtabela||' where seq_'||vtabela||' ='||vseq_pai::text;
1907 raise notice '%',vsql;
1908 for qaux in execute vsql loop
1909 vesq:=qaux.esq;
1910 vdir:=qaux.dir;
1911 end loop;
1912 vsql := 'select count(*) as nivel from '||vtabela||' where '||vesq::text||' BETWEEN esq AND dir';
1913 raise notice '%',vsql;
1914 for qaux in execute vsql loop
1915 vnivel:=qaux.nivel;
1916 end loop;
1917
1918 vdir_novo:=vdir+1;
1919 vesq_novo:=vdir;
1920
1921 vsql := 'update '||vtabela||' set esq=esq+2, dir=dir+2 where esq > '||vesq_novo::text; --Todos do outros ramos a direita
1922 execute vsql;
1923
1924 vsql := 'update '||vtabela||' set dir=dir+2 where '||vesq_novo::text||' BETWEEN esq AND dir'; --Todos do mesmo ramos
1925 execute vsql;
1926
1927 select nextval('seq_'||vtabela) into vnova_seq ;
1928
1929 vsql := 'select * from '||vtabela||' where esq <= '||vdir::text||' and dir >= '||vdir_novo::text||' order by nivel';
1930 vcaminho:='';
1931 for qcaminho in execute vsql loop
1932 vcaminho:=vcaminho||qcaminho.nome||' -> ';
1933 end loop;
1934 vcaminho:=vcaminho||vnome;
1935
1936 vsql:='Insert into '||vtabela||' (
1937 seq_'||vtabela||',
1938 esq,
1939 nome,
1940 data_geracao,
1941 usuario_alteracao,
1942 dir,
1943 nivel,
1944 caminho,
1945 '||vtabela||'_pai
1946 )
1947 Values (
1948 '||vnova_seq::text||',
1949 '||vdir::text||', '||--:esq,
1950 ''''||vnome||''', '||--:dica_classe,
1951 'now(), '||--:data_geracao,
1952 ''''||vusuario||''', '||--:usuario_alteracao,
1953 vdir_novo::text||', '||--:dir,
1954 vnivel::text||', '|| --:nivel
1955 ''''||vcaminho||''', '||
1956 vseq_pai::text||') ';
1957 raise notice '%',vsql;
1958 execute vsql;
1959
1960
1961 return vnova_seq;
1962end;
1963$_$;
1964
1965
1966
1967pg_restore: creating FUNCTION "public.insere_pagamentos_carga_inicial()"
1968pg_restore: [archiver (db)] Error from TOC entry 1224; 1255 47395457 FUNCTION insere_pagamentos_carga_inicial() postgres
1969pg_restore: [archiver (db)] could not execute query: ERROR: function "insere_pagamentos_carga_inicial" already exists with same argument types
1970 Command was: CREATE FUNCTION public.insere_pagamentos_carga_inicial() RETURNS character varying
1971 LANGUAGE plpgsql
1972 AS $$
1973
1974declare
1975
1976 rQ record;
1977 vQuantas integer;
1978 i integer;
1979 vSeq_produto_taxa integer;
1980 vValor numeric(20,5);
1981 rComp record;
1982 rTem record;
1983Begin
1984 for rQ in select im.nome, p.nome,m.matricula as matboa,*
1985 from tmp_importacao_socio as im
1986 left join matricula as m on (replace(im.matricula,'.','')::integer=m.matricula)
1987 left join pessoa as p on (m.seq_pessoa=p.seq_pessoa)
1988 loop
1989
1990 vQuantas:=extract(month from now());
1991 if (length(rQ.ult_pagamento)=7 and rQ.ult_pagamento ilike('2013%')) then
1992 vQuantas:=extract(month from to_date(rQ.ult_pagamento,'yyyy/mm'));
1993 end if;
1994
1995
1996 for i in 1..vQuantas loop
1997
1998 select * into rComp from competencia where competencia=trim(to_char(i,'00'))||'13' and periodicidade='Mensal';
1999 if rComp.competencia is null then
2000 raise exception 'Nao achou competencia % %',i,rQ.ult_pagamento;
2001 end if;
2002
2003
2004 if rQ.categoria='ECNH SOCIO' then
2005 vSeq_produto_taxa:=1;
2006 vValor:=30.0;
2007 end if;
2008
2009 if rQ.categoria='ECNH CONS ' then
2010 vSeq_produto_taxa:=3;
2011 vValor:=100.0;
2012 end if;
2013
2014 if rQ.categoria='ECNH ESCO ' then
2015 vSeq_produto_taxa:=4;
2016 vValor:=50.0;
2017 end if;
2018
2019
2020 select *
2021 into rTem
2022 from movimento_cobranca
2023 where matricula=rQ.matboa
2024 and seq_produto_taxa=vSeq_produto_taxa
2025 and competencia=rComp.competencia;
2026
2027 if rTem.matricula is null then
2028 INSERT INTO movimento_cobranca(
2029 matricula, seq_produto_taxa, valor_devido,
2030 valor_pago, data_vencimento, data_pagamento, data_cancelamento,
2031 usuario_alteracao, data_alteracao, seq_pessoa, competencia)
2032 VALUES (
2033 rQ.matboa, --matricula,
2034 vSeq_produto_taxa,
2035 vValor, --valor_devido,
2036 vValor, --valor_pago,
2037 rComp.data_ini, -- data_vencimento,
2038 rComp.data_ini, --data_pagamento,
2039 null, --data_cancelamento,
2040 -94434324, --usuario_alteracao,
2041 now(), --data_alteracao,
2042 rQ.seq_pessoa,
2043 rComp.competencia);
2044 end if;
2045
2046
2047 end loop;
2048
2049
2050 end loop;
2051
2052 return 'Vinicius Daocueba' ;
2053end;
2054
2055
2056$$;
2057
2058
2059
2060pg_restore: creating FUNCTION "public.popula_ingresso_numero(integer, integer)"
2061pg_restore: [archiver (db)] Error from TOC entry 1225; 1255 47395458 FUNCTION popula_ingresso_numero(integer, integer) postgres
2062pg_restore: [archiver (db)] could not execute query: ERROR: function "popula_ingresso_numero" already exists with same argument types
2063 Command was: CREATE FUNCTION public.popula_ingresso_numero(pnum_eventos integer, pnum_ingressos_evento integer) RETURNS character varying
2064 LANGUAGE plpgsql
2065 AS $$
2066
2067declare
2068
2069 i integer;
2070 j integer;
2071 vult_evento integer;
2072 vSeq int;
2073 vCB int8;
2074 vevento integer;
2075 vmax_base int8;
2076 vmin_base int8;
2077 rEsse int8;
2078 rR int8;
2079
2080Begin
2081
2082 select max(even_ref)+1 into vult_evento from ingresso_numero;
2083 vult_evento:=coalesce(vult_evento,1);
2084 for i in vult_evento..(pnum_eventos+vult_evento)-1 loop
2085 raise notice 'Gerando evento %',i;
2086 for j in 1..pnum_ingressos_evento loop
2087 vSeq:=nextval('seq_ingresso_numero');
2088 vCB := fnc_numero_ingresso(vSeq)::int8;
2089 vevento:=(random()*pnum_eventos+vult_evento)::int ;
2090 --raise notice 'inserindo evento %',vevento;
2091
2092 INSERT INTO ingresso_numero(
2093 ingresso_numero, usado, even_ref, seq)
2094 VALUES (
2095 vCB, --ingresso_numero,
2096 false, --usado,
2097 vevento,
2098 vSeq); --even_ref);
2099
2100
2101 end loop;
2102
2103 end loop;
2104
2105 update ingresso_numero set even_ref=vult_evento where even_ref=(pnum_eventos+vult_evento);
2106
2107/*
2108
2109 -- randomiza eventos
2110 select max(seq), min(seq)
2111 into vmax_base , vmin_base
2112 from ingresso_numero
2113 where even_ref>= vult_evento
2114 and even_ref<= (pnum_eventos+vult_evento)-1;
2115
2116 for i in vult_evento..(pnum_eventos+vult_evento)-1 loop
2117 raise notice 'randomizando evento %',i;
2118 for j in 1..pnum_ingressos_evento loop
2119 rR:= vmin_base+ (random()* (vmax_base-vmin_base))::int8;
2120 select max( ingresso_numero) into rEsse
2121 from ingresso_numero
2122 where even_ref>= vult_evento
2123 and even_ref<= (pnum_eventos+vult_evento)-1
2124 and seq<=rR
2125 and not usado;
2126
2127 -- raise notice '% % %', rR,i,j;
2128 update ingresso_numero set even_ref=i, usado=true where ingresso_numero= rEsse;
2129
2130 end loop;
2131
2132 end loop;
2133
2134 update ingresso_numero
2135 set usado=false
2136 where even_ref>= vult_evento
2137 and even_ref<= (pnum_eventos+vult_evento)-1;
2138
2139*/
2140
2141return 'Elvis pegou o Baiano';
2142
2143end;
2144
2145
2146$$;
2147
2148
2149
2150pg_restore: creating FUNCTION "public.proxima_matricula()"
2151pg_restore: [archiver (db)] Error from TOC entry 1226; 1255 47395459 FUNCTION proxima_matricula() postgres
2152pg_restore: [archiver (db)] could not execute query: ERROR: function "proxima_matricula" already exists with same argument types
2153 Command was: CREATE FUNCTION public.proxima_matricula() RETURNS integer
2154 LANGUAGE plpgsql
2155 AS $$
2156
2157declare
2158
2159 vessa integer;
2160
2161Begin
2162 select max(matricula) into vessa from matricula where matricula< 90000000;
2163
2164 vessa:= (substr(vessa::text,1,5))::integer;
2165 vessa:=((vessa+1)::text||'00')::integer;
2166
2167 return vessa;
2168
2169
2170end;
2171
2172
2173$$;
2174
2175
2176
2177pg_restore: creating FUNCTION "public.proxima_matricula(integer)"
2178pg_restore: [archiver (db)] Error from TOC entry 1227; 1255 47395460 FUNCTION proxima_matricula(integer) postgres
2179pg_restore: [archiver (db)] could not execute query: ERROR: function "proxima_matricula" already exists with same argument types
2180 Command was: CREATE FUNCTION public.proxima_matricula(pseq_pessoa integer) RETURNS integer
2181 LANGUAGE plpgsql
2182 AS $$
2183
2184declare
2185
2186 vessa integer;
2187 vquantas integer;
2188 vnova integer;
2189 vposmat integer;
2190
2191Begin
2192
2193 select count(*),
2194 (substr(trim( to_char(matricula,'00000000')),1,6))::integer as mat,
2195 max((substr(trim( to_char(matricula,'00000000')),7,2))::integer) as posmat
2196 into vquantas,vessa,vposmat
2197 from matricula
2198 where seq_pessoa=pseq_pessoa group by mat;
2199
2200 raise notice '-->%', vessa;
2201 if coalesce(vposmat,0) >=10 then
2202 vessa:=null;
2203 end if;
2204 if vessa is null then
2205 select max(matricula) into vessa from matricula where matricula< 90000000;
2206 vessa:= (substr(vessa::text,1,5))::integer;
2207 vnova:=((vessa+1)::text||'00')::integer;
2208 else
2209 -- select trim(to_char(1,'00'))
2210 vnova:=vessa::text||trim(to_char((vposmat+1),'00'));
2211
2212 end if;
2213
2214 return vnova;
2215
2216
2217end;
2218
2219
2220$$;
2221
2222
2223
2224pg_restore: creating FUNCTION "public.remessa_boleto_arquivo(integer)"
2225pg_restore: [archiver (db)] Error from TOC entry 1228; 1255 47395461 FUNCTION remessa_boleto_arquivo(integer) postgres
2226pg_restore: [archiver (db)] could not execute query: ERROR: function "remessa_boleto_arquivo" already exists with same argument types
2227 Command was: CREATE FUNCTION public.remessa_boleto_arquivo(vseq_remessa integer) RETURNS text
2228 LANGUAGE plpgsql
2229 AS $_$
2230declare
2231 R text;
2232 rRemessa record;
2233 rI record;
2234 i integer;
2235begin
2236 i:=0;
2237 select * into rRemessa from remessa where seq_remessa=vseq_remessa;
2238-- HEADER
2239 R:='01REMESSA01COBRANCA 00000000000004251900ESPORTE CLUBE NOVO HAMBURGO 237BRADESCO ';
2240 R:=R||to_char(now(),'DDMMYY')||' MX'||trim(to_char(rRemessa.sequencia,'0000000'));
2241 R:=R||' 000001';
2242 R:=R||chr(10);
2243
2244
2245-- DADOS
2246/*
2247alter table remessa_item add seq_movimento_cobranca integer;
2248
2249ALTER TABLE pessoa
2250 ADD COLUMN cnpj character varying(50);
2251ALTER TABLE pessoa
2252 ADD COLUMN juridica boolean DEFAULT false;
2253
2254
2255*/
2256
2257for rI in select ria.*, p.*
2258 from remessa_item as ria
2259 join movimento_cobranca as mc on ria.seq_movimento_cobranca=mc.seq_movimento_cobranca
2260 join pessoa as p on mc.seq_pessoa=p.seq_pessoa
2261 where ria.seq_remessa=vseq_remessa
2262 and mc.data_pagamento is null
2263 --ri.data_vencimento <= rRemessa.data_vencimento
2264 loop
2265 i:=i+1;
2266 -- R:=R||'1 00000 0 00000 0000000 0 00090315201236660';
2267 --
2268 R:=R||'1';-- 001 a 001 Identifica��o do Registro 001
2269 R:=R||'00000';-- 002 a 006 Ag�ncia de D�bito 005
2270 R:=R||'0';-- 007 a 007 D�gito da Ag�ncia de D�bito 001
2271 R:=R||'00000';-- 008 a 012 Raz�o da Conta Corrente 005
2272 R:=R||'0000000';-- 013 a 019 Conta Corrente 007
2273 R:=R||'0';-- 020 a 020 D�gito da Conta Corrente 001
2274 R:=R||'00090315201236660';-- 021 a 037 Identifica��o da Empresa Cedente no Banco 017
2275 R:=R||trim(to_char(rI.seq_movimento_cobranca,'0000000000000000000000000'));-- 038 a 062 N� Controle do Participante 025
2276 R:=R||'00';-- 063 a 065 C�digo do Banco a ser debitado na C�mara de Compensa��o 003
2277 R:=R||'0';-- 066 a 066 Campo de Multa 001
2278 R:=R||'0000';-- 067 a 070 Percentual de multa 004
2279 R:=R||'00000000000';-- 071 a 081 Identifica��o do T�tulo no Banco 11
2280 R:=R||'0';-- 082 a 082 Digito de Auto Conferencia do Nosso N�mero 001
2281 R:=R||'0000000000';-- 083 a 092 Desconto Bonifica��o por dia 010
2282 R:=R||'1';-- 093 a 093 Condi��o para Emiss�o da Papeleta de Cobran�a 001
2283 R:=R||'N';-- 094 a 094 Ident. se emite papeleta para D�bito Autom�tico 001
2284 R:=R||' ';-- 095 a 104 Identifica��o da Opera��o do Banco 010
2285 R:=R||' ';-- 105 a 105 Indicador Rateio Cr�dito 001
2286 R:=R||'2';-- 106 a 106 Endere�amento para Aviso do D�bito Autom�tico em Conta Corrente 001
2287 R:=R||' ';-- 107 a 108 Branco 002
2288 R:=R||'01';-- 109 a 110 Identifica��o ocorr�ncia 002
2289 R:=R||trim(to_char(rI.seq_remessa_item,'0000000000'));-- 111 a 120 N� do Documento 010
2290 R:=R||to_char(rI.data_vencimento,'DDMMYY') ;-- 121 a 126 Data do Vencimento do T�tulo 006
2291 R:=R||replace(trim(to_char(rI.valor_vencimento,'00000000000.00')),'.','');-- 127 a 139 Valor do T�tulo 013
2292 R:=R||'000';-- 140 a 142 Banco Encarregado da Cobran�a 003
2293 R:=R||'00000';-- 143 a 147 Ag�ncia Deposit�ria 005
2294 R:=R||'01';-- 148 a 149 Esp�cie de T�tulo 002
2295 R:=R||'N';-- 150 a 150 Identifica��o 001
2296 R:=R||to_char(now(),'DDMMYY');-- 151 a 156 Data da emiss�o do T�tulo 006
2297 R:=R||'00';-- 157 a 158 1� instru��o 002
2298 R:=R||'00';-- 159 a 160 2� instru��o 002
2299 R:=R||'0000000000000';-- 161 a 173 Valor a ser cobrado por Dia de Atraso 013
2300 R:=R||'000000';-- 174 a 179 Data Limite P/Concess�o de Desconto 006
2301 R:=R||'0000000000000';-- 180 a 192 Valor do Desconto 013
2302 R:=R||'0000000000000';-- 193 a 205 Valor do IOF 013
2303 R:=R||' ';-- 206 a 218 Valor do Abatimento a ser concedido ou cancelado 013
2304
2305 if rI.juridica then
2306 R:=R||'02';-- 219 a 220 Identifica��o do Tipo de Inscri��o do Sacado 002
2307 R:=R||lpad(rI.cnpj,14,'0');-- 221 a 234 N� Inscri��o do Sacado 014
2308 else
2309 R:=R||'01';-- 219 a 220 Identifica��o do Tipo de Inscri��o do Sacado 002
2310 R:=R||lpad(rI.cpf,14,'0');-- 221 a 234 N� Inscri��o do Sacado 014
2311 end if;
2312 R:=R||rpad(rI.nome,40,' ');-- 235 a 274 Nome do Sacado 040
2313 R:=R||rpad(replace(upper(trim(rI.endereco)||' '||trim(rI.numero)||coalesce(' '||trim(rI.complemento),'')),'RUA','R'),40,' ');-- 275 a 314 Endere�o Completo 040
2314 R:=R||' ';-- 315 a 326 1� Mensagem 012
2315 R:=R||lpad(rI.cep,5,'0');-- 327 a 331 CEP 005
2316 R:=R||lpad(substr(rI.cep,6,3),3,'0');-- 332 a 334 Sufixo do CEP 003
2317 R:=R||rpad('',60,' ');-- 335 a 394 Sacador/Avalista ou 2� Mensagem 060
2318 R:=R||lpad(i::text,6,'0');-- 395 a 400 N� Seq�encial do Registro 006
2319 R:=R||chr(10);
2320
2321---- SEGUNDA LINHA INFORMACOES
2322
2323 i:=i+1;
2324 R:=R||'2';-- 001 a 001 Tipo Registro 001
2325 R:=R||rpad('Despesas: R$ '||replace(trim(to_char(35.50,'90.00')),'.',','),80,' ');-- 002 a 081 Mensagem 1 080
2326 R:=R||rpad('APOS VENC. PGTO SOMENTE NA SECRETARIA DO CLUBE',80,' ');-- 082 a 161 Mensagem 2 080
2327 R:=R||rpad('',80,' ');-- 162 a 241 Mensagem 3 080
2328 R:=R||rpad('',80,' ');-- 242 a 321 Mensagem 4 080
2329 R:=R||rpad('',45,' ');-- 322 a 366 Reserva 045 filler
2330 R:=R||'009';-- 367 a 369 Carteira 003
2331 R:=R||'03152';-- 370 a 374 Ag�ncia 005
2332 R:=R||'0123666';-- 375 a 381 Conta Corrente 007
2333 R:=R||'0';-- 382 a 382 D�gito C/C 001
2334 R:=R||'00000000000';-- 383 a 393 Nosso N�mero 011
2335 R:=R||'0';-- 394 a 394 DAC Nosso N�mero 001
2336 R:=R||lpad(i::text,6,'0');-- 395 a 400 N� Seq�encial de Registro 006
2337
2338
2339 end loop;
2340return R;
2341end;$_$;
2342
2343
2344
2345pg_restore: creating FUNCTION "public.remessa_criacao(integer)"
2346pg_restore: [archiver (db)] Error from TOC entry 1229; 1255 47395463 FUNCTION remessa_criacao(integer) postgres
2347pg_restore: [archiver (db)] could not execute query: ERROR: function "remessa_criacao" already exists with same argument types
2348 Command was: CREATE FUNCTION public.remessa_criacao(pseq_remessa integer) RETURNS character varying
2349 LANGUAGE plpgsql
2350 AS $$
2351declare
2352 rQ record;
2353 rR record;
2354 vSeqTitulo integer;
2355 vSeqTituloItem integer;
2356 vSeqPessoaAnt integer;
2357 vTotal numeric(30,5);
2358Begin
2359
2360select *
2361 into rQ
2362 from remessa
2363 where seq_remessa=pseq_remessa;
2364
2365delete from cobranca_titulo where seq_cobranca_titulo in ( select seq_cobranca_titulo from cobranca_titulo where seq_remessa=pseq_remessa);
2366delete from cobranca_titulo where seq_remessa=pseq_remessa;
2367
2368
2369/*
2370
2371alter table cobranca_titulo add seq_pessoa integer;
2372alter table cobranca_titulo add seq_remessa integer;
2373
2374ALTER TABLE cobranca_titulo
2375 DROP CONSTRAINT cobranca_cobranca_titulo_fk;
2376ALTER TABLE cobranca_titulo
2377 DROP CONSTRAINT cobranca_retorno_cobranca_titulo_fk;
2378ALTER TABLE cobranca_titulo
2379 ADD CONSTRAINT cobranca_cobranca_titulo_fk FOREIGN KEY (seq_cobranca)
2380 REFERENCES cobranca (seq_cobranca) MATCH SIMPLE
2381 ON UPDATE CASCADE ON DELETE NO ACTION;
2382ALTER TABLE cobranca_titulo
2383 ADD CONSTRAINT cobranca_retorno_cobranca_titulo_fk FOREIGN KEY (seq_cobranca_retorno)
2384 REFERENCES cobranca_retorno (seq_cobranca_retorno) MATCH SIMPLE
2385 ON UPDATE CASCADE ON DELETE NO ACTION;
2386ALTER TABLE cobranca_titulo DROP COLUMN seq_cobranca;
2387
2388ALTER TABLE cobranca_titulo
2389 ADD CONSTRAINT remessa_cobranca_titulo_fk FOREIGN KEY (seq_remessa)
2390 REFERENCES remessa (seq_remessa) MATCH SIMPLE
2391 ON UPDATE CASCADE ON DELETE NO ACTION;
2392
2393ALTER TABLE cobranca_titulo
2394 ALTER COLUMN seq_cobranca_retorno DROP NOT NULL;
2395
2396*/
2397
2398vTotal:=0;
2399vSeqPessoaAnt:=-9;
2400for rQ in select *
2401 from movimento_cobranca as mc
2402 where data_vencimento<=rQ.data_vencimento
2403 and data_pagamento is null
2404 order by seq_pessoa, matricula loop
2405 if vSeqPessoaAnt <> rQ.seq_pessoa then
2406
2407 if vSeqPessoaAnt>0 then
2408 update cobranca_titulo set valor_total=vTotal where seq_titulo=vSeqTitulo;
2409 vTotal:=0;
2410 end if;
2411
2412 vSeqTitulo := nextval('cobranca_titulo_seq_cobranca_titulo_seq');
2413 INSERT INTO cobranca_titulo(
2414 seq_cobranca_titulo, seq_remessa, seq_cobranca_retorno, nosso_numero,
2415 titulo, status, valor_total, valor_pago, valor_desconto, mensagem,
2416 data_pagamento, usuario_alteracao, data_alteracao, seq_pessoa)
2417 VALUES (
2418 vSeqTitulo, --seq_cobranca_titulo,
2419 pseq_remessa,
2420 null, --seq_cobranca_retorno,
2421 null, -- nosso_numero,
2422 null, --titulo,
2423 'Novo', --status,
2424 null, --valor_total,
2425 null, -- valor_pago,
2426 null, --valor_desconto,
2427 null, -- mensagem,
2428 null, -- data_pagamento,
2429 null, -- usuario_alteracao,
2430 now(), --data_alteracao,
2431 rQ.seq_pessoa);
2432
2433 end if;
2434
2435 INSERT INTO cobranca_titulo_item(
2436 seq_cobranca_titulo, valor, seq_movimento_cobranca,
2437 usuario_alteracao, data_alteracao)
2438 VALUES (
2439
2440 vSeqTitulo, --seq_cobranca_titulo,
2441 rQ.valor_devido, -- valor,
2442 rQ.seq_movimento_cobranca,
2443 -899, --usuario_alteracao,
2444 now()); --data_alteracao);
2445
2446 vTotal:=vTotal+ rQ.valor_devido;
2447
2448
2449 end loop;
2450
2451
2452
2453 return 'OK';
2454end;
2455
2456$$;
2457
2458
2459
2460pg_restore: creating AGGREGATE "public.concatenex(text)"
2461pg_restore: [archiver (db)] Error from TOC entry 3727; 1255 47395464 AGGREGATE concatenex(text) postgres
2462pg_restore: [archiver (db)] could not execute query: ERROR: function "concatenex" already exists with same argument types
2463 Command was: CREATE AGGREGATE public.concatenex(text) (
2464 SFUNC = public.concate,
2465 STYPE = text,
2466 FINALFUNC = public.concatefinal
2467);
2468
2469
2470
2471pg_restore: creating TABLE "public.acesso"
2472pg_restore: [archiver (db)] Error from TOC entry 1041; 1259 47400346 TABLE acesso postgres
2473pg_restore: [archiver (db)] could not execute query: ERROR: relation "acesso" already exists
2474 Command was: CREATE TABLE public.acesso (
2475 seq_acesso integer NOT NULL,
2476 codigo character varying(100) NOT NULL,
2477 status character varying(5) NOT NULL,
2478 data_acesso timestamp without time zone,
2479 usuario_alteracao character varying(100),
2480 data_alteracao timestamp without time zone DEFAULT now() NOT NULL,
2481 seq_catraca integer,
2482 tipo character varying(20)
2483);
2484
2485
2486
2487pg_restore: creating TABLE "public.acesso_historico"
2488pg_restore: [archiver (db)] Error from TOC entry 1042; 1259 47400350 TABLE acesso_historico postgres
2489pg_restore: [archiver (db)] could not execute query: ERROR: relation "acesso_historico" already exists
2490 Command was: CREATE TABLE public.acesso_historico (
2491 seq_acesso_historico integer NOT NULL,
2492 codigo character varying(100) NOT NULL,
2493 status character varying(5) NOT NULL,
2494 data_acesso timestamp without time zone,
2495 usuario_alteracao character varying(100),
2496 seq_evento integer,
2497 seq_produto integer,
2498 seq_catraca integer,
2499 data_alteracao timestamp without time zone DEFAULT now() NOT NULL,
2500 tipo character varying(20),
2501 mensegem text
2502);
2503
2504
2505
2506pg_restore: creating SEQUENCE "public.acesso_historico_seq_acesso_historico_seq"
2507pg_restore: [archiver (db)] Error from TOC entry 1043; 1259 47400357 SEQUENCE acesso_historico_seq_acesso_historico_seq postgres
2508pg_restore: [archiver (db)] could not execute query: ERROR: relation "acesso_historico_seq_acesso_historico_seq" already exists
2509 Command was: CREATE SEQUENCE public.acesso_historico_seq_acesso_historico_seq
2510 START WITH 1
2511 INCREMENT BY 1
2512 NO MINVALUE
2513 NO MAXVALUE
2514 CACHE 1;
2515
2516
2517
2518pg_restore: creating SEQUENCE OWNED BY "public.acesso_historico_seq_acesso_historico_seq"
2519pg_restore: creating SEQUENCE "public.acesso_seq_acesso_seq"
2520pg_restore: [archiver (db)] Error from TOC entry 1044; 1259 47400359 SEQUENCE acesso_seq_acesso_seq postgres
2521pg_restore: [archiver (db)] could not execute query: ERROR: relation "acesso_seq_acesso_seq" already exists
2522 Command was: CREATE SEQUENCE public.acesso_seq_acesso_seq
2523 START WITH 1
2524 INCREMENT BY 1
2525 NO MINVALUE
2526 NO MAXVALUE
2527 CACHE 1;
2528
2529
2530
2531pg_restore: creating SEQUENCE OWNED BY "public.acesso_seq_acesso_seq"
2532pg_restore: creating TABLE "public.assento"
2533pg_restore: [archiver (db)] Error from TOC entry 1045; 1259 47400361 TABLE assento postgres
2534pg_restore: [archiver (db)] could not execute query: ERROR: relation "assento" already exists
2535 Command was: CREATE TABLE public.assento (
2536 seq_assento integer NOT NULL,
2537 seq_setor integer NOT NULL,
2538 fila_numero character varying(100),
2539 coordenada_x numeric(30,5),
2540 coordenada_y numeric(30,5),
2541 coordenada_z numeric(30,5),
2542 usuario_alteracao character varying(100) DEFAULT 'golway'::character varying NOT NULL,
2543 data_alteracao timestamp without time zone DEFAULT now() NOT NULL
2544);
2545
2546
2547
2548pg_restore: creating SEQUENCE "public.assento_seq_assento_seq"
2549pg_restore: [archiver (db)] Error from TOC entry 1046; 1259 47400366 SEQUENCE assento_seq_assento_seq postgres
2550pg_restore: [archiver (db)] could not execute query: ERROR: relation "assento_seq_assento_seq" already exists
2551 Command was: CREATE SEQUENCE public.assento_seq_assento_seq
2552 START WITH 1
2553 INCREMENT BY 1
2554 NO MINVALUE
2555 NO MAXVALUE
2556 CACHE 1;
2557
2558
2559
2560pg_restore: creating SEQUENCE OWNED BY "public.assento_seq_assento_seq"
2561pg_restore: creating TABLE "public.baixa"
2562pg_restore: [archiver (db)] Error from TOC entry 1047; 1259 47400368 TABLE baixa postgres
2563pg_restore: [archiver (db)] could not execute query: ERROR: relation "baixa" already exists
2564 Command was: CREATE TABLE public.baixa (
2565 seq_baixa integer NOT NULL,
2566 dt_importacao timestamp without time zone,
2567 qtd_registros bigint,
2568 arquivo character varying
2569);
2570
2571
2572
2573pg_restore: creating SEQUENCE "public.baixa_seq_baixa_seq"
2574pg_restore: [archiver (db)] Error from TOC entry 1048; 1259 47400374 SEQUENCE baixa_seq_baixa_seq postgres
2575pg_restore: [archiver (db)] could not execute query: ERROR: relation "baixa_seq_baixa_seq" already exists
2576 Command was: CREATE SEQUENCE public.baixa_seq_baixa_seq
2577 START WITH 1
2578 INCREMENT BY 1
2579 NO MINVALUE
2580 NO MAXVALUE
2581 CACHE 1;
2582
2583
2584
2585pg_restore: creating SEQUENCE OWNED BY "public.baixa_seq_baixa_seq"
2586pg_restore: creating TABLE "public.bilheteria"
2587pg_restore: [archiver (db)] Error from TOC entry 1049; 1259 47400376 TABLE bilheteria postgres
2588pg_restore: [archiver (db)] could not execute query: ERROR: relation "bilheteria" already exists
2589 Command was: CREATE TABLE public.bilheteria (
2590 seq_bilheteria integer NOT NULL,
2591 nome character varying(100) NOT NULL,
2592 local character varying,
2593 usuario_alteracao character varying(100) NOT NULL,
2594 data_alteracao timestamp without time zone DEFAULT now() NOT NULL,
2595 seq_evento_local integer
2596);
2597
2598
2599
2600pg_restore: creating SEQUENCE "public.bilheteria_seq_bilheteria_seq"
2601pg_restore: [archiver (db)] Error from TOC entry 1050; 1259 47400383 SEQUENCE bilheteria_seq_bilheteria_seq postgres
2602pg_restore: [archiver (db)] could not execute query: ERROR: relation "bilheteria_seq_bilheteria_seq" already exists
2603 Command was: CREATE SEQUENCE public.bilheteria_seq_bilheteria_seq
2604 START WITH 1
2605 INCREMENT BY 1
2606 NO MINVALUE
2607 NO MAXVALUE
2608 CACHE 1;
2609
2610
2611
2612pg_restore: creating SEQUENCE OWNED BY "public.bilheteria_seq_bilheteria_seq"
2613pg_restore: creating TABLE "public.boleto_macro"
2614pg_restore: [archiver (db)] Error from TOC entry 1051; 1259 47400385 TABLE boleto_macro postgres
2615pg_restore: [archiver (db)] could not execute query: ERROR: relation "boleto_macro" already exists
2616 Command was: CREATE TABLE public.boleto_macro (
2617 seq_boleto_macro integer NOT NULL,
2618 matricula integer,
2619 competencia character varying(50),
2620 gerado boolean
2621);
2622
2623
2624
2625pg_restore: creating SEQUENCE "public.boleto_macro_seq_boleto_macro_seq"
2626pg_restore: [archiver (db)] Error from TOC entry 1052; 1259 47400388 SEQUENCE boleto_macro_seq_boleto_macro_seq postgres
2627pg_restore: [archiver (db)] could not execute query: ERROR: relation "boleto_macro_seq_boleto_macro_seq" already exists
2628 Command was: CREATE SEQUENCE public.boleto_macro_seq_boleto_macro_seq
2629 START WITH 1
2630 INCREMENT BY 1
2631 NO MINVALUE
2632 NO MAXVALUE
2633 CACHE 1;
2634
2635
2636
2637pg_restore: creating SEQUENCE OWNED BY "public.boleto_macro_seq_boleto_macro_seq"
2638pg_restore: creating TABLE "public.cadeira"
2639pg_restore: [archiver (db)] Error from TOC entry 1053; 1259 47400390 TABLE cadeira postgres
2640pg_restore: [archiver (db)] could not execute query: ERROR: relation "cadeira" already exists
2641 Command was: CREATE TABLE public.cadeira (
2642 seq_cadeira integer NOT NULL,
2643 cadeira character varying(50),
2644 x integer,
2645 y integer,
2646 z integer,
2647 status character varying(50),
2648 obs text,
2649 usuario_alteracao character varying(100),
2650 data_alteracao timestamp without time zone DEFAULT now()
2651);
2652
2653
2654
2655pg_restore: creating SEQUENCE "public.cadeira_seq_cadeira_seq_1"
2656pg_restore: [archiver (db)] Error from TOC entry 1054; 1259 47400397 SEQUENCE cadeira_seq_cadeira_seq_1 postgres
2657pg_restore: [archiver (db)] could not execute query: ERROR: relation "cadeira_seq_cadeira_seq_1" already exists
2658 Command was: CREATE SEQUENCE public.cadeira_seq_cadeira_seq_1
2659 START WITH 1
2660 INCREMENT BY 1
2661 NO MINVALUE
2662 NO MAXVALUE
2663 CACHE 1;
2664
2665
2666
2667pg_restore: creating SEQUENCE OWNED BY "public.cadeira_seq_cadeira_seq_1"
2668pg_restore: creating TABLE "public.camarote"
2669pg_restore: [archiver (db)] Error from TOC entry 1055; 1259 47400399 TABLE camarote postgres
2670pg_restore: [archiver (db)] could not execute query: ERROR: relation "camarote" already exists
2671 Command was: CREATE TABLE public.camarote (
2672 seq_camarote integer NOT NULL,
2673 nome character varying(200),
2674 quantidade_cadeiras integer,
2675 usuario_alteracao character varying(100),
2676 data_alteracao timestamp without time zone DEFAULT now()
2677);
2678
2679
2680
2681pg_restore: creating SEQUENCE "public.camarote_seq_camarote_seq_1"
2682pg_restore: [archiver (db)] Error from TOC entry 1056; 1259 47400403 SEQUENCE camarote_seq_camarote_seq_1 postgres
2683pg_restore: [archiver (db)] could not execute query: ERROR: relation "camarote_seq_camarote_seq_1" already exists
2684 Command was: CREATE SEQUENCE public.camarote_seq_camarote_seq_1
2685 START WITH 1
2686 INCREMENT BY 1
2687 NO MINVALUE
2688 NO MAXVALUE
2689 CACHE 1;
2690
2691
2692
2693pg_restore: creating SEQUENCE OWNED BY "public.camarote_seq_camarote_seq_1"
2694pg_restore: creating SEQUENCE "public.seq_cartao2"
2695pg_restore: [archiver (db)] Error from TOC entry 1057; 1259 47400405 SEQUENCE seq_cartao2 postgres
2696pg_restore: [archiver (db)] could not execute query: ERROR: relation "seq_cartao2" already exists
2697 Command was: CREATE SEQUENCE public.seq_cartao2
2698 START WITH 2300
2699 INCREMENT BY 1
2700 NO MINVALUE
2701 NO MAXVALUE
2702 CACHE 1;
2703
2704
2705
2706pg_restore: creating TABLE "public.cartao"
2707pg_restore: [archiver (db)] Error from TOC entry 1058; 1259 47400407 TABLE cartao postgres
2708pg_restore: [archiver (db)] could not execute query: ERROR: relation "cartao" already exists
2709 Command was: CREATE TABLE public.cartao (
2710 seq_cartao integer DEFAULT nextval('public.seq_cartao2'::regclass) NOT NULL,
2711 matricula integer NOT NULL,
2712 chip character varying(100),
2713 data_cancelamento timestamp without time zone,
2714 data_sincronia timestamp without time zone,
2715 usuario_alteracao character varying(100),
2716 data_alteracao timestamp without time zone DEFAULT now(),
2717 cod_barra character varying(50)
2718);
2719
2720
2721
2722pg_restore: creating TABLE "public.catraca"
2723pg_restore: [archiver (db)] Error from TOC entry 1059; 1259 47400412 TABLE catraca postgres
2724pg_restore: [archiver (db)] could not execute query: ERROR: relation "catraca" already exists
2725 Command was: CREATE TABLE public.catraca (
2726 seq_catraca integer NOT NULL,
2727 seq_portao integer,
2728 catraca character varying(100) NOT NULL,
2729 ip character varying(100),
2730 usuario_alteracao character varying(100),
2731 data_alteracao timestamp without time zone DEFAULT now(),
2732 nro_catraca integer
2733);
2734
2735
2736
2737pg_restore: creating SEQUENCE "public.catraca_seq_catraca_seq"
2738pg_restore: [archiver (db)] Error from TOC entry 1060; 1259 47400416 SEQUENCE catraca_seq_catraca_seq postgres
2739pg_restore: [archiver (db)] could not execute query: ERROR: relation "catraca_seq_catraca_seq" already exists
2740 Command was: CREATE SEQUENCE public.catraca_seq_catraca_seq
2741 START WITH 1
2742 INCREMENT BY 1
2743 NO MINVALUE
2744 NO MAXVALUE
2745 CACHE 1;
2746
2747
2748
2749pg_restore: creating SEQUENCE OWNED BY "public.catraca_seq_catraca_seq"
2750pg_restore: creating TABLE "public.ci_sessions"
2751pg_restore: [archiver (db)] Error from TOC entry 1061; 1259 47400418 TABLE ci_sessions postgres
2752pg_restore: [archiver (db)] could not execute query: ERROR: relation "ci_sessions" already exists
2753 Command was: CREATE TABLE public.ci_sessions (
2754 session_id character varying(40) DEFAULT '0'::character varying NOT NULL,
2755 ip_address character varying(45) DEFAULT '0'::character varying NOT NULL,
2756 user_agent character varying(120) NOT NULL,
2757 last_activity integer DEFAULT 0 NOT NULL,
2758 user_data text NOT NULL
2759);
2760
2761
2762
2763pg_restore: creating TABLE "public.clube"
2764pg_restore: [archiver (db)] Error from TOC entry 1062; 1259 47400427 TABLE clube postgres
2765pg_restore: [archiver (db)] could not execute query: ERROR: relation "clube" already exists
2766 Command was: CREATE TABLE public.clube (
2767 seq_clube integer NOT NULL,
2768 nome character varying(100) NOT NULL,
2769 logo character varying(255),
2770 usuario_alteracao character varying(100) DEFAULT 'golway'::character varying NOT NULL,
2771 data_alteracao timestamp without time zone DEFAULT now() NOT NULL
2772);
2773
2774
2775
2776pg_restore: creating SEQUENCE "public.clube_seq_clube_seq"
2777pg_restore: [archiver (db)] Error from TOC entry 1063; 1259 47400432 SEQUENCE clube_seq_clube_seq postgres
2778pg_restore: [archiver (db)] could not execute query: ERROR: relation "clube_seq_clube_seq" already exists
2779 Command was: CREATE SEQUENCE public.clube_seq_clube_seq
2780 START WITH 1
2781 INCREMENT BY 1
2782 NO MINVALUE
2783 NO MAXVALUE
2784 CACHE 1;
2785
2786
2787
2788pg_restore: creating SEQUENCE OWNED BY "public.clube_seq_clube_seq"
2789pg_restore: creating TABLE "public.cobranca"
2790pg_restore: [archiver (db)] Error from TOC entry 1064; 1259 47400434 TABLE cobranca postgres
2791pg_restore: [archiver (db)] could not execute query: ERROR: relation "cobranca" already exists
2792 Command was: CREATE TABLE public.cobranca (
2793 seq_cobranca integer NOT NULL,
2794 descricao character varying(200),
2795 data_vencimento date,
2796 data_envio timestamp without time zone,
2797 data_retorno timestamp without time zone,
2798 seq_instituicao_financeira integer,
2799 obs text,
2800 usuario_alteracao character varying(100),
2801 data_alteracao timestamp without time zone DEFAULT now()
2802);
2803
2804
2805
2806pg_restore: creating TABLE "public.cobranca_retorno"
2807pg_restore: [archiver (db)] Error from TOC entry 1065; 1259 47400441 TABLE cobranca_retorno postgres
2808pg_restore: [archiver (db)] could not execute query: ERROR: relation "cobranca_retorno" already exists
2809 Command was: CREATE TABLE public.cobranca_retorno (
2810 seq_cobranca_retorno integer NOT NULL,
2811 titulo character varying(200),
2812 nosso_numero character varying(100),
2813 data_retorno timestamp without time zone DEFAULT now(),
2814 usuario_alteracao character varying(100),
2815 data_alteracao timestamp without time zone DEFAULT now(),
2816 dt_retorno timestamp with time zone,
2817 cod_ocorrencia character varying(2),
2818 dt_ocorrecia date,
2819 dt_vencimento date,
2820 vlr_vencimento character varying(13),
2821 tp_documento character varying(2),
2822 vlr_desp_cob character varying(13),
2823 vlr_desp_out character varying(13),
2824 vlr_pago character varying(13),
2825 vlr_juros character varying(13),
2826 vlr_out character varying(13),
2827 vlr_desconto character varying(13),
2828 dt_credito date,
2829 nro_doc_empresa character varying(10),
2830 identificador character varying(50),
2831 dt_lido_sistema timestamp without time zone,
2832 seq_baixa integer
2833);
2834
2835
2836
2837pg_restore: creating SEQUENCE "public.cobranca_retorno_seq_cobranca_retorno_seq_1"
2838pg_restore: [archiver (db)] Error from TOC entry 1066; 1259 47400446 SEQUENCE cobranca_retorno_seq_cobranca_retorno_seq_1 postgres
2839pg_restore: [archiver (db)] could not execute query: ERROR: relation "cobranca_retorno_seq_cobranca_retorno_seq_1" already exists
2840 Command was: CREATE SEQUENCE public.cobranca_retorno_seq_cobranca_retorno_seq_1
2841 START WITH 1
2842 INCREMENT BY 1
2843 NO MINVALUE
2844 NO MAXVALUE
2845 CACHE 1;
2846
2847
2848
2849pg_restore: creating SEQUENCE OWNED BY "public.cobranca_retorno_seq_cobranca_retorno_seq_1"
2850pg_restore: creating SEQUENCE "public.cobranca_seq_cobranca_seq"
2851pg_restore: [archiver (db)] Error from TOC entry 1067; 1259 47400448 SEQUENCE cobranca_seq_cobranca_seq postgres
2852pg_restore: [archiver (db)] could not execute query: ERROR: relation "cobranca_seq_cobranca_seq" already exists
2853 Command was: CREATE SEQUENCE public.cobranca_seq_cobranca_seq
2854 START WITH 1
2855 INCREMENT BY 1
2856 NO MINVALUE
2857 NO MAXVALUE
2858 CACHE 1;
2859
2860
2861
2862pg_restore: creating SEQUENCE OWNED BY "public.cobranca_seq_cobranca_seq"
2863pg_restore: creating TABLE "public.cobranca_titulo"
2864pg_restore: [archiver (db)] Error from TOC entry 1068; 1259 47400450 TABLE cobranca_titulo postgres
2865pg_restore: [archiver (db)] could not execute query: ERROR: relation "cobranca_titulo" already exists
2866 Command was: CREATE TABLE public.cobranca_titulo (
2867 seq_cobranca_titulo integer NOT NULL,
2868 seq_cobranca_retorno integer,
2869 nosso_numero character varying(100),
2870 titulo character varying(200),
2871 status character varying(10),
2872 valor_total numeric(20,5),
2873 valor_pago numeric(20,5),
2874 valor_desconto numeric(20,5),
2875 mensagem text,
2876 data_pagamento timestamp without time zone,
2877 usuario_alteracao character varying(100),
2878 data_alteracao timestamp without time zone DEFAULT now(),
2879 seq_pessoa integer,
2880 seq_remessa integer,
2881 seq_movimento integer,
2882 dt_vencimento date
2883);
2884
2885
2886
2887pg_restore: creating TABLE "public.cobranca_titulo_item"
2888pg_restore: [archiver (db)] Error from TOC entry 1069; 1259 47400457 TABLE cobranca_titulo_item postgres
2889pg_restore: [archiver (db)] could not execute query: ERROR: relation "cobranca_titulo_item" already exists
2890 Command was: CREATE TABLE public.cobranca_titulo_item (
2891 seq_cobranca_titulo_item integer NOT NULL,
2892 seq_cobranca_titulo integer NOT NULL,
2893 valor numeric(20,5),
2894 seq_movimento_cobranca integer,
2895 usuario_alteracao character varying(100),
2896 data_alteracao timestamp without time zone DEFAULT now()
2897);
2898
2899
2900
2901pg_restore: creating SEQUENCE "public.cobranca_titulo_item_seq_cobranca_titulo_item_seq_1"
2902pg_restore: [archiver (db)] Error from TOC entry 1070; 1259 47400461 SEQUENCE cobranca_titulo_item_seq_cobranca_titulo_item_seq_1 postgres
2903pg_restore: [archiver (db)] could not execute query: ERROR: relation "cobranca_titulo_item_seq_cobranca_titulo_item_seq_1" already exists
2904 Command was: CREATE SEQUENCE public.cobranca_titulo_item_seq_cobranca_titulo_item_seq_1
2905 START WITH 1
2906 INCREMENT BY 1
2907 NO MINVALUE
2908 NO MAXVALUE
2909 CACHE 1;
2910
2911
2912
2913pg_restore: creating SEQUENCE OWNED BY "public.cobranca_titulo_item_seq_cobranca_titulo_item_seq_1"
2914pg_restore: creating SEQUENCE "public.cobranca_titulo_seq_cobranca_titulo_seq"
2915pg_restore: [archiver (db)] Error from TOC entry 1071; 1259 47400463 SEQUENCE cobranca_titulo_seq_cobranca_titulo_seq postgres
2916pg_restore: [archiver (db)] could not execute query: ERROR: relation "cobranca_titulo_seq_cobranca_titulo_seq" already exists
2917 Command was: CREATE SEQUENCE public.cobranca_titulo_seq_cobranca_titulo_seq
2918 START WITH 1
2919 INCREMENT BY 1
2920 NO MINVALUE
2921 NO MAXVALUE
2922 CACHE 1;
2923
2924
2925
2926pg_restore: creating SEQUENCE OWNED BY "public.cobranca_titulo_seq_cobranca_titulo_seq"
2927pg_restore: creating TABLE "public.competencia"
2928pg_restore: [archiver (db)] Error from TOC entry 1072; 1259 47400465 TABLE competencia postgres
2929pg_restore: [archiver (db)] could not execute query: ERROR: relation "competencia" already exists
2930 Command was: CREATE TABLE public.competencia (
2931 data_ini date,
2932 data_fim date,
2933 competencia character varying(10) NOT NULL,
2934 usuario_alteracao character varying(100),
2935 data_alteracao timestamp without time zone DEFAULT now() NOT NULL,
2936 periodicidade character varying
2937);
2938
2939
2940
2941pg_restore: creating TABLE "public.competicao"
2942pg_restore: [archiver (db)] Error from TOC entry 1073; 1259 47400472 TABLE competicao postgres
2943pg_restore: [archiver (db)] could not execute query: ERROR: relation "competicao" already exists
2944 Command was: CREATE TABLE public.competicao (
2945 seq_competicao integer NOT NULL,
2946 nome character varying(100) NOT NULL,
2947 observacao character varying,
2948 usuario_alteracao character varying(100) DEFAULT 'golway'::character varying NOT NULL,
2949 data_alteracao timestamp without time zone DEFAULT now() NOT NULL
2950);
2951
2952
2953
2954pg_restore: creating TABLE "public.competicao_edicao"
2955pg_restore: [archiver (db)] Error from TOC entry 1074; 1259 47400480 TABLE competicao_edicao postgres
2956pg_restore: [archiver (db)] could not execute query: ERROR: relation "competicao_edicao" already exists
2957 Command was: CREATE TABLE public.competicao_edicao (
2958 seq_competicao_edicao integer NOT NULL,
2959 ano_base integer NOT NULL,
2960 dt_inicio date NOT NULL,
2961 observacao character varying,
2962 dt_fim date,
2963 seq_competicao integer NOT NULL,
2964 usuario_alteracao character varying(100) DEFAULT 'golway'::character varying NOT NULL,
2965 data_alteracao timestamp without time zone DEFAULT now() NOT NULL
2966);
2967
2968
2969
2970pg_restore: creating SEQUENCE "public.competicao_edicao_seq_competicao_edicao_seq"
2971pg_restore: [archiver (db)] Error from TOC entry 1075; 1259 47400488 SEQUENCE competicao_edicao_seq_competicao_edicao_seq postgres
2972pg_restore: [archiver (db)] could not execute query: ERROR: relation "competicao_edicao_seq_competicao_edicao_seq" already exists
2973 Command was: CREATE SEQUENCE public.competicao_edicao_seq_competicao_edicao_seq
2974 START WITH 1
2975 INCREMENT BY 1
2976 NO MINVALUE
2977 NO MAXVALUE
2978 CACHE 1;
2979
2980
2981
2982pg_restore: creating SEQUENCE OWNED BY "public.competicao_edicao_seq_competicao_edicao_seq"
2983pg_restore: creating SEQUENCE "public.competicao_seq_competicao_seq"
2984pg_restore: [archiver (db)] Error from TOC entry 1076; 1259 47400490 SEQUENCE competicao_seq_competicao_seq postgres
2985pg_restore: [archiver (db)] could not execute query: ERROR: relation "competicao_seq_competicao_seq" already exists
2986 Command was: CREATE SEQUENCE public.competicao_seq_competicao_seq
2987 START WITH 1
2988 INCREMENT BY 1
2989 NO MINVALUE
2990 NO MAXVALUE
2991 CACHE 1;
2992
2993
2994
2995pg_restore: creating SEQUENCE OWNED BY "public.competicao_seq_competicao_seq"
2996pg_restore: creating TABLE "public.conta"
2997pg_restore: [archiver (db)] Error from TOC entry 1077; 1259 47400492 TABLE conta postgres
2998pg_restore: [archiver (db)] could not execute query: ERROR: relation "conta" already exists
2999 Command was: CREATE TABLE public.conta (
3000 seq_conta integer DEFAULT nextval(('seq_conta'::text)::regclass) NOT NULL,
3001 esq integer,
3002 nome character varying(100) NOT NULL,
3003 data_geracao timestamp without time zone DEFAULT now() NOT NULL,
3004 usuario_alteracao character varying(100) NOT NULL,
3005 dir integer,
3006 nivel integer,
3007 conta_pai integer,
3008 caminho text,
3009 cod_contabil bigint,
3010 cod_centro_custo bigint,
3011 cod_usuario_alteracao integer
3012);
3013
3014
3015
3016pg_restore: creating TABLE "public.dbf_cartoes_ecnh"
3017pg_restore: [archiver (db)] Error from TOC entry 1078; 1259 47400500 TABLE dbf_cartoes_ecnh postgres
3018pg_restore: [archiver (db)] could not execute query: ERROR: relation "dbf_cartoes_ecnh" already exists
3019 Command was: CREATE TABLE public.dbf_cartoes_ecnh (
3020 nrident character varying(255),
3021 barra character varying(255),
3022 tipoident character varying(255),
3023 matricula character varying(255),
3024 nome character varying(255),
3025 chave character varying(255),
3026 chavedes character varying(255),
3027 categoria character varying(255),
3028 status character varying(255),
3029 dtstatus character varying(255),
3030 tipolayout character varying(255)
3031);
3032
3033
3034
3035pg_restore: creating TABLE "public.dbf_pessoas_ecnh"
3036pg_restore: [archiver (db)] Error from TOC entry 1079; 1259 47400506 TABLE dbf_pessoas_ecnh postgres
3037pg_restore: [archiver (db)] could not execute query: ERROR: relation "dbf_pessoas_ecnh" already exists
3038 Command was: CREATE TABLE public.dbf_pessoas_ecnh (
3039 tipo character varying(255),
3040 matricula character varying(255),
3041 nome character varying(255),
3042pg_restore: [archiver (db)] could not execute query: ERROR: relation "acesso" already exists
3043 Command was: CREATE TABLE public.acesso (
3044 seq_acesso integer NOT NULL,
3045 codigo character varying(100) NOT NULL,
3046 status character varying(5) NOT NULL,
3047 data_acesso timestamp without time zone,
3048 usuario_alteracao character varying(100),
3049 data_alteracao timestamp without time zone DEFAULT now() NOT NULL,
3050 seq_catraca integer,
3051 tipo character varying(20)
3052);
3053
3054
3055
3056pg_restore: creating TABLE "public.acesso_historico"
3057pg_restore: [archiver (db)] Error from TOC entry 1042; 1259 47400350 TABLE acesso_historico postgres
3058pg_restore: [archiver (db)] could not execute query: ERROR: relation "acesso_historico" already exists
3059 Command was: CREATE TABLE public.acesso_historico (
3060 seq_acesso_historico integer NOT NULL,
3061 codigo character varying(100) NOT NULL,
3062 status character varying(5) NOT NULL,
3063 data_acesso timestamp without time zone,
3064 usuario_alteracao character varying(100),
3065 seq_evento integer,
3066 seq_produto integer,
3067 seq_catraca integer,
3068 data_alteracao timestamp without time zone DEFAULT now() NOT NULL,
3069 tipo character varying(20),
3070 mensegem text
3071);
3072
3073
3074
3075pg_restore: creating SEQUENCE "public.acesso_historico_seq_acesso_historico_seq"
3076pg_restore: [archiver (db)] Error from TOC entry 1043; 1259 47400357 SEQUENCE acesso_historico_seq_acesso_historico_seq postgres
3077pg_restore: [archiver (db)] could not execute query: ERROR: relation "acesso_historico_seq_acesso_historico_seq" already exists
3078 Command was: CREATE SEQUENCE public.acesso_historico_seq_acesso_historico_seq
3079 START WITH 1
3080 INCREMENT BY 1
3081 NO MINVALUE
3082 NO MAXVALUE
3083 CACHE 1;
3084
3085
3086
3087pg_restore: creating SEQUENCE OWNED BY "public.acesso_historico_seq_acesso_historico_seq"
3088pg_restore: creating SEQUENCE "public.acesso_seq_acesso_seq"
3089pg_restore: [archiver (db)] Error from TOC entry 1044; 1259 47400359 SEQUENCE acesso_seq_acesso_seq postgres
3090pg_restore: [archiver (db)] could not execute query: ERROR: relation "acesso_seq_acesso_seq" already exists
3091 Command was: CREATE SEQUENCE public.acesso_seq_acesso_seq
3092 START WITH 1
3093 INCREMENT BY 1
3094 NO MINVALUE
3095 NO MAXVALUE
3096 CACHE 1;
3097
3098
3099
3100pg_restore: creating SEQUENCE OWNED BY "public.acesso_seq_acesso_seq"
3101pg_restore: creating TABLE "public.assento"
3102pg_restore: [archiver (db)] Error from TOC entry 1045; 1259 47400361 TABLE assento postgres
3103pg_restore: [archiver (db)] could not execute query: ERROR: relation "assento" already exists
3104 Command was: CREATE TABLE public.assento (
3105 seq_assento integer NOT NULL,
3106 seq_setor integer NOT NULL,
3107 fila_numero character varying(100),
3108 coordenada_x numeric(30,5),
3109 coordenada_y numeric(30,5),
3110 coordenada_z numeric(30,5),
3111 usuario_alteracao character varying(100) DEFAULT 'golway'::character varying NOT NULL,
3112 data_alteracao timestamp without time zone DEFAULT now() NOT NULL
3113);
3114
3115
3116
3117pg_restore: creating SEQUENCE "public.assento_seq_assento_seq"
3118pg_restore: [archiver (db)] Error from TOC entry 1046; 1259 47400366 SEQUENCE assento_seq_assento_seq postgres
3119pg_restore: [archiver (db)] could not execute query: ERROR: relation "assento_seq_assento_seq" already exists
3120 Command was: CREATE SEQUENCE public.assento_seq_assento_seq
3121 START WITH 1
3122 INCREMENT BY 1
3123 NO MINVALUE
3124 NO MAXVALUE
3125 CACHE 1;
3126
3127
3128
3129pg_restore: creating SEQUENCE OWNED BY "public.assento_seq_assento_seq"
3130pg_restore: creating TABLE "public.baixa"
3131pg_restore: [archiver (db)] Error from TOC entry 1047; 1259 47400368 TABLE baixa postgres
3132pg_restore: [archiver (db)] could not execute query: ERROR: relation "baixa" already exists
3133 Command was: CREATE TABLE public.baixa (
3134 seq_baixa integer NOT NULL,
3135 dt_importacao timestamp without time zone,
3136 qtd_registros bigint,
3137 arquivo character varying
3138);
3139
3140
3141
3142pg_restore: creating SEQUENCE "public.baixa_seq_baixa_seq"
3143pg_restore: [archiver (db)] Error from TOC entry 1048; 1259 47400374 SEQUENCE baixa_seq_baixa_seq postgres
3144pg_restore: [archiver (db)] could not execute query: ERROR: relation "baixa_seq_baixa_seq" already exists
3145 Command was: CREATE SEQUENCE public.baixa_seq_baixa_seq
3146 START WITH 1
3147 INCREMENT BY 1
3148 NO MINVALUE
3149 NO MAXVALUE
3150 CACHE 1;
3151
3152
3153
3154pg_restore: creating SEQUENCE OWNED BY "public.baixa_seq_baixa_seq"
3155pg_restore: creating TABLE "public.bilheteria"
3156pg_restore: [archiver (db)] Error from TOC entry 1049; 1259 47400376 TABLE bilheteria postgres
3157pg_restore: [archiver (db)] could not execute query: ERROR: relation "bilheteria" already exists
3158 Command was: CREATE TABLE public.bilheteria (
3159 seq_bilheteria integer NOT NULL,
3160 nome character varying(100) NOT NULL,
3161 local character varying,
3162 usuario_alteracao character varying(100) NOT NULL,
3163 data_alteracao timestamp without time zone DEFAULT now() NOT NULL,
3164 seq_evento_local integer
3165);
3166
3167
3168
3169pg_restore: creating SEQUENCE "public.bilheteria_seq_bilheteria_seq"
3170pg_restore: [archiver (db)] Error from TOC entry 1050; 1259 47400383 SEQUENCE bilheteria_seq_bilheteria_seq postgres
3171pg_restore: [archiver (db)] could not execute query: ERROR: relation "bilheteria_seq_bilheteria_seq" already exists
3172 Command was: CREATE SEQUENCE public.bilheteria_seq_bilheteria_seq
3173 START WITH 1
3174 INCREMENT BY 1
3175 NO MINVALUE
3176 NO MAXVALUE
3177 CACHE 1;
3178
3179
3180
3181pg_restore: creating SEQUENCE OWNED BY "public.bilheteria_seq_bilheteria_seq"
3182pg_restore: creating TABLE "public.boleto_macro"
3183pg_restore: [archiver (db)] Error from TOC entry 1051; 1259 47400385 TABLE boleto_macro postgres
3184pg_restore: [archiver (db)] could not execute query: ERROR: relation "boleto_macro" already exists
3185 Command was: CREATE TABLE public.boleto_macro (
3186 seq_boleto_macro integer NOT NULL,
3187 matricula integer,
3188 competencia character varying(50),
3189 gerado boolean
3190);
3191
3192
3193
3194pg_restore: creating SEQUENCE "public.boleto_macro_seq_boleto_macro_seq"
3195pg_restore: [archiver (db)] Error from TOC entry 1052; 1259 47400388 SEQUENCE boleto_macro_seq_boleto_macro_seq postgres
3196pg_restore: [archiver (db)] could not execute query: ERROR: relation "boleto_macro_seq_boleto_macro_seq" already exists
3197 Command was: CREATE SEQUENCE public.boleto_macro_seq_boleto_macro_seq
3198 START WITH 1
3199 INCREMENT BY 1
3200 NO MINVALUE
3201 NO MAXVALUE
3202 CACHE 1;
3203
3204
3205
3206pg_restore: creating SEQUENCE OWNED BY "public.boleto_macro_seq_boleto_macro_seq"
3207pg_restore: creating TABLE "public.cadeira"
3208pg_restore: [archiver (db)] Error from TOC entry 1053; 1259 47400390 TABLE cadeira postgres
3209pg_restore: [archiver (db)] could not execute query: ERROR: relation "cadeira" already exists
3210 Command was: CREATE TABLE public.cadeira (
3211 seq_cadeira integer NOT NULL,
3212 cadeira character varying(50),
3213 x integer,
3214 y integer,
3215 z integer,
3216 status character varying(50),
3217 obs text,
3218 usuario_alteracao character varying(100),
3219 data_alteracao timestamp without time zone DEFAULT now()
3220);
3221
3222
3223
3224pg_restore: creating SEQUENCE "public.cadeira_seq_cadeira_seq_1"
3225pg_restore: [archiver (db)] Error from TOC entry 1054; 1259 47400397 SEQUENCE cadeira_seq_cadeira_seq_1 postgres
3226pg_restore: [archiver (db)] could not execute query: ERROR: relation "cadeira_seq_cadeira_seq_1" already exists
3227 Command was: CREATE SEQUENCE public.cadeira_seq_cadeira_seq_1
3228 START WITH 1
3229 INCREMENT BY 1
3230 NO MINVALUE
3231 NO MAXVALUE
3232 CACHE 1;
3233
3234
3235
3236pg_restore: creating SEQUENCE OWNED BY "public.cadeira_seq_cadeira_seq_1"
3237pg_restore: creating TABLE "public.camarote"
3238pg_restore: [archiver (db)] Error from TOC entry 1055; 1259 47400399 TABLE camarote postgres
3239pg_restore: [archiver (db)] could not execute query: ERROR: relation "camarote" already exists
3240 Command was: CREATE TABLE public.camarote (
3241 seq_camarote integer NOT NULL,
3242 nome character varying(200),
3243 quantidade_cadeiras integer,
3244 usuario_alteracao character varying(100),
3245 data_alteracao timestamp without time zone DEFAULT now()
3246);
3247
3248
3249
3250pg_restore: creating SEQUENCE "public.camarote_seq_camarote_seq_1"
3251pg_restore: [archiver (db)] Error from TOC entry 1056; 1259 47400403 SEQUENCE camarote_seq_camarote_seq_1 postgres
3252pg_restore: [archiver (db)] could not execute query: ERROR: relation "camarote_seq_camarote_seq_1" already exists
3253 Command was: CREATE SEQUENCE public.camarote_seq_camarote_seq_1
3254 START WITH 1
3255 INCREMENT BY 1
3256 NO MINVALUE
3257 NO MAXVALUE
3258 CACHE 1;
3259
3260
3261
3262pg_restore: creating SEQUENCE OWNED BY "public.camarote_seq_camarote_seq_1"
3263pg_restore: creating SEQUENCE "public.seq_cartao2"
3264pg_restore: [archiver (db)] Error from TOC entry 1057; 1259 47400405 SEQUENCE seq_cartao2 postgres
3265pg_restore: [archiver (db)] could not execute query: ERROR: relation "seq_cartao2" already exists
3266 Command was: CREATE SEQUENCE public.seq_cartao2
3267 START WITH 2300
3268 INCREMENT BY 1
3269 NO MINVALUE
3270 NO MAXVALUE
3271 CACHE 1;
3272
3273
3274
3275pg_restore: creating TABLE "public.cartao"
3276pg_restore: [archiver (db)] Error from TOC entry 1058; 1259 47400407 TABLE cartao postgres
3277pg_restore: [archiver (db)] could not execute query: ERROR: relation "cartao" already exists
3278 Command was: CREATE TABLE public.cartao (
3279 seq_cartao integer DEFAULT nextval('public.seq_cartao2'::regclass) NOT NULL,
3280 matricula integer NOT NULL,
3281 chip character varying(100),
3282 data_cancelamento timestamp without time zone,
3283 data_sincronia timestamp without time zone,
3284 usuario_alteracao character varying(100),
3285 data_alteracao timestamp without time zone DEFAULT now(),
3286 cod_barra character varying(50)
3287);
3288
3289
3290
3291pg_restore: creating TABLE "public.catraca"
3292pg_restore: [archiver (db)] Error from TOC entry 1059; 1259 47400412 TABLE catraca postgres
3293pg_restore: [archiver (db)] could not execute query: ERROR: relation "catraca" already exists
3294 Command was: CREATE TABLE public.catraca (
3295 seq_catraca integer NOT NULL,
3296 seq_portao integer,
3297 catraca character varying(100) NOT NULL,
3298 ip character varying(100),
3299 usuario_alteracao character varying(100),
3300 data_alteracao timestamp without time zone DEFAULT now(),
3301 nro_catraca integer
3302);
3303
3304
3305
3306pg_restore: creating SEQUENCE "public.catraca_seq_catraca_seq"
3307pg_restore: [archiver (db)] Error from TOC entry 1060; 1259 47400416 SEQUENCE catraca_seq_catraca_seq postgres
3308pg_restore: [archiver (db)] could not execute query: ERROR: relation "catraca_seq_catraca_seq" already exists
3309 Command was: CREATE SEQUENCE public.catraca_seq_catraca_seq
3310 START WITH 1
3311 INCREMENT BY 1
3312 NO MINVALUE
3313 NO MAXVALUE
3314 CACHE 1;
3315
3316
3317
3318pg_restore: creating SEQUENCE OWNED BY "public.catraca_seq_catraca_seq"
3319pg_restore: creating TABLE "public.ci_sessions"
3320pg_restore: [archiver (db)] Error from TOC entry 1061; 1259 47400418 TABLE ci_sessions postgres
3321pg_restore: [archiver (db)] could not execute query: ERROR: relation "ci_sessions" already exists
3322 Command was: CREATE TABLE public.ci_sessions (
3323 session_id character varying(40) DEFAULT '0'::character varying NOT NULL,
3324 ip_address character varying(45) DEFAULT '0'::character varying NOT NULL,
3325 user_agent character varying(120) NOT NULL,
3326 last_activity integer DEFAULT 0 NOT NULL,
3327 user_data text NOT NULL
3328);
3329
3330
3331
3332pg_restore: creating TABLE "public.clube"
3333pg_restore: [archiver (db)] Error from TOC entry 1062; 1259 47400427 TABLE clube postgres
3334pg_restore: [archiver (db)] could not execute query: ERROR: relation "clube" already exists
3335 Command was: CREATE TABLE public.clube (
3336 seq_clube integer NOT NULL,
3337 nome character varying(100) NOT NULL,
3338 logo character varying(255),
3339 usuario_alteracao character varying(100) DEFAULT 'golway'::character varying NOT NULL,
3340 data_alteracao timestamp without time zone DEFAULT now() NOT NULL
3341);
3342
3343
3344
3345pg_restore: creating SEQUENCE "public.clube_seq_clube_seq"
3346pg_restore: [archiver (db)] Error from TOC entry 1063; 1259 47400432 SEQUENCE clube_seq_clube_seq postgres
3347pg_restore: [archiver (db)] could not execute query: ERROR: relation "clube_seq_clube_seq" already exists
3348 Command was: CREATE SEQUENCE public.clube_seq_clube_seq
3349 START WITH 1
3350 INCREMENT BY 1
3351 NO MINVALUE
3352 NO MAXVALUE
3353 CACHE 1;
3354
3355
3356
3357pg_restore: creating SEQUENCE OWNED BY "public.clube_seq_clube_seq"
3358pg_restore: creating TABLE "public.cobranca"
3359pg_restore: [archiver (db)] Error from TOC entry 1064; 1259 47400434 TABLE cobranca postgres
3360pg_restore: [archiver (db)] could not execute query: ERROR: relation "cobranca" already exists
3361 Command was: CREATE TABLE public.cobranca (
3362 seq_cobranca integer NOT NULL,
3363 descricao character varying(200),
3364 data_vencimento date,
3365 data_envio timestamp without time zone,
3366 data_retorno timestamp without time zone,
3367 seq_instituicao_financeira integer,
3368 obs text,
3369 usuario_alteracao character varying(100),
3370 data_alteracao timestamp without time zone DEFAULT now()
3371);
3372
3373
3374
3375pg_restore: creating TABLE "public.cobranca_retorno"
3376pg_restore: [archiver (db)] Error from TOC entry 1065; 1259 47400441 TABLE cobranca_retorno postgres
3377pg_restore: [archiver (db)] could not execute query: ERROR: relation "cobranca_retorno" already exists
3378 Command was: CREATE TABLE public.cobranca_retorno (
3379 seq_cobranca_retorno integer NOT NULL,
3380 titulo character varying(200),
3381 nosso_numero character varying(100),
3382 data_retorno timestamp without time zone DEFAULT now(),
3383 usuario_alteracao character varying(100),
3384 data_alteracao timestamp without time zone DEFAULT now(),
3385 dt_retorno timestamp with time zone,
3386 cod_ocorrencia character varying(2),
3387 dt_ocorrecia date,
3388 dt_vencimento date,
3389 vlr_vencimento character varying(13),
3390 tp_documento character varying(2),
3391 vlr_desp_cob character varying(13),
3392 vlr_desp_out character varying(13),
3393 vlr_pago character varying(13),
3394 vlr_juros character varying(13),
3395 vlr_out character varying(13),
3396 vlr_desconto character varying(13),
3397 dt_credito date,
3398 nro_doc_empresa character varying(10),
3399 identificador character varying(50),
3400 dt_lido_sistema timestamp without time zone,
3401 seq_baixa integer
3402);
3403
3404
3405
3406pg_restore: creating SEQUENCE "public.cobranca_retorno_seq_cobranca_retorno_seq_1"
3407pg_restore: [archiver (db)] Error from TOC entry 1066; 1259 47400446 SEQUENCE cobranca_retorno_seq_cobranca_retorno_seq_1 postgres
3408pg_restore: [archiver (db)] could not execute query: ERROR: relation "cobranca_retorno_seq_cobranca_retorno_seq_1" already exists
3409 Command was: CREATE SEQUENCE public.cobranca_retorno_seq_cobranca_retorno_seq_1
3410 START WITH 1
3411 INCREMENT BY 1
3412 NO MINVALUE
3413 NO MAXVALUE
3414 CACHE 1;
3415
3416
3417
3418pg_restore: creating SEQUENCE OWNED BY "public.cobranca_retorno_seq_cobranca_retorno_seq_1"
3419pg_restore: creating SEQUENCE "public.cobranca_seq_cobranca_seq"
3420pg_restore: [archiver (db)] Error from TOC entry 1067; 1259 47400448 SEQUENCE cobranca_seq_cobranca_seq postgres
3421pg_restore: [archiver (db)] could not execute query: ERROR: relation "cobranca_seq_cobranca_seq" already exists
3422 Command was: CREATE SEQUENCE public.cobranca_seq_cobranca_seq
3423 START WITH 1
3424 INCREMENT BY 1
3425 NO MINVALUE
3426 NO MAXVALUE
3427 CACHE 1;
3428
3429
3430
3431pg_restore: creating SEQUENCE OWNED BY "public.cobranca_seq_cobranca_seq"
3432pg_restore: creating TABLE "public.cobranca_titulo"
3433pg_restore: [archiver (db)] Error from TOC entry 1068; 1259 47400450 TABLE cobranca_titulo postgres
3434pg_restore: [archiver (db)] could not execute query: ERROR: relation "cobranca_titulo" already exists
3435 Command was: CREATE TABLE public.cobranca_titulo (
3436 seq_cobranca_titulo integer NOT NULL,
3437 seq_cobranca_retorno integer,
3438 nosso_numero character varying(100),
3439 titulo character varying(200),
3440 status character varying(10),
3441 valor_total numeric(20,5),
3442 valor_pago numeric(20,5),
3443 valor_desconto numeric(20,5),
3444 mensagem text,
3445 data_pagamento timestamp without time zone,
3446 usuario_alteracao character varying(100),
3447 data_alteracao timestamp without time zone DEFAULT now(),
3448 seq_pessoa integer,
3449 seq_remessa integer,
3450 seq_movimento integer,
3451 dt_vencimento date
3452);
3453
3454
3455
3456pg_restore: creating TABLE "public.cobranca_titulo_item"
3457pg_restore: [archiver (db)] Error from TOC entry 1069; 1259 47400457 TABLE cobranca_titulo_item postgres
3458pg_restore: [archiver (db)] could not execute query: ERROR: relation "cobranca_titulo_item" already exists
3459 Command was: CREATE TABLE public.cobranca_titulo_item (
3460 seq_cobranca_titulo_item integer NOT NULL,
3461 seq_cobranca_titulo integer NOT NULL,
3462 valor numeric(20,5),
3463 seq_movimento_cobranca integer,
3464 usuario_alteracao character varying(100),
3465 data_alteracao timestamp without time zone DEFAULT now()
3466);
3467
3468
3469
3470pg_restore: creating SEQUENCE "public.cobranca_titulo_item_seq_cobranca_titulo_item_seq_1"
3471pg_restore: [archiver (db)] Error from TOC entry 1070; 1259 47400461 SEQUENCE cobranca_titulo_item_seq_cobranca_titulo_item_seq_1 postgres
3472pg_restore: [archiver (db)] could not execute query: ERROR: relation "cobranca_titulo_item_seq_cobranca_titulo_item_seq_1" already exists
3473 Command was: CREATE SEQUENCE public.cobranca_titulo_item_seq_cobranca_titulo_item_seq_1
3474 START WITH 1
3475 INCREMENT BY 1
3476 NO MINVALUE
3477 NO MAXVALUE
3478 CACHE 1;
3479
3480
3481
3482pg_restore: creating SEQUENCE OWNED BY "public.cobranca_titulo_item_seq_cobranca_titulo_item_seq_1"
3483pg_restore: creating SEQUENCE "public.cobranca_titulo_seq_cobranca_titulo_seq"
3484pg_restore: [archiver (db)] Error from TOC entry 1071; 1259 47400463 SEQUENCE cobranca_titulo_seq_cobranca_titulo_seq postgres
3485pg_restore: [archiver (db)] could not execute query: ERROR: relation "cobranca_titulo_seq_cobranca_titulo_seq" already exists
3486 Command was: CREATE SEQUENCE public.cobranca_titulo_seq_cobranca_titulo_seq
3487 START WITH 1
3488 INCREMENT BY 1
3489 NO MINVALUE
3490 NO MAXVALUE
3491 CACHE 1;
3492
3493
3494
3495pg_restore: creating SEQUENCE OWNED BY "public.cobranca_titulo_seq_cobranca_titulo_seq"
3496pg_restore: creating TABLE "public.competencia"
3497pg_restore: [archiver (db)] Error from TOC entry 1072; 1259 47400465 TABLE competencia postgres
3498pg_restore: [archiver (db)] could not execute query: ERROR: relation "competencia" already exists
3499 Command was: CREATE TABLE public.competencia (
3500 data_ini date,
3501 data_fim date,
3502 competencia character varying(10) NOT NULL,
3503 usuario_alteracao character varying(100),
3504 data_alteracao timestamp without time zone DEFAULT now() NOT NULL,
3505 periodicidade character varying
3506);
3507
3508
3509
3510pg_restore: creating TABLE "public.competicao"
3511pg_restore: [archiver (db)] Error from TOC entry 1073; 1259 47400472 TABLE competicao postgres
3512pg_restore: [archiver (db)] could not execute query: ERROR: relation "competicao" already exists
3513 Command was: CREATE TABLE public.competicao (
3514 seq_competicao integer NOT NULL,
3515 nome character varying(100) NOT NULL,
3516 observacao character varying,
3517 usuario_alteracao character varying(100) DEFAULT 'golway'::character varying NOT NULL,
3518 data_alteracao timestamp without time zone DEFAULT now() NOT NULL
3519);
3520
3521
3522
3523pg_restore: creating TABLE "public.competicao_edicao"
3524pg_restore: [archiver (db)] Error from TOC entry 1074; 1259 47400480 TABLE competicao_edicao postgres
3525pg_restore: [archiver (db)] could not execute query: ERROR: relation "competicao_edicao" already exists
3526 Command was: CREATE TABLE public.competicao_edicao (
3527 seq_competicao_edicao integer NOT NULL,
3528 ano_base integer NOT NULL,
3529 dt_inicio date NOT NULL,
3530 observacao character varying,
3531 dt_fim date,
3532 seq_competicao integer NOT NULL,
3533 usuario_alteracao character varying(100) DEFAULT 'golway'::character varying NOT NULL,
3534 data_alteracao timestamp without time zone DEFAULT now() NOT NULL
3535);
3536
3537
3538
3539pg_restore: creating SEQUENCE "public.competicao_edicao_seq_competicao_edicao_seq"
3540pg_restore: [archiver (db)] Error from TOC entry 1075; 1259 47400488 SEQUENCE competicao_edicao_seq_competicao_edicao_seq postgres
3541pg_restore: [archiver (db)] could not execute query: ERROR: relation "competicao_edicao_seq_competicao_edicao_seq" already exists
3542 Command was: CREATE SEQUENCE public.competicao_edicao_seq_competicao_edicao_seq
3543 START WITH 1
3544 INCREMENT BY 1
3545 NO MINVALUE
3546 NO MAXVALUE
3547 CACHE 1;
3548
3549
3550
3551pg_restore: creating SEQUENCE OWNED BY "public.competicao_edicao_seq_competicao_edicao_seq"
3552pg_restore: creating SEQUENCE "public.competicao_seq_competicao_seq"
3553pg_restore: [archiver (db)] Error from TOC entry 1076; 1259 47400490 SEQUENCE competicao_seq_competicao_seq postgres
3554pg_restore: [archiver (db)] could not execute query: ERROR: relation "competicao_seq_competicao_seq" already exists
3555 Command was: CREATE SEQUENCE public.competicao_seq_competicao_seq
3556 START WITH 1
3557 INCREMENT BY 1
3558 NO MINVALUE
3559 NO MAXVALUE
3560 CACHE 1;
3561
3562
3563
3564pg_restore: creating SEQUENCE OWNED BY "public.competicao_seq_competicao_seq"
3565pg_restore: creating TABLE "public.conta"
3566pg_restore: [archiver (db)] Error from TOC entry 1077; 1259 47400492 TABLE conta postgres
3567pg_restore: [archiver (db)] could not execute query: ERROR: relation "conta" already exists
3568 Command was: CREATE TABLE public.conta (
3569 seq_conta integer DEFAULT nextval(('seq_conta'::text)::regclass) NOT NULL,
3570 esq integer,
3571 nome character varying(100) NOT NULL,
3572 data_geracao timestamp without time zone DEFAULT now() NOT NULL,
3573 usuario_alteracao character varying(100) NOT NULL,
3574 dir integer,
3575 nivel integer,
3576 conta_pai integer,
3577 caminho text,
3578 cod_contabil bigint,
3579 cod_centro_custo bigint,
3580 cod_usuario_alteracao integer
3581);
3582
3583
3584
3585pg_restore: creating TABLE "public.dbf_cartoes_ecnh"
3586pg_restore: [archiver (db)] Error from TOC entry 1078; 1259 47400500 TABLE dbf_cartoes_ecnh postgres
3587pg_restore: [archiver (db)] could not execute query: ERROR: relation "dbf_cartoes_ecnh" already exists
3588 Command was: CREATE TABLE public.dbf_cartoes_ecnh (
3589 nrident character varying(255),
3590 barra character varying(255),
3591 tipoident character varying(255),
3592 matricula character varying(255),
3593 nome character varying(255),
3594 chave character varying(255),
3595 chavedes character varying(255),
3596 categoria character varying(255),
3597 status character varying(255),
3598 dtstatus character varying(255),
3599 tipolayout character varying(255)
3600);
3601
3602
3603
3604pg_restore: creating TABLE "public.dbf_pessoas_ecnh"
3605pg_restore: [archiver (db)] Error from TOC entry 1079; 1259 47400506 TABLE dbf_pessoas_ecnh postgres
3606pg_restore: [archiver (db)] could not execute query: ERROR: relation "dbf_pessoas_ecnh" already exists
3607 Command was: CREATE TABLE public.dbf_pessoas_ecnh (
3608 tipo character varying(255),
3609 matricula character varying(255),
3610 nome character varying(255),
3611 sobrenome character varying(255),
3612 sexo character varying(255),
3613 ecivil character varying(255),
3614 dtnascim character varying(255),
3615 dtcadastr character varying(255),
3616 dtadmiss character varying(255),
3617 tipoadmiss character varying(255),
3618 nrtitulo character varying(255),
3619 dttitulo character varying(255),
3620 matpropon character varying(255),
3621 nomepropon character varying(255),
3622 pai character varying(255),
3623 mae character varying(255),
3624 cpf character varying(255),
3625 identidade character varying(255),
3626 categoria character varying(255),
3627 celular character varying(255),
3628 endresi character varying(255),
3629 nrresi character varying(255),
3630 comresi character varying(255),
3631 bairesi character varying(255),
3632 cepresi character varying(255),
3633 telresi character varying(255),
3634 emaresi character varying(255),
3635 empresa character varying(255),
3636 endcoml character varying(255),
3637 nrcoml character varying(255),
3638 comcoml character varying(255),
3639 baicoml character varying(255),
3640 cepcoml character varying(255),
3641 telcoml character varying(255),
3642 emacom character varying(255)
3643);
3644
3645
3646
3647pg_restore: creating TABLE "public.dne"
3648pg_restore: [archiver (db)] Error from TOC entry 1080; 1259 47400512 TABLE dne postgres
3649pg_restore: [archiver (db)] could not execute query: ERROR: relation "dne" already exists
3650 Command was: CREATE TABLE public.dne (
3651 cep character varying(8),
3652 localidade character varying(100),
3653 uf character varying(2),
3654 bairro_inicial character varying(100),
3655 bairro_final character varying(100),
3656 logradouro character varying(100),
3657 posicao_exercito integer,
3658 seq_dne integer NOT NULL
3659);
3660
3661
3662
3663pg_restore: creating SEQUENCE "public.dne_seq_dne_seq"
3664pg_restore: [archiver (db)] Error from TOC entry 1081; 1259 47400515 SEQUENCE dne_seq_dne_seq postgres
3665pg_restore: [archiver (db)] could not execute query: ERROR: relation "dne_seq_dne_seq" already exists
3666 Command was: CREATE SEQUENCE public.dne_seq_dne_seq
3667 START WITH 1
3668 INCREMENT BY 1
3669 NO MINVALUE
3670 NO MAXVALUE
3671 CACHE 1;
3672
3673
3674
3675pg_restore: creating SEQUENCE OWNED BY "public.dne_seq_dne_seq"
3676pg_restore: creating TABLE "public.escolaridade"
3677pg_restore: [archiver (db)] Error from TOC entry 1082; 1259 47400517 TABLE escolaridade postgres
3678pg_restore: [archiver (db)] could not execute query: ERROR: relation "escolaridade" already exists
3679 Command was: CREATE TABLE public.escolaridade (
3680 seq_escolaridade integer NOT NULL,
3681 descricao character varying(200)
3682);
3683
3684
3685
3686pg_restore: creating SEQUENCE "public.escolaridade_seq_escolaridade_seq"
3687pg_restore: [archiver (db)] Error from TOC entry 1083; 1259 47400520 SEQUENCE escolaridade_seq_escolaridade_seq postgres
3688pg_restore: [archiver (db)] could not execute query: ERROR: relation "escolaridade_seq_escolaridade_seq" already exists
3689 Command was: CREATE SEQUENCE public.escolaridade_seq_escolaridade_seq
3690 START WITH 1
3691 INCREMENT BY 1
3692 NO MINVALUE
3693 NO MAXVALUE
3694 CACHE 1;
3695
3696
3697
3698pg_restore: creating SEQUENCE OWNED BY "public.escolaridade_seq_escolaridade_seq"
3699pg_restore: creating TABLE "public.estado"
3700pg_restore: [archiver (db)] Error from TOC entry 1084; 1259 47400522 TABLE estado postgres
3701pg_restore: [archiver (db)] could not execute query: ERROR: relation "estado" already exists
3702 Command was: CREATE TABLE public.estado (
3703 seq_estado integer NOT NULL,
3704 nome character varying(50),
3705 sigla character varying(2)
3706);
3707
3708
3709
3710pg_restore: creating SEQUENCE "public.estado_seq_estado_seq"
3711pg_restore: [archiver (db)] Error from TOC entry 1085; 1259 47400525 SEQUENCE estado_seq_estado_seq postgres
3712pg_restore: [archiver (db)] could not execute query: ERROR: relation "estado_seq_estado_seq" already exists
3713 Command was: CREATE SEQUENCE public.estado_seq_estado_seq
3714 START WITH 1
3715 INCREMENT BY 1
3716 NO MINVALUE
3717 NO MAXVALUE
3718 CACHE 1;
3719
3720
3721
3722pg_restore: creating SEQUENCE OWNED BY "public.estado_seq_estado_seq"
3723pg_restore: creating TABLE "public.evento"
3724pg_restore: [archiver (db)] Error from TOC entry 1086; 1259 47400527 TABLE evento postgres
3725pg_restore: [archiver (db)] could not execute query: ERROR: relation "evento" already exists
3726 Command was: CREATE TABLE public.evento (
3727 seq_evento integer NOT NULL,
3728 seq_competicao_edicao integer NOT NULL,
3729 seguradora character varying(100) NOT NULL,
3730 seq_clube_adversario integer,
3731 dt_evento timestamp without time zone NOT NULL,
3732 numero_seguro character varying(100),
3733 descricao character varying(200),
3734 seq_evento_local integer DEFAULT 1 NOT NULL,
3735 usuario_alteracao character varying(100) NOT NULL,
3736 data_alteracao timestamp without time zone DEFAULT now() NOT NULL,
3737 objetivo integer,
3738 meta_publico integer,
3739 clima integer,
3740 temperatura numeric(20,2),
3741 gol_tempo_normal_pro integer,
3742 gol_tempo_normal_contra integer,
3743 gol_tempo_extra_pro integer,
3744 gol_tempo_extra_contra integer,
3745 penalti_pro integer,
3746 penalti_contra integer,
3747 even_ref integer
3748);
3749
3750
3751
3752pg_restore: creating TABLE "public.evento_local"
3753pg_restore: [archiver (db)] Error from TOC entry 1087; 1259 47400532 TABLE evento_local postgres
3754pg_restore: [archiver (db)] could not execute query: ERROR: relation "evento_local" already exists
3755 Command was: CREATE TABLE public.evento_local (
3756 seq_evento_local integer NOT NULL,
3757 cep integer NOT NULL,
3758 nome character varying(100) NOT NULL,
3759 observacao character varying,
3760 usuario_alteracao character varying(100) NOT NULL,
3761 data_alteracao timestamp without time zone DEFAULT now() NOT NULL,
3762 link_google_maps text
3763);
3764
3765
3766
3767pg_restore: creating SEQUENCE "public.evento_local_seq_evento_local_seq"
3768pg_restore: [archiver (db)] Error from TOC entry 1088; 1259 47400539 SEQUENCE evento_local_seq_evento_local_seq postgres
3769pg_restore: [archiver (db)] could not execute query: ERROR: relation "evento_local_seq_evento_local_seq" already exists
3770 Command was: CREATE SEQUENCE public.evento_local_seq_evento_local_seq
3771 START WITH 1
3772 INCREMENT BY 1
3773 NO MINVALUE
3774 NO MAXVALUE
3775 CACHE 1;
3776
3777
3778
3779pg_restore: creating SEQUENCE OWNED BY "public.evento_local_seq_evento_local_seq"
3780pg_restore: creating TABLE "public.evento_objetivo"
3781pg_restore: [archiver (db)] Error from TOC entry 1089; 1259 47400541 TABLE evento_objetivo postgres
3782pg_restore: [archiver (db)] could not execute query: ERROR: relation "evento_objetivo" already exists
3783 Command was: CREATE TABLE public.evento_objetivo (
3784 seq_evento_objetivo integer NOT NULL,
3785 objetivo text,
3786 usuario_alteracao character varying(100) NOT NULL,
3787 data_alteracao timestamp without time zone DEFAULT now() NOT NULL
3788);
3789
3790
3791
3792pg_restore: creating SEQUENCE "public.evento_objetivo_seq_evento_objetivo_seq"
3793pg_restore: [archiver (db)] Error from TOC entry 1090; 1259 47400548 SEQUENCE evento_objetivo_seq_evento_objetivo_seq postgres
3794pg_restore: [archiver (db)] could not execute query: ERROR: relation "evento_objetivo_seq_evento_objetivo_seq" already exists
3795 Command was: CREATE SEQUENCE public.evento_objetivo_seq_evento_objetivo_seq
3796 START WITH 1
3797 INCREMENT BY 1
3798 NO MINVALUE
3799 NO MAXVALUE
3800 CACHE 1;
3801
3802
3803
3804pg_restore: creating SEQUENCE OWNED BY "public.evento_objetivo_seq_evento_objetivo_seq"
3805pg_restore: creating TABLE "public.evento_produto"
3806pg_restore: [archiver (db)] Error from TOC entry 1091; 1259 47400550 TABLE evento_produto postgres
3807pg_restore: [archiver (db)] could not execute query: ERROR: relation "evento_produto" already exists
3808 Command was: CREATE TABLE public.evento_produto (
3809 seq_evento_produto integer NOT NULL,
3810 seq_evento integer NOT NULL,
3811 seq_produto integer NOT NULL,
3812 qtde integer NOT NULL,
3813 valor numeric(30,5) NOT NULL,
3814 observacao character varying,
3815 usuario_alteracao character varying(100) NOT NULL,
3816 data_alteracao timestamp without time zone DEFAULT now() NOT NULL
3817);
3818
3819
3820
3821pg_restore: creating SEQUENCE "public.evento_produto_seq_evento_produto_seq"
3822pg_restore: [archiver (db)] Error from TOC entry 1092; 1259 47400557 SEQUENCE evento_produto_seq_evento_produto_seq postgres
3823pg_restore: [archiver (db)] could not execute query: ERROR: relation "evento_produto_seq_evento_produto_seq" already exists
3824 Command was: CREATE SEQUENCE public.evento_produto_seq_evento_produto_seq
3825 START WITH 1
3826 INCREMENT BY 1
3827 NO MINVALUE
3828 NO MAXVALUE
3829 CACHE 1;
3830
3831
3832
3833pg_restore: creating SEQUENCE OWNED BY "public.evento_produto_seq_evento_produto_seq"
3834pg_restore: creating SEQUENCE "public.evento_seq_evento_seq"
3835pg_restore: [archiver (db)] Error from TOC entry 1093; 1259 47400559 SEQUENCE evento_seq_evento_seq postgres
3836pg_restore: [archiver (db)] could not execute query: ERROR: relation "evento_seq_evento_seq" already exists
3837 Command was: CREATE SEQUENCE public.evento_seq_evento_seq
3838 START WITH 1
3839 INCREMENT BY 1
3840 NO MINVALUE
3841 NO MAXVALUE
3842 CACHE 1;
3843
3844
3845
3846pg_restore: creating SEQUENCE OWNED BY "public.evento_seq_evento_seq"
3847pg_restore: creating TABLE "public.faixa_salarial"
3848pg_restore: [archiver (db)] Error from TOC entry 1094; 1259 47400561 TABLE faixa_salarial postgres
3849pg_restore: [archiver (db)] could not execute query: ERROR: relation "faixa_salarial" already exists
3850 Command was: CREATE TABLE public.faixa_salarial (
3851 seq_faixa_salarial integer NOT NULL,
3852 descricao character varying
3853);
3854
3855
3856
3857pg_restore: creating SEQUENCE "public.faixa_salarial_seq_faixa_salarial_seq"
3858pg_restore: [archiver (db)] Error from TOC entry 1095; 1259 47400567 SEQUENCE faixa_salarial_seq_faixa_salarial_seq postgres
3859pg_restore: [archiver (db)] could not execute query: ERROR: relation "faixa_salarial_seq_faixa_salarial_seq" already exists
3860 Command was: CREATE SEQUENCE public.faixa_salarial_seq_faixa_salarial_seq
3861 START WITH 1
3862 INCREMENT BY 1
3863 NO MINVALUE
3864 NO MAXVALUE
3865 CACHE 1;
3866
3867
3868
3869pg_restore: creating SEQUENCE OWNED BY "public.faixa_salarial_seq_faixa_salarial_seq"
3870pg_restore: creating TABLE "public.forma_pagamento"
3871pg_restore: [archiver (db)] Error from TOC entry 1096; 1259 47400569 TABLE forma_pagamento postgres
3872pg_restore: [archiver (db)] could not execute query: ERROR: relation "forma_pagamento" already exists
3873 Command was: CREATE TABLE public.forma_pagamento (
3874 seq_forma_pagamento integer NOT NULL,
3875 descricao character varying(100) NOT NULL,
3876 usuario_alteracao character varying(100) DEFAULT 'golway'::character varying NOT NULL,
3877 data_alteracao timestamp without time zone DEFAULT now() NOT NULL
3878);
3879
3880
3881
3882pg_restore: creating SEQUENCE "public.forma_pagamento_seq_forma_pagamento_seq"
3883pg_restore: [archiver (db)] Error from TOC entry 1097; 1259 47400574 SEQUENCE forma_pagamento_seq_forma_pagamento_seq postgres
3884pg_restore: [archiver (db)] could not execute query: ERROR: relation "forma_pagamento_seq_forma_pagamento_seq" already exists
3885 Command was: CREATE SEQUENCE public.forma_pagamento_seq_forma_pagamento_seq
3886 START WITH 1
3887 INCREMENT BY 1
3888 NO MINVALUE
3889 NO MAXVALUE
3890 CACHE 1;
3891
3892
3893
3894pg_restore: creating SEQUENCE OWNED BY "public.forma_pagamento_seq_forma_pagamento_seq"
3895pg_restore: creating TABLE "public.ingresso"
3896pg_restore: [archiver (db)] Error from TOC entry 1098; 1259 47400576 TABLE ingresso postgres
3897pg_restore: [archiver (db)] could not execute query: ERROR: relation "ingresso" already exists
3898 Command was: CREATE TABLE public.ingresso (
3899 seq_ingresso integer NOT NULL,
3900 seq_sessao_evento_produto integer,
3901 seq_pessoa integer,
3902 seq_assento integer,
3903 nro_codigo_barras character varying(200) NOT NULL,
3904 nro_ingresso character varying(100),
3905 nro_2d character varying,
3906 nro_protocolo character varying(100),
3907 seq_cartao integer,
3908 usuario_alteracao character varying(100) NOT NULL,
3909 data_alteracao timestamp without time zone DEFAULT now() NOT NULL,
3910 dt_cancelamento timestamp without time zone,
3911 seq_movimento_item integer,
3912 dt_entrega timestamp without time zone,
3913 tipo character varying(50),
3914 seq_ingresso_vinculo integer,
3915 valor_pago numeric(30,5),
3916 valor_devido numeric(30,5),
3917 seq_evento_produto integer,
3918 meio_ingresso boolean DEFAULT false NOT NULL
3919);
3920
3921
3922
3923pg_restore: creating TABLE "public.ingresso_numero"
3924pg_restore: [archiver (db)] Error from TOC entry 1099; 1259 47400584 TABLE ingresso_numero postgres
3925pg_restore: [archiver (db)] could not execute query: ERROR: relation "ingresso_numero" already exists
3926 Command was: CREATE TABLE public.ingresso_numero (
3927 ingresso_numero bigint NOT NULL,
3928 usado boolean DEFAULT false,
3929 even_ref integer,
3930 seq bigint
3931);
3932
3933
3934
3935pg_restore: creating SEQUENCE "public.ingresso_seq_ingresso_seq"
3936pg_restore: [archiver (db)] Error from TOC entry 1100; 1259 47400588 SEQUENCE ingresso_seq_ingresso_seq postgres
3937pg_restore: [archiver (db)] could not execute query: ERROR: relation "ingresso_seq_ingresso_seq" already exists
3938 Command was: CREATE SEQUENCE public.ingresso_seq_ingresso_seq
3939 START WITH 1
3940 INCREMENT BY 1
3941 NO MINVALUE
3942 NO MAXVALUE
3943 CACHE 1;
3944
3945
3946
3947pg_restore: creating SEQUENCE OWNED BY "public.ingresso_seq_ingresso_seq"
3948pg_restore: creating TABLE "public.instituicao_financeira"
3949pg_restore: [archiver (db)] Error from TOC entry 1101; 1259 47400590 TABLE instituicao_financeira postgres
3950pg_restore: [archiver (db)] could not execute query: ERROR: relation "instituicao_financeira" already exists
3951 Command was: CREATE TABLE public.instituicao_financeira (
3952 seq_instituicao_financeira integer NOT NULL,
3953 nome character varying(200),
3954 tipo character varying(20),
3955 usuario_alteracao character varying(100),
3956 data_alteracao timestamp without time zone DEFAULT now(),
3957 codigo character varying(100)
3958);
3959
3960
3961
3962pg_restore: creating SEQUENCE "public.seq_seq_liberacao"
3963pg_restore: [archiver (db)] Error from TOC entry 1102; 1259 47400594 SEQUENCE seq_seq_liberacao postgres
3964pg_restore: [archiver (db)] could not execute query: ERROR: relation "seq_seq_liberacao" already exists
3965 Command was: CREATE SEQUENCE public.seq_seq_liberacao
3966 START WITH 1
3967 INCREMENT BY 1
3968 NO MINVALUE
3969 NO MAXVALUE
3970 CACHE 1;
3971
3972
3973
3974pg_restore: creating TABLE "public.liberacao"
3975pg_restore: [archiver (db)] Error from TOC entry 1103; 1259 47400596 TABLE liberacao postgres
3976pg_restore: [archiver (db)] could not execute query: ERROR: relation "liberacao" already exists
3977 Command was: CREATE TABLE public.liberacao (
3978 seq_liberacao integer DEFAULT nextval('public.seq_seq_liberacao'::regclass) NOT NULL,
3979 codigo character varying(100) NOT NULL,
3980 seq_produto integer NOT NULL,
3981 status character varying(5),
3982 data_acesso timestamp without time zone,
3983 usuario_alteracao character varying(100),
3984 data_alteracao timestamp without time zone DEFAULT now() NOT NULL,
3985 tipo_acesso character varying(20),
3986 mensagem character varying(50)
3987);
3988
3989
3990
3991pg_restore: creating SEQUENCE "public.seq_liberacao_historico"
3992pg_restore: [archiver (db)] Error from TOC entry 1104; 1259 47400601 SEQUENCE seq_liberacao_historico postgres
3993pg_restore: [archiver (db)] could not execute query: ERROR: relation "seq_liberacao_historico" already exists
3994 Command was: CREATE SEQUENCE public.seq_liberacao_historico
3995 START WITH 1
3996 INCREMENT BY 1
3997 NO MINVALUE
3998 NO MAXVALUE
3999 CACHE 1;
4000
4001
4002
4003pg_restore: creating TABLE "public.liberacao_historico"
4004pg_restore: [archiver (db)] Error from TOC entry 1105; 1259 47400603 TABLE liberacao_historico postgres
4005pg_restore: [archiver (db)] could not execute query: ERROR: relation "liberacao_historico" already exists
4006 Command was: CREATE TABLE public.liberacao_historico (
4007 seq_liberacao_historico integer DEFAULT nextval('public.seq_liberacao_historico'::regclass) NOT NULL,
4008 seq_liberacao integer,
4009 codigo character varying(100) NOT NULL,
4010 seq_produto integer,
4011 status character varying(5),
4012 data_acesso timestamp without time zone,
4013 usuario_alteracao character varying(100),
4014 data_alteracao timestamp without time zone DEFAULT now() NOT NULL,
4015 tipo_acesso character varying(20),
4016 mensagem character varying(16),
4017 seq_evento integer
4018);
4019
4020
4021
4022pg_restore: creating TABLE "public.matricula"
4023pg_restore: [archiver (db)] Error from TOC entry 1106; 1259 47400608 TABLE matricula postgres
4024pg_restore: [archiver (db)] could not execute query: ERROR: relation "matricula" already exists
4025 Command was: CREATE TABLE public.matricula (
4026 matricula integer NOT NULL,
4027 seq_pessoa integer NOT NULL,
4028 seq_produto integer NOT NULL,
4029 seq_cadeira integer,
4030 seq_camarote integer,
4031 data_criacao timestamp without time zone,
4032 data_aquisicao timestamp without time zone,
4033 data_cancelamento timestamp without time zone,
4034 dia_cobranca date,
4035 usuario_alteracao character varying(100),
4036 data_alteracao timestamp without time zone DEFAULT now(),
4037 seq_pagador integer,
4038 em_dia boolean DEFAULT false,
4039 seq_pessoa_dados_pagamento integer,
4040 seq_forma_pagamento integer DEFAULT 1 NOT NULL,
4041 seq_instituicao_financeira integer,
4042 cob_conta character varying(100),
4043 cob_agencia character varying(100),
4044 cob_numero_cartao character varying(100),
4045 cob_data_vencimento_cartao date,
4046 cob_codigo_seguranca_cartao character varying(20),
4047 cob_cep character varying(30),
4048 cob_endereco character varying(200),
4049 cob_bairro character varying(100),
4050 cob_cidade character varying(100),
4051 cob_uf character varying(20),
4052 cob_pais integer,
4053 cob_complemento character varying(200),
4054 cob_numero integer,
4055 ativa boolean,
4056 numero_cartao character varying(50),
4057 seq_vinculado integer,
4058 seq_plano_pgto integer,
4059 matricula_acbf character varying(50),
4060 seq_produto_escolinha_turma integer
4061);
4062
4063
4064
4065pg_restore: creating TABLE "public.movimento_cobranca"
4066pg_restore: [archiver (db)] Error from TOC entry 1107; 1259 47400614 TABLE movimento_cobranca postgres
4067pg_restore: [archiver (db)] could not execute query: ERROR: relation "movimento_cobranca" already exists
4068 Command was: CREATE TABLE public.movimento_cobranca (
4069 seq_movimento_cobranca integer NOT NULL,
4070 matricula integer,
4071 seq_produto_taxa integer,
4072 valor_devido numeric(20,5),
4073 valor_pago numeric(20,5),
4074 data_vencimento date,
4075 data_pagamento timestamp without time zone,
4076 data_cancelamento timestamp without time zone,
4077 usuario_alteracao character varying(100),
4078 data_alteracao timestamp without time zone DEFAULT now(),
4079 seq_pessoa integer,
4080 competencia character varying(10)
4081);
4082
4083
4084
4085pg_restore: creating SEQUENCE "public.matricula_cobranca_seq_matricula_cobranca_seq"
4086pg_restore: [archiver (db)] Error from TOC entry 1108; 1259 47400618 SEQUENCE matricula_cobranca_seq_matricula_cobranca_seq postgres
4087pg_restore: [archiver (db)] could not execute query: ERROR: relation "matricula_cobranca_seq_matricula_cobranca_seq" already exists
4088 Command was: CREATE SEQUENCE public.matricula_cobranca_seq_matricula_cobranca_seq
4089 START WITH 1
4090 INCREMENT BY 1
4091 NO MINVALUE
4092 NO MAXVALUE
4093 CACHE 1;
4094
4095
4096
4097pg_restore: creating SEQUENCE OWNED BY "public.matricula_cobranca_seq_matricula_cobranca_seq"
4098pg_restore: creating SEQUENCE "public.matricula_matricula_seq"
4099pg_restore: [archiver (db)] Error from TOC entry 1109; 1259 47400620 SEQUENCE matricula_matricula_seq postgres
4100pg_restore: [archiver (db)] could not execute query: ERROR: relation "matricula_matricula_seq" already exists
4101 Command was: CREATE SEQUENCE public.matricula_matricula_seq
4102 START WITH 1
4103 INCREMENT BY 1
4104 NO MINVALUE
4105 NO MAXVALUE
4106 CACHE 1;
4107
4108
4109
4110pg_restore: creating SEQUENCE OWNED BY "public.matricula_matricula_seq"
4111pg_restore: creating TABLE "public.meio_pagamento"
4112pg_restore: [archiver (db)] Error from TOC entry 1110; 1259 47400622 TABLE meio_pagamento postgres
4113pg_restore: [archiver (db)] could not execute query: ERROR: relation "meio_pagamento" already exists
4114 Command was: CREATE TABLE public.meio_pagamento (
4115 seq_meio_pagamento integer NOT NULL,
4116 nome character varying(100) NOT NULL,
4117 cod_integracao character varying(100) NOT NULL,
4118 seq_forma_pagamento integer NOT NULL,
4119 usuario_alteracao character varying(100) DEFAULT 'golway'::character varying NOT NULL,
4120 data_alteracao timestamp without time zone DEFAULT now() NOT NULL
4121);
4122
4123
4124
4125pg_restore: creating SEQUENCE "public.meio_pagamento_seq_meio_pagamento_seq"
4126pg_restore: [archiver (db)] Error from TOC entry 1111; 1259 47400627 SEQUENCE meio_pagamento_seq_meio_pagamento_seq postgres
4127pg_restore: [archiver (db)] could not execute query: ERROR: relation "meio_pagamento_seq_meio_pagamento_seq" already exists
4128 Command was: CREATE SEQUENCE public.meio_pagamento_seq_meio_pagamento_seq
4129 START WITH 1
4130 INCREMENT BY 1
4131 NO MINVALUE
4132 NO MAXVALUE
4133 CACHE 1;
4134
4135
4136
4137pg_restore: creating SEQUENCE OWNED BY "public.meio_pagamento_seq_meio_pagamento_seq"
4138pg_restore: creating TABLE "public.menu"
4139pg_restore: [archiver (db)] Error from TOC entry 1112; 1259 47400629 TABLE menu postgres
4140pg_restore: [archiver (db)] could not execute query: ERROR: relation "menu" already exists
4141 Command was: CREATE TABLE public.menu (
4142 seq_menu integer NOT NULL,
4143 texto character varying(50),
4144 objeto integer,
4145 pai integer,
4146 icone character varying(50),
4147 ativo boolean DEFAULT true
4148);
4149
4150
4151
4152pg_restore: creating SEQUENCE "public.menu_seq_menu_seq"
4153pg_restore: [archiver (db)] Error from TOC entry 1113; 1259 47400633 SEQUENCE menu_seq_menu_seq postgres
4154pg_restore: [archiver (db)] could not execute query: ERROR: relation "menu_seq_menu_seq" already exists
4155 Command was: CREATE SEQUENCE public.menu_seq_menu_seq
4156 START WITH 1
4157 INCREMENT BY 1
4158 NO MINVALUE
4159 NO MAXVALUE
4160 CACHE 1;
4161
4162
4163
4164pg_restore: creating SEQUENCE OWNED BY "public.menu_seq_menu_seq"
4165pg_restore: creating TABLE "public.movimento"
4166pg_restore: [archiver (db)] Error from TOC entry 1114; 1259 47400635 TABLE movimento postgres
4167pg_restore: [archiver (db)] could not execute query: ERROR: relation "movimento" already exists
4168 Command was: CREATE TABLE public.movimento (
4169 seq_movimento integer NOT NULL,
4170 data_criacao timestamp without time zone DEFAULT now(),
4171 data_pagamento timestamp without time zone,
4172 valor_total numeric(20,5),
4173 caixa integer,
4174 data_estorno timestamp without time zone,
4175 usuario_alteracao character varying(100),
4176 sobrenome character varying(255),
4177 sexo character varying(255),
4178 ecivil character varying(255),
4179 dtnascim character varying(255),
4180 dtcadastr character varying(255),
4181 dtadmiss character varying(255),
4182 tipoadmiss character varying(255),
4183 nrtitulo character varying(255),
4184 dttitulo character varying(255),
4185 matpropon character varying(255),
4186 nomepropon character varying(255),
4187 pai character varying(255),
4188 mae character varying(255),
4189 cpf character varying(255),
4190 identidade character varying(255),
4191 categoria character varying(255),
4192 celular character varying(255),
4193 endresi character varying(255),
4194 nrresi character varying(255),
4195 comresi character varying(255),
4196 bairesi character varying(255),
4197 cepresi character varying(255),
4198 telresi character varying(255),
4199 emaresi character varying(255),
4200 empresa character varying(255),
4201 endcoml character varying(255),
4202 nrcoml character varying(255),
4203 comcoml character varying(255),
4204 baicoml character varying(255),
4205 cepcoml character varying(255),
4206 telcoml character varying(255),
4207 emacom character varying(255)
4208);
4209
4210
4211
4212pg_restore: creating TABLE "public.dne"
4213pg_restore: [archiver (db)] Error from TOC entry 1080; 1259 47400512 TABLE dne postgres
4214pg_restore: [archiver (db)] could not execute query: ERROR: relation "dne" already exists
4215 Command was: CREATE TABLE public.dne (
4216 cep character varying(8),
4217 localidade character varying(100),
4218 uf character varying(2),
4219 bairro_inicial character varying(100),
4220 bairro_final character varying(100),
4221 logradouro character varying(100),
4222 posicao_exercito integer,
4223 seq_dne integer NOT NULL
4224);
4225
4226
4227
4228pg_restore: creating SEQUENCE "public.dne_seq_dne_seq"
4229pg_restore: [archiver (db)] Error from TOC entry 1081; 1259 47400515 SEQUENCE dne_seq_dne_seq postgres
4230pg_restore: [archiver (db)] could not execute query: ERROR: relation "dne_seq_dne_seq" already exists
4231 Command was: CREATE SEQUENCE public.dne_seq_dne_seq
4232 START WITH 1
4233 INCREMENT BY 1
4234 NO MINVALUE
4235 NO MAXVALUE
4236 CACHE 1;
4237
4238
4239
4240pg_restore: creating SEQUENCE OWNED BY "public.dne_seq_dne_seq"
4241pg_restore: creating TABLE "public.escolaridade"
4242pg_restore: [archiver (db)] Error from TOC entry 1082; 1259 47400517 TABLE escolaridade postgres
4243pg_restore: [archiver (db)] could not execute query: ERROR: relation "escolaridade" already exists
4244 Command was: CREATE TABLE public.escolaridade (
4245 seq_escolaridade integer NOT NULL,
4246 descricao character varying(200)
4247);
4248
4249
4250
4251pg_restore: creating SEQUENCE "public.escolaridade_seq_escolaridade_seq"
4252pg_restore: [archiver (db)] Error from TOC entry 1083; 1259 47400520 SEQUENCE escolaridade_seq_escolaridade_seq postgres
4253pg_restore: [archiver (db)] could not execute query: ERROR: relation "escolaridade_seq_escolaridade_seq" already exists
4254 Command was: CREATE SEQUENCE public.escolaridade_seq_escolaridade_seq
4255 START WITH 1
4256 INCREMENT BY 1
4257 NO MINVALUE
4258 NO MAXVALUE
4259 CACHE 1;
4260
4261
4262
4263pg_restore: creating SEQUENCE OWNED BY "public.escolaridade_seq_escolaridade_seq"
4264pg_restore: creating TABLE "public.estado"
4265pg_restore: [archiver (db)] Error from TOC entry 1084; 1259 47400522 TABLE estado postgres
4266pg_restore: [archiver (db)] could not execute query: ERROR: relation "estado" already exists
4267 Command was: CREATE TABLE public.estado (
4268 seq_estado integer NOT NULL,
4269 nome character varying(50),
4270 sigla character varying(2)
4271);
4272
4273
4274
4275pg_restore: creating SEQUENCE "public.estado_seq_estado_seq"
4276pg_restore: [archiver (db)] Error from TOC entry 1085; 1259 47400525 SEQUENCE estado_seq_estado_seq postgres
4277pg_restore: [archiver (db)] could not execute query: ERROR: relation "estado_seq_estado_seq" already exists
4278 Command was: CREATE SEQUENCE public.estado_seq_estado_seq
4279 START WITH 1
4280 INCREMENT BY 1
4281 NO MINVALUE
4282 NO MAXVALUE
4283 CACHE 1;
4284
4285
4286
4287pg_restore: creating SEQUENCE OWNED BY "public.estado_seq_estado_seq"
4288pg_restore: creating TABLE "public.evento"
4289pg_restore: [archiver (db)] Error from TOC entry 1086; 1259 47400527 TABLE evento postgres
4290pg_restore: [archiver (db)] could not execute query: ERROR: relation "evento" already exists
4291 Command was: CREATE TABLE public.evento (
4292 seq_evento integer NOT NULL,
4293 seq_competicao_edicao integer NOT NULL,
4294 seguradora character varying(100) NOT NULL,
4295 seq_clube_adversario integer,
4296 dt_evento timestamp without time zone NOT NULL,
4297 numero_seguro character varying(100),
4298 descricao character varying(200),
4299 seq_evento_local integer DEFAULT 1 NOT NULL,
4300 usuario_alteracao character varying(100) NOT NULL,
4301 data_alteracao timestamp without time zone DEFAULT now() NOT NULL,
4302 objetivo integer,
4303 meta_publico integer,
4304 clima integer,
4305 temperatura numeric(20,2),
4306 gol_tempo_normal_pro integer,
4307 gol_tempo_normal_contra integer,
4308 gol_tempo_extra_pro integer,
4309 gol_tempo_extra_contra integer,
4310 penalti_pro integer,
4311 penalti_contra integer,
4312 even_ref integer
4313);
4314
4315
4316
4317pg_restore: creating TABLE "public.evento_local"
4318pg_restore: [archiver (db)] Error from TOC entry 1087; 1259 47400532 TABLE evento_local postgres
4319pg_restore: [archiver (db)] could not execute query: ERROR: relation "evento_local" already exists
4320 Command was: CREATE TABLE public.evento_local (
4321 seq_evento_local integer NOT NULL,
4322 cep integer NOT NULL,
4323 nome character varying(100) NOT NULL,
4324 observacao character varying,
4325 usuario_alteracao character varying(100) NOT NULL,
4326 data_alteracao timestamp without time zone DEFAULT now() NOT NULL,
4327 link_google_maps text
4328);
4329
4330
4331
4332pg_restore: creating SEQUENCE "public.evento_local_seq_evento_local_seq"
4333pg_restore: [archiver (db)] Error from TOC entry 1088; 1259 47400539 SEQUENCE evento_local_seq_evento_local_seq postgres
4334pg_restore: [archiver (db)] could not execute query: ERROR: relation "evento_local_seq_evento_local_seq" already exists
4335 Command was: CREATE SEQUENCE public.evento_local_seq_evento_local_seq
4336 START WITH 1
4337 INCREMENT BY 1
4338 NO MINVALUE
4339 NO MAXVALUE
4340 CACHE 1;
4341
4342
4343
4344pg_restore: creating SEQUENCE OWNED BY "public.evento_local_seq_evento_local_seq"
4345pg_restore: creating TABLE "public.evento_objetivo"
4346pg_restore: [archiver (db)] Error from TOC entry 1089; 1259 47400541 TABLE evento_objetivo postgres
4347pg_restore: [archiver (db)] could not execute query: ERROR: relation "evento_objetivo" already exists
4348 Command was: CREATE TABLE public.evento_objetivo (
4349 seq_evento_objetivo integer NOT NULL,
4350 objetivo text,
4351 usuario_alteracao character varying(100) NOT NULL,
4352 data_alteracao timestamp without time zone DEFAULT now() NOT NULL
4353);
4354
4355
4356
4357pg_restore: creating SEQUENCE "public.evento_objetivo_seq_evento_objetivo_seq"
4358pg_restore: [archiver (db)] Error from TOC entry 1090; 1259 47400548 SEQUENCE evento_objetivo_seq_evento_objetivo_seq postgres
4359pg_restore: [archiver (db)] could not execute query: ERROR: relation "evento_objetivo_seq_evento_objetivo_seq" already exists
4360 Command was: CREATE SEQUENCE public.evento_objetivo_seq_evento_objetivo_seq
4361 START WITH 1
4362 INCREMENT BY 1
4363 NO MINVALUE
4364 NO MAXVALUE
4365 CACHE 1;
4366
4367
4368
4369pg_restore: creating SEQUENCE OWNED BY "public.evento_objetivo_seq_evento_objetivo_seq"
4370pg_restore: creating TABLE "public.evento_produto"
4371pg_restore: [archiver (db)] Error from TOC entry 1091; 1259 47400550 TABLE evento_produto postgres
4372pg_restore: [archiver (db)] could not execute query: ERROR: relation "evento_produto" already exists
4373 Command was: CREATE TABLE public.evento_produto (
4374 seq_evento_produto integer NOT NULL,
4375 seq_evento integer NOT NULL,
4376 seq_produto integer NOT NULL,
4377 qtde integer NOT NULL,
4378 valor numeric(30,5) NOT NULL,
4379 observacao character varying,
4380 usuario_alteracao character varying(100) NOT NULL,
4381 data_alteracao timestamp without time zone DEFAULT now() NOT NULL
4382);
4383
4384
4385
4386pg_restore: creating SEQUENCE "public.evento_produto_seq_evento_produto_seq"
4387pg_restore: [archiver (db)] Error from TOC entry 1092; 1259 47400557 SEQUENCE evento_produto_seq_evento_produto_seq postgres
4388pg_restore: [archiver (db)] could not execute query: ERROR: relation "evento_produto_seq_evento_produto_seq" already exists
4389 Command was: CREATE SEQUENCE public.evento_produto_seq_evento_produto_seq
4390 START WITH 1
4391 INCREMENT BY 1
4392 NO MINVALUE
4393 NO MAXVALUE
4394 CACHE 1;
4395
4396
4397
4398pg_restore: creating SEQUENCE OWNED BY "public.evento_produto_seq_evento_produto_seq"
4399pg_restore: creating SEQUENCE "public.evento_seq_evento_seq"
4400pg_restore: [archiver (db)] Error from TOC entry 1093; 1259 47400559 SEQUENCE evento_seq_evento_seq postgres
4401pg_restore: [archiver (db)] could not execute query: ERROR: relation "evento_seq_evento_seq" already exists
4402 Command was: CREATE SEQUENCE public.evento_seq_evento_seq
4403 START WITH 1
4404 INCREMENT BY 1
4405 NO MINVALUE
4406 NO MAXVALUE
4407 CACHE 1;
4408
4409
4410
4411pg_restore: creating SEQUENCE OWNED BY "public.evento_seq_evento_seq"
4412pg_restore: creating TABLE "public.faixa_salarial"
4413pg_restore: [archiver (db)] Error from TOC entry 1094; 1259 47400561 TABLE faixa_salarial postgres
4414pg_restore: [archiver (db)] could not execute query: ERROR: relation "faixa_salarial" already exists
4415 Command was: CREATE TABLE public.faixa_salarial (
4416 seq_faixa_salarial integer NOT NULL,
4417 descricao character varying
4418);
4419
4420
4421
4422pg_restore: creating SEQUENCE "public.faixa_salarial_seq_faixa_salarial_seq"
4423pg_restore: [archiver (db)] Error from TOC entry 1095; 1259 47400567 SEQUENCE faixa_salarial_seq_faixa_salarial_seq postgres
4424pg_restore: [archiver (db)] could not execute query: ERROR: relation "faixa_salarial_seq_faixa_salarial_seq" already exists
4425 Command was: CREATE SEQUENCE public.faixa_salarial_seq_faixa_salarial_seq
4426 START WITH 1
4427 INCREMENT BY 1
4428 NO MINVALUE
4429 NO MAXVALUE
4430 CACHE 1;
4431
4432
4433
4434pg_restore: creating SEQUENCE OWNED BY "public.faixa_salarial_seq_faixa_salarial_seq"
4435pg_restore: creating TABLE "public.forma_pagamento"
4436pg_restore: [archiver (db)] Error from TOC entry 1096; 1259 47400569 TABLE forma_pagamento postgres
4437pg_restore: [archiver (db)] could not execute query: ERROR: relation "forma_pagamento" already exists
4438 Command was: CREATE TABLE public.forma_pagamento (
4439 seq_forma_pagamento integer NOT NULL,
4440 descricao character varying(100) NOT NULL,
4441 usuario_alteracao character varying(100) DEFAULT 'golway'::character varying NOT NULL,
4442 data_alteracao timestamp without time zone DEFAULT now() NOT NULL
4443);
4444
4445
4446
4447pg_restore: creating SEQUENCE "public.forma_pagamento_seq_forma_pagamento_seq"
4448pg_restore: [archiver (db)] Error from TOC entry 1097; 1259 47400574 SEQUENCE forma_pagamento_seq_forma_pagamento_seq postgres
4449pg_restore: [archiver (db)] could not execute query: ERROR: relation "forma_pagamento_seq_forma_pagamento_seq" already exists
4450 Command was: CREATE SEQUENCE public.forma_pagamento_seq_forma_pagamento_seq
4451 START WITH 1
4452 INCREMENT BY 1
4453 NO MINVALUE
4454 NO MAXVALUE
4455 CACHE 1;
4456
4457
4458
4459pg_restore: creating SEQUENCE OWNED BY "public.forma_pagamento_seq_forma_pagamento_seq"
4460pg_restore: creating TABLE "public.ingresso"
4461pg_restore: [archiver (db)] Error from TOC entry 1098; 1259 47400576 TABLE ingresso postgres
4462pg_restore: [archiver (db)] could not execute query: ERROR: relation "ingresso" already exists
4463 Command was: CREATE TABLE public.ingresso (
4464 seq_ingresso integer NOT NULL,
4465 seq_sessao_evento_produto integer,
4466 seq_pessoa integer,
4467 seq_assento integer,
4468 nro_codigo_barras character varying(200) NOT NULL,
4469 nro_ingresso character varying(100),
4470 nro_2d character varying,
4471 nro_protocolo character varying(100),
4472 seq_cartao integer,
4473 usuario_alteracao character varying(100) NOT NULL,
4474 data_alteracao timestamp without time zone DEFAULT now() NOT NULL,
4475 dt_cancelamento timestamp without time zone,
4476 seq_movimento_item integer,
4477 dt_entrega timestamp without time zone,
4478 tipo character varying(50),
4479 seq_ingresso_vinculo integer,
4480 valor_pago numeric(30,5),
4481 valor_devido numeric(30,5),
4482 seq_evento_produto integer,
4483 meio_ingresso boolean DEFAULT false NOT NULL
4484);
4485
4486
4487
4488pg_restore: creating TABLE "public.ingresso_numero"
4489pg_restore: [archiver (db)] Error from TOC entry 1099; 1259 47400584 TABLE ingresso_numero postgres
4490pg_restore: [archiver (db)] could not execute query: ERROR: relation "ingresso_numero" already exists
4491 Command was: CREATE TABLE public.ingresso_numero (
4492 ingresso_numero bigint NOT NULL,
4493 usado boolean DEFAULT false,
4494 even_ref integer,
4495 seq bigint
4496);
4497
4498
4499
4500pg_restore: creating SEQUENCE "public.ingresso_seq_ingresso_seq"
4501pg_restore: [archiver (db)] Error from TOC entry 1100; 1259 47400588 SEQUENCE ingresso_seq_ingresso_seq postgres
4502pg_restore: [archiver (db)] could not execute query: ERROR: relation "ingresso_seq_ingresso_seq" already exists
4503 Command was: CREATE SEQUENCE public.ingresso_seq_ingresso_seq
4504 START WITH 1
4505 INCREMENT BY 1
4506 NO MINVALUE
4507 NO MAXVALUE
4508 CACHE 1;
4509
4510
4511
4512pg_restore: creating SEQUENCE OWNED BY "public.ingresso_seq_ingresso_seq"
4513pg_restore: creating TABLE "public.instituicao_financeira"
4514pg_restore: [archiver (db)] Error from TOC entry 1101; 1259 47400590 TABLE instituicao_financeira postgres
4515pg_restore: [archiver (db)] could not execute query: ERROR: relation "instituicao_financeira" already exists
4516 Command was: CREATE TABLE public.instituicao_financeira (
4517 seq_instituicao_financeira integer NOT NULL,
4518 nome character varying(200),
4519 tipo character varying(20),
4520 usuario_alteracao character varying(100),
4521 data_alteracao timestamp without time zone DEFAULT now(),
4522 codigo character varying(100)
4523);
4524
4525
4526
4527pg_restore: creating SEQUENCE "public.seq_seq_liberacao"
4528pg_restore: [archiver (db)] Error from TOC entry 1102; 1259 47400594 SEQUENCE seq_seq_liberacao postgres
4529pg_restore: [archiver (db)] could not execute query: ERROR: relation "seq_seq_liberacao" already exists
4530 Command was: CREATE SEQUENCE public.seq_seq_liberacao
4531 START WITH 1
4532 INCREMENT BY 1
4533 NO MINVALUE
4534 NO MAXVALUE
4535 CACHE 1;
4536
4537
4538
4539pg_restore: creating TABLE "public.liberacao"
4540pg_restore: [archiver (db)] Error from TOC entry 1103; 1259 47400596 TABLE liberacao postgres
4541pg_restore: [archiver (db)] could not execute query: ERROR: relation "liberacao" already exists
4542 Command was: CREATE TABLE public.liberacao (
4543 seq_liberacao integer DEFAULT nextval('public.seq_seq_liberacao'::regclass) NOT NULL,
4544 codigo character varying(100) NOT NULL,
4545 seq_produto integer NOT NULL,
4546 status character varying(5),
4547 data_acesso timestamp without time zone,
4548 usuario_alteracao character varying(100),
4549 data_alteracao timestamp without time zone DEFAULT now() NOT NULL,
4550 tipo_acesso character varying(20),
4551 mensagem character varying(50)
4552);
4553
4554
4555
4556pg_restore: creating SEQUENCE "public.seq_liberacao_historico"
4557pg_restore: [archiver (db)] Error from TOC entry 1104; 1259 47400601 SEQUENCE seq_liberacao_historico postgres
4558pg_restore: [archiver (db)] could not execute query: ERROR: relation "seq_liberacao_historico" already exists
4559 Command was: CREATE SEQUENCE public.seq_liberacao_historico
4560 START WITH 1
4561 INCREMENT BY 1
4562 NO MINVALUE
4563 NO MAXVALUE
4564 CACHE 1;
4565
4566
4567
4568pg_restore: creating TABLE "public.liberacao_historico"
4569pg_restore: [archiver (db)] Error from TOC entry 1105; 1259 47400603 TABLE liberacao_historico postgres
4570pg_restore: [archiver (db)] could not execute query: ERROR: relation "liberacao_historico" already exists
4571 Command was: CREATE TABLE public.liberacao_historico (
4572 seq_liberacao_historico integer DEFAULT nextval('public.seq_liberacao_historico'::regclass) NOT NULL,
4573 seq_liberacao integer,
4574 codigo character varying(100) NOT NULL,
4575 seq_produto integer,
4576 status character varying(5),
4577 data_acesso timestamp without time zone,
4578 usuario_alteracao character varying(100),
4579 data_alteracao timestamp without time zone DEFAULT now() NOT NULL,
4580 tipo_acesso character varying(20),
4581 mensagem character varying(16),
4582 seq_evento integer
4583);
4584
4585
4586
4587pg_restore: creating TABLE "public.matricula"
4588pg_restore: [archiver (db)] Error from TOC entry 1106; 1259 47400608 TABLE matricula postgres
4589pg_restore: [archiver (db)] could not execute query: ERROR: relation "matricula" already exists
4590 Command was: CREATE TABLE public.matricula (
4591 matricula integer NOT NULL,
4592 seq_pessoa integer NOT NULL,
4593 seq_produto integer NOT NULL,
4594 seq_cadeira integer,
4595 seq_camarote integer,
4596 data_criacao timestamp without time zone,
4597 data_aquisicao timestamp without time zone,
4598 data_cancelamento timestamp without time zone,
4599 dia_cobranca date,
4600 usuario_alteracao character varying(100),
4601 data_alteracao timestamp without time zone DEFAULT now(),
4602 seq_pagador integer,
4603 em_dia boolean DEFAULT false,
4604 seq_pessoa_dados_pagamento integer,
4605 seq_forma_pagamento integer DEFAULT 1 NOT NULL,
4606 seq_instituicao_financeira integer,
4607 cob_conta character varying(100),
4608 cob_agencia character varying(100),
4609 cob_numero_cartao character varying(100),
4610 cob_data_vencimento_cartao date,
4611 cob_codigo_seguranca_cartao character varying(20),
4612 cob_cep character varying(30),
4613 cob_endereco character varying(200),
4614 cob_bairro character varying(100),
4615 cob_cidade character varying(100),
4616 cob_uf character varying(20),
4617 cob_pais integer,
4618 cob_complemento character varying(200),
4619 cob_numero integer,
4620 ativa boolean,
4621 numero_cartao character varying(50),
4622 seq_vinculado integer,
4623 seq_plano_pgto integer,
4624 matricula_acbf character varying(50),
4625 seq_produto_escolinha_turma integer
4626);
4627
4628
4629
4630pg_restore: creating TABLE "public.movimento_cobranca"
4631pg_restore: [archiver (db)] Error from TOC entry 1107; 1259 47400614 TABLE movimento_cobranca postgres
4632pg_restore: [archiver (db)] could not execute query: ERROR: relation "movimento_cobranca" already exists
4633 Command was: CREATE TABLE public.movimento_cobranca (
4634 seq_movimento_cobranca integer NOT NULL,
4635 matricula integer,
4636 seq_produto_taxa integer,
4637 valor_devido numeric(20,5),
4638 valor_pago numeric(20,5),
4639 data_vencimento date,
4640 data_pagamento timestamp without time zone,
4641 data_cancelamento timestamp without time zone,
4642 usuario_alteracao character varying(100),
4643 data_alteracao timestamp without time zone DEFAULT now(),
4644 seq_pessoa integer,
4645 competencia character varying(10)
4646);
4647
4648
4649
4650pg_restore: creating SEQUENCE "public.matricula_cobranca_seq_matricula_cobranca_seq"
4651pg_restore: [archiver (db)] Error from TOC entry 1108; 1259 47400618 SEQUENCE matricula_cobranca_seq_matricula_cobranca_seq postgres
4652pg_restore: [archiver (db)] could not execute query: ERROR: relation "matricula_cobranca_seq_matricula_cobranca_seq" already exists
4653 Command was: CREATE SEQUENCE public.matricula_cobranca_seq_matricula_cobranca_seq
4654 START WITH 1
4655 INCREMENT BY 1
4656 NO MINVALUE
4657 NO MAXVALUE
4658 CACHE 1;
4659
4660
4661
4662pg_restore: creating SEQUENCE OWNED BY "public.matricula_cobranca_seq_matricula_cobranca_seq"
4663pg_restore: creating SEQUENCE "public.matricula_matricula_seq"
4664pg_restore: [archiver (db)] Error from TOC entry 1109; 1259 47400620 SEQUENCE matricula_matricula_seq postgres
4665pg_restore: [archiver (db)] could not execute query: ERROR: relation "matricula_matricula_seq" already exists
4666 Command was: CREATE SEQUENCE public.matricula_matricula_seq
4667 START WITH 1
4668 INCREMENT BY 1
4669 NO MINVALUE
4670 NO MAXVALUE
4671 CACHE 1;
4672
4673
4674
4675pg_restore: creating SEQUENCE OWNED BY "public.matricula_matricula_seq"
4676pg_restore: creating TABLE "public.meio_pagamento"
4677pg_restore: [archiver (db)] Error from TOC entry 1110; 1259 47400622 TABLE meio_pagamento postgres
4678pg_restore: [archiver (db)] could not execute query: ERROR: relation "meio_pagamento" already exists
4679 Command was: CREATE TABLE public.meio_pagamento (
4680 seq_meio_pagamento integer NOT NULL,
4681 nome character varying(100) NOT NULL,
4682 cod_integracao character varying(100) NOT NULL,
4683 seq_forma_pagamento integer NOT NULL,
4684 usuario_alteracao character varying(100) DEFAULT 'golway'::character varying NOT NULL,
4685 data_alteracao timestamp without time zone DEFAULT now() NOT NULL
4686);
4687
4688
4689
4690pg_restore: creating SEQUENCE "public.meio_pagamento_seq_meio_pagamento_seq"
4691pg_restore: [archiver (db)] Error from TOC entry 1111; 1259 47400627 SEQUENCE meio_pagamento_seq_meio_pagamento_seq postgres
4692pg_restore: [archiver (db)] could not execute query: ERROR: relation "meio_pagamento_seq_meio_pagamento_seq" already exists
4693 Command was: CREATE SEQUENCE public.meio_pagamento_seq_meio_pagamento_seq
4694 START WITH 1
4695 INCREMENT BY 1
4696 NO MINVALUE
4697 NO MAXVALUE
4698 CACHE 1;
4699
4700
4701
4702pg_restore: creating SEQUENCE OWNED BY "public.meio_pagamento_seq_meio_pagamento_seq"
4703pg_restore: creating TABLE "public.menu"
4704pg_restore: [archiver (db)] Error from TOC entry 1112; 1259 47400629 TABLE menu postgres
4705pg_restore: [archiver (db)] could not execute query: ERROR: relation "menu" already exists
4706 Command was: CREATE TABLE public.menu (
4707 seq_menu integer NOT NULL,
4708 texto character varying(50),
4709 objeto integer,
4710 pai integer,
4711 icone character varying(50),
4712 ativo boolean DEFAULT true
4713);
4714
4715
4716
4717pg_restore: creating SEQUENCE "public.menu_seq_menu_seq"
4718pg_restore: [archiver (db)] Error from TOC entry 1113; 1259 47400633 SEQUENCE menu_seq_menu_seq postgres
4719pg_restore: [archiver (db)] could not execute query: ERROR: relation "menu_seq_menu_seq" already exists
4720 Command was: CREATE SEQUENCE public.menu_seq_menu_seq
4721 START WITH 1
4722 INCREMENT BY 1
4723 NO MINVALUE
4724 NO MAXVALUE
4725 CACHE 1;
4726
4727
4728
4729pg_restore: creating SEQUENCE OWNED BY "public.menu_seq_menu_seq"
4730pg_restore: creating TABLE "public.movimento"
4731pg_restore: [archiver (db)] Error from TOC entry 1114; 1259 47400635 TABLE movimento postgres
4732pg_restore: [archiver (db)] could not execute query: ERROR: relation "movimento" already exists
4733 Command was: CREATE TABLE public.movimento (
4734 seq_movimento integer NOT NULL,
4735 data_criacao timestamp without time zone DEFAULT now(),
4736 data_pagamento timestamp without time zone,
4737 valor_total numeric(20,5),
4738 caixa integer,
4739 data_estorno timestamp without time zone,
4740 usuario_alteracao character varying(100),
4741 data_alteracao timestamp without time zone DEFAULT now(),
4742 seq_pessoa integer,
4743 operador integer
4744);
4745
4746
4747
4748pg_restore: creating TABLE "public.movimento_item"
4749pg_restore: [archiver (db)] Error from TOC entry 1115; 1259 47400640 TABLE movimento_item postgres
4750pg_restore: [archiver (db)] could not execute query: ERROR: relation "movimento_item" already exists
4751 Command was: CREATE TABLE public.movimento_item (
4752 seq_movimento_item integer NOT NULL,
4753 seq_produto_taxa integer,
4754 seq_movimento integer NOT NULL,
4755 valor_devido numeric(20,5),
4756 seq_movimento_cobranca integer,
4757 usuario_alteracao character varying(100),
4758 data_alteracao timestamp without time zone DEFAULT now(),
4759 seq_sessao_evento_produto integer,
4760 qtde numeric(30,5)
4761);
4762
4763
4764
4765pg_restore: creating SEQUENCE "public.movimento_item_seq_movimento_item_seq"
4766pg_restore: [archiver (db)] Error from TOC entry 1116; 1259 47400644 SEQUENCE movimento_item_seq_movimento_item_seq postgres
4767pg_restore: [archiver (db)] could not execute query: ERROR: relation "movimento_item_seq_movimento_item_seq" already exists
4768 Command was: CREATE SEQUENCE public.movimento_item_seq_movimento_item_seq
4769 START WITH 1
4770 INCREMENT BY 1
4771 NO MINVALUE
4772 NO MAXVALUE
4773 CACHE 1;
4774
4775
4776
4777pg_restore: creating SEQUENCE OWNED BY "public.movimento_item_seq_movimento_item_seq"
4778pg_restore: creating TABLE "public.movimento_pagamento"
4779pg_restore: [archiver (db)] Error from TOC entry 1117; 1259 47400646 TABLE movimento_pagamento postgres
4780pg_restore: [archiver (db)] could not execute query: ERROR: relation "movimento_pagamento" already exists
4781 Command was: CREATE TABLE public.movimento_pagamento (
4782 seq_movimento_pagamento integer NOT NULL,
4783 seq_movimento integer NOT NULL,
4784 valor_pago numeric(20,5),
4785 data_pagamento timestamp without time zone,
4786 usuario_alteracao character varying(100),
4787 data_alteracao timestamp without time zone DEFAULT now(),
4788 seq_meio_pagamento integer,
4789 seq_forma_pagamento integer
4790);
4791
4792
4793
4794pg_restore: creating SEQUENCE "public.movimento_pagamento_seq_movimento_pagamento_seq"
4795pg_restore: [archiver (db)] Error from TOC entry 1118; 1259 47400650 SEQUENCE movimento_pagamento_seq_movimento_pagamento_seq postgres
4796pg_restore: [archiver (db)] could not execute query: ERROR: relation "movimento_pagamento_seq_movimento_pagamento_seq" already exists
4797 Command was: CREATE SEQUENCE public.movimento_pagamento_seq_movimento_pagamento_seq
4798 START WITH 1
4799 INCREMENT BY 1
4800 NO MINVALUE
4801 NO MAXVALUE
4802 CACHE 1;
4803
4804
4805
4806pg_restore: creating SEQUENCE OWNED BY "public.movimento_pagamento_seq_movimento_pagamento_seq"
4807pg_restore: creating SEQUENCE "public.movimento_seq_movimento_seq"
4808pg_restore: [archiver (db)] Error from TOC entry 1119; 1259 47400652 SEQUENCE movimento_seq_movimento_seq postgres
4809pg_restore: [archiver (db)] could not execute query: ERROR: relation "movimento_seq_movimento_seq" already exists
4810 Command was: CREATE SEQUENCE public.movimento_seq_movimento_seq
4811 START WITH 1
4812 INCREMENT BY 1
4813 NO MINVALUE
4814 NO MAXVALUE
4815 CACHE 1;
4816
4817
4818
4819pg_restore: creating SEQUENCE OWNED BY "public.movimento_seq_movimento_seq"
4820pg_restore: creating TABLE "public.objeto"
4821pg_restore: [archiver (db)] Error from TOC entry 1120; 1259 47400654 TABLE objeto postgres
4822pg_restore: [archiver (db)] could not execute query: ERROR: relation "objeto" already exists
4823 Command was: CREATE TABLE public.objeto (
4824 seq_objeto integer NOT NULL,
4825 nome character varying(200) NOT NULL,
4826 descricao character varying(100) NOT NULL,
4827 usuario_alteracao character varying(100) DEFAULT 'golway'::character varying NOT NULL,
4828 data_alteracao timestamp without time zone DEFAULT now() NOT NULL,
4829 controller character varying(50),
4830 view character varying(50),
4831 grupo character varying(50)
4832);
4833
4834
4835
4836pg_restore: creating SEQUENCE "public.objeto_seq_objeto_seq"
4837pg_restore: [archiver (db)] Error from TOC entry 1121; 1259 47400659 SEQUENCE objeto_seq_objeto_seq postgres
4838pg_restore: [archiver (db)] could not execute query: ERROR: relation "objeto_seq_objeto_seq" already exists
4839 Command was: CREATE SEQUENCE public.objeto_seq_objeto_seq
4840 START WITH 1
4841 INCREMENT BY 1
4842 NO MINVALUE
4843 NO MAXVALUE
4844 CACHE 1;
4845
4846
4847
4848pg_restore: creating SEQUENCE OWNED BY "public.objeto_seq_objeto_seq"
4849pg_restore: creating TABLE "public.obs_matricula"
4850pg_restore: [archiver (db)] Error from TOC entry 1122; 1259 47400661 TABLE obs_matricula postgres
4851pg_restore: [archiver (db)] could not execute query: ERROR: relation "obs_matricula" already exists
4852 Command was: CREATE TABLE public.obs_matricula (
4853 seq_obs_matricula integer NOT NULL,
4854 matricula integer NOT NULL,
4855 obs text,
4856 usuario_alteracao character varying(100),
4857 data_alteracao timestamp without time zone DEFAULT now(),
4858 lido boolean
4859);
4860
4861
4862
4863pg_restore: creating SEQUENCE "public.obs_matricula_matricula_seq"
4864pg_restore: [archiver (db)] Error from TOC entry 1123; 1259 47400668 SEQUENCE obs_matricula_matricula_seq postgres
4865pg_restore: [archiver (db)] could not execute query: ERROR: relation "obs_matricula_matricula_seq" already exists
4866 Command was: CREATE SEQUENCE public.obs_matricula_matricula_seq
4867 START WITH 1
4868 INCREMENT BY 1
4869 NO MINVALUE
4870 NO MAXVALUE
4871 CACHE 1;
4872
4873
4874
4875pg_restore: creating SEQUENCE OWNED BY "public.obs_matricula_matricula_seq"
4876pg_restore: creating SEQUENCE "public.obs_matricula_seq_obs_matricula_seq"
4877pg_restore: [archiver (db)] Error from TOC entry 1124; 1259 47400670 SEQUENCE obs_matricula_seq_obs_matricula_seq postgres
4878pg_restore: [archiver (db)] could not execute query: ERROR: relation "obs_matricula_seq_obs_matricula_seq" already exists
4879 Command was: CREATE SEQUENCE public.obs_matricula_seq_obs_matricula_seq
4880 START WITH 1
4881 INCREMENT BY 1
4882 NO MINVALUE
4883 NO MAXVALUE
4884 CACHE 1;
4885
4886
4887
4888pg_restore: creating SEQUENCE OWNED BY "public.obs_matricula_seq_obs_matricula_seq"
4889pg_restore: creating TABLE "public.pais"
4890pg_restore: [archiver (db)] Error from TOC entry 1125; 1259 47400672 TABLE pais postgres
4891pg_restore: [archiver (db)] could not execute query: ERROR: relation "pais" already exists
4892 Command was: CREATE TABLE public.pais (
4893 seq_pais integer NOT NULL,
4894 nome character varying(50)
4895);
4896
4897
4898
4899pg_restore: creating SEQUENCE "public.pais_seq_pais_seq"
4900pg_restore: [archiver (db)] Error from TOC entry 1126; 1259 47400675 SEQUENCE pais_seq_pais_seq postgres
4901pg_restore: [archiver (db)] could not execute query: ERROR: relation "pais_seq_pais_seq" already exists
4902 Command was: CREATE SEQUENCE public.pais_seq_pais_seq
4903 START WITH 1
4904 INCREMENT BY 1
4905 NO MINVALUE
4906 NO MAXVALUE
4907 CACHE 1;
4908
4909
4910
4911pg_restore: creating SEQUENCE OWNED BY "public.pais_seq_pais_seq"
4912pg_restore: creating TABLE "public.perfil"
4913pg_restore: [archiver (db)] Error from TOC entry 1127; 1259 47400677 TABLE perfil postgres
4914pg_restore: [archiver (db)] could not execute query: ERROR: relation "perfil" already exists
4915 Command was: CREATE TABLE public.perfil (
4916 seq_perfil integer NOT NULL,
4917 nome character varying(100),
4918 usuario_alteracao character varying(100),
4919 data_alteracao timestamp without time zone DEFAULT now()
4920);
4921
4922
4923
4924pg_restore: creating TABLE "public.perfil_objeto"
4925pg_restore: [archiver (db)] Error from TOC entry 1128; 1259 47400681 TABLE perfil_objeto postgres
4926pg_restore: [archiver (db)] could not execute query: ERROR: relation "perfil_objeto" already exists
4927 Command was: CREATE TABLE public.perfil_objeto (
4928 seq_perfil_objeto integer NOT NULL,
4929 seq_objeto integer NOT NULL,
4930 seq_perfil integer NOT NULL,
4931 usuario_alteracao character varying(100) DEFAULT 'golway'::character varying NOT NULL,
4932 data_alteracao timestamp without time zone DEFAULT now() NOT NULL
4933);
4934
4935
4936
4937pg_restore: creating SEQUENCE "public.perfil_objeto_seq_perfil_objeto_seq"
4938pg_restore: [archiver (db)] Error from TOC entry 1129; 1259 47400686 SEQUENCE perfil_objeto_seq_perfil_objeto_seq postgres
4939pg_restore: [archiver (db)] could not execute query: ERROR: relation "perfil_objeto_seq_perfil_objeto_seq" already exists
4940 Command was: CREATE SEQUENCE public.perfil_objeto_seq_perfil_objeto_seq
4941 START WITH 1
4942 INCREMENT BY 1
4943 NO MINVALUE
4944 NO MAXVALUE
4945 CACHE 1;
4946
4947
4948
4949pg_restore: creating SEQUENCE OWNED BY "public.perfil_objeto_seq_perfil_objeto_seq"
4950pg_restore: creating SEQUENCE "public.perfil_seq_perfil_seq"
4951pg_restore: [archiver (db)] Error from TOC entry 1130; 1259 47400688 SEQUENCE perfil_seq_perfil_seq postgres
4952pg_restore: [archiver (db)] could not execute query: ERROR: relation "perfil_seq_perfil_seq" already exists
4953 Command was: CREATE SEQUENCE public.perfil_seq_perfil_seq
4954 START WITH 1
4955 INCREMENT BY 1
4956 NO MINVALUE
4957 NO MAXVALUE
4958 CACHE 1;
4959
4960
4961
4962pg_restore: creating SEQUENCE OWNED BY "public.perfil_seq_perfil_seq"
4963pg_restore: creating TABLE "public.pessoa"
4964pg_restore: [archiver (db)] Error from TOC entry 1131; 1259 47400690 TABLE pessoa postgres
4965pg_restore: [archiver (db)] could not execute query: ERROR: relation "pessoa" already exists
4966 Command was: CREATE TABLE public.pessoa (
4967 seq_pessoa integer NOT NULL,
4968 nome character varying(200) NOT NULL,
4969 seq_titular integer,
4970 seq_profissao integer,
4971 cpf character varying(50) NOT NULL,
4972 cpf_proprio boolean DEFAULT true,
4973 rg character varying(50),
4974 rg_proprio boolean DEFAULT true,
4975 cep character varying(30) NOT NULL,
4976 fone_residencial character varying(30),
4977 ddd_residencial character varying(10),
4978 fone_celular character varying(30),
4979 ddd_celular character varying(10),
4980 fone_comercial character varying(30),
4981 ddd_comercial character varying(10),
4982 data_nascimento timestamp without time zone,
4983 data_falecimento timestamp without time zone,
4984 sexo character varying(1) DEFAULT 'M'::character varying,
4985 estado_civil character varying(1) DEFAULT 'S'::character varying,
4986 email character varying(200),
4987 escolaridade integer DEFAULT 1,
4988 faixa_salarial integer DEFAULT 1,
4989 renda_familiar integer DEFAULT 1,
4990 casa integer DEFAULT 1,
4991 nro_filhos integer DEFAULT 1,
4992 nro_automoveis integer DEFAULT 1,
4993 nro_televisoes integer DEFAULT 1,
4994 nro_telefones integer DEFAULT 1,
4995 nro_celulares integer DEFAULT 1,
4996 nro_computadores integer DEFAULT 1,
4997 senha_md5 character varying(100),
4998 senha_tmp character varying(100),
4999 usuario_alteracao character varying(100),
5000 data_alteracao timestamp without time zone DEFAULT now(),
5001 endereco character varying(100),
5002 numero character varying(10),
5003 complemento character varying(200),
5004 bairro character varying(100),
5005 cidade character varying(100),
5006 estado character varying(2),
5007 pais integer,
5008 cnpj character varying(50),
5009 juridica boolean DEFAULT false,
5010 seq_pessoa_acbf integer
5011);
5012
5013
5014
5015pg_restore: creating TABLE "public.pessoa_dados_pagamento"
5016pg_restore: [archiver (db)] Error from TOC entry 1132; 1259 47400709 TABLE pessoa_dados_pagamento postgres
5017pg_restore: [archiver (db)] could not execute query: ERROR: relation "pessoa_dados_pagamento" already exists
5018 Command was: CREATE TABLE public.pessoa_dados_pagamento (
5019 seq_pessoa_dados_pagamento integer NOT NULL,
5020 seq_pessoa integer NOT NULL,
5021 seq_forma_pagamento integer NOT NULL,
5022 seq_instituicao_financeira integer,
5023 cob_conta character varying(100),
5024 cob_agencia character varying(100),
5025 cob_numero_cartao character varying(100),
5026 cob_data_vencimento_cartao date,
5027 cob_codigo_seguranca_cartao character varying(20),
5028 cob_cep character varying(30),
5029 cob_endereco character varying(200),
5030 cob_bairro character varying(100),
5031 cob_cidade character varying(100),
5032 cob_uf character varying(20),
5033 cob_pais integer,
5034 usuario_alteracao character varying(100)
5035);
5036
5037
5038
5039pg_restore: creating SEQUENCE "public.pessoa_dados_pagamento_seq_pessoa_dados_pagamento_seq"
5040pg_restore: [archiver (db)] Error from TOC entry 1133; 1259 47400712 SEQUENCE pessoa_dados_pagamento_seq_pessoa_dados_pagamento_seq postgres
5041pg_restore: [archiver (db)] could not execute query: ERROR: relation "pessoa_dados_pagamento_seq_pessoa_dados_pagamento_seq" already exists
5042 Command was: CREATE SEQUENCE public.pessoa_dados_pagamento_seq_pessoa_dados_pagamento_seq
5043 START WITH 1
5044 INCREMENT BY 1
5045 NO MINVALUE
5046 NO MAXVALUE
5047 CACHE 1;
5048
5049
5050
5051pg_restore: creating SEQUENCE OWNED BY "public.pessoa_dados_pagamento_seq_pessoa_dados_pagamento_seq"
5052pg_restore: creating SEQUENCE "public.pessoa_seq_pessoa_seq"
5053pg_restore: [archiver (db)] Error from TOC entry 1134; 1259 47400714 SEQUENCE pessoa_seq_pessoa_seq postgres
5054pg_restore: [archiver (db)] could not execute query: ERROR: relation "pessoa_seq_pessoa_seq" already exists
5055 Command was: CREATE SEQUENCE public.pessoa_seq_pessoa_seq
5056 START WITH 1
5057 INCREMENT BY 1
5058 NO MINVALUE
5059 NO MAXVALUE
5060 CACHE 1;
5061
5062
5063
5064pg_restore: creating SEQUENCE OWNED BY "public.pessoa_seq_pessoa_seq"
5065pg_restore: creating TABLE "public.pessoa_vinculo"
5066pg_restore: [archiver (db)] Error from TOC entry 1135; 1259 47400716 TABLE pessoa_vinculo postgres
5067pg_restore: [archiver (db)] could not execute query: ERROR: relation "pessoa_vinculo" already exists
5068 Command was: CREATE TABLE public.pessoa_vinculo (
5069 seq_pessoa_vinculo integer NOT NULL,
5070 seq_pessoa integer,
5071 seq_vinculo integer,
5072 data_inicio date,
5073 data_fim date,
5074 obs character varying(200),
5075 usuario_alteracao character varying(100) DEFAULT 'golway'::character varying NOT NULL,
5076 data_alteracao timestamp without time zone DEFAULT now() NOT NULL
5077);
5078
5079
5080
5081pg_restore: creating SEQUENCE "public.pessoa_vinculo_seq_pessoa_vinculo_seq"
5082pg_restore: [archiver (db)] Error from TOC entry 1136; 1259 47400721 SEQUENCE pessoa_vinculo_seq_pessoa_vinculo_seq postgres
5083pg_restore: [archiver (db)] could not execute query: ERROR: relation "pessoa_vinculo_seq_pessoa_vinculo_seq" already exists
5084 Command was: CREATE SEQUENCE public.pessoa_vinculo_seq_pessoa_vinculo_seq
5085 START WITH 1
5086 INCREMENT BY 1
5087 NO MINVALUE
5088 NO MAXVALUE
5089 CACHE 1;
5090
5091
5092
5093pg_restore: creating SEQUENCE OWNED BY "public.pessoa_vinculo_seq_pessoa_vinculo_seq"
5094pg_restore: creating TABLE "public.plano_pgto"
5095pg_restore: [archiver (db)] Error from TOC entry 1137; 1259 47400723 TABLE plano_pgto acbf
5096pg_restore: [archiver (db)] could not execute query: ERROR: relation "plano_pgto" already exists
5097 Command was: CREATE TABLE public.plano_pgto (
5098 seq_plano_pgto integer NOT NULL,
5099 seq_produto integer NOT NULL,
5100 descricao character varying(100) NOT NULL,
5101 usuario_alteracao character varying(100),
5102 data_alteracao timestamp without time zone DEFAULT now()
5103);
5104
5105
5106
5107pg_restore: [archiver (db)] could not execute query: ERROR: role "acbf" does not exist
5108 Command was: ALTER TABLE public.plano_pgto OWNER TO acbf;
5109
5110
5111pg_restore: creating SEQUENCE "public.plano_pgto_seq_plano_pgto_seq"
5112pg_restore: [archiver (db)] Error from TOC entry 1138; 1259 47400727 SEQUENCE plano_pgto_seq_plano_pgto_seq acbf
5113pg_restore: [archiver (db)] could not execute query: ERROR: relation "plano_pgto_seq_plano_pgto_seq" already exists
5114 Command was: CREATE SEQUENCE public.plano_pgto_seq_plano_pgto_seq
5115 START WITH 1
5116 INCREMENT BY 1
5117 NO MINVALUE
5118 NO MAXVALUE
5119 CACHE 1;
5120
5121
5122
5123pg_restore: [archiver (db)] could not execute query: ERROR: role "acbf" does not exist
5124 Command was: ALTER TABLE public.plano_pgto_seq_plano_pgto_seq OWNER TO acbf;
5125
5126
5127pg_restore: creating SEQUENCE OWNED BY "public.plano_pgto_seq_plano_pgto_seq"
5128pg_restore: creating TABLE "public.portao"
5129pg_restore: [archiver (db)] Error from TOC entry 1139; 1259 47400729 TABLE portao postgres
5130pg_restore: [archiver (db)] could not execute query: ERROR: relation "portao" already exists
5131 Command was: CREATE TABLE public.portao (
5132 seq_portao integer NOT NULL,
5133 seq_setor integer,
5134 portao character varying(100) NOT NULL,
5135 usuario_alteracao character varying(100),
5136 data_alteracao timestamp without time zone DEFAULT now()
5137);
5138
5139
5140
5141pg_restore: creating SEQUENCE "public.portao_seq_portao_seq_1"
5142pg_restore: [archiver (db)] Error from TOC entry 1140; 1259 47400733 SEQUENCE portao_seq_portao_seq_1 postgres
5143pg_restore: [archiver (db)] could not execute query: ERROR: relation "portao_seq_portao_seq_1" already exists
5144 Command was: CREATE SEQUENCE public.portao_seq_portao_seq_1
5145 START WITH 1
5146 INCREMENT BY 1
5147 NO MINVALUE
5148 NO MAXVALUE
5149 CACHE 1;
5150
5151
5152
5153pg_restore: creating SEQUENCE OWNED BY "public.portao_seq_portao_seq_1"
5154pg_restore: creating TABLE "public.produto"
5155pg_restore: [archiver (db)] Error from TOC entry 1141; 1259 47400735 TABLE produto postgres
5156pg_restore: [archiver (db)] could not execute query: ERROR: relation "produto" already exists
5157 Command was: CREATE TABLE public.produto (
5158 seq_produto integer NOT NULL,
5159 seq_produto_contrato integer,
5160 produto character varying(200),
5161 seq_produto_classe integer,
5162 obs text,
5163 usuario_alteracao character varying(100),
5164 data_alteracao timestamp without time zone DEFAULT now(),
5165 descricao text,
5166 tipo character varying(100),
5167 seq_produto_configuracao integer
5168);
5169
5170
5171
5172pg_restore: creating TABLE "public.produto_catraca"
5173pg_restore: [archiver (db)] Error from TOC entry 1142; 1259 47400742 TABLE produto_catraca postgres
5174pg_restore: [archiver (db)] could not execute query: ERROR: relation "produto_catraca" already exists
5175 Command was: CREATE TABLE public.produto_catraca (
5176 seq_produto_catraca integer NOT NULL,
5177 seq_catraca integer NOT NULL,
5178 seq_produto integer NOT NULL,
5179 status character varying(10),
5180 usuario_alteracao character varying(100),
5181 data_alteracao timestamp without time zone DEFAULT now()
5182);
5183
5184
5185
5186pg_restore: creating SEQUENCE "public.produto_catraca_seq_produto_catraca_seq"
5187pg_restore: [archiver (db)] Error from TOC entry 1143; 1259 47400746 SEQUENCE produto_catraca_seq_produto_catraca_seq postgres
5188pg_restore: [archiver (db)] could not execute query: ERROR: relation "produto_catraca_seq_produto_catraca_seq" already exists
5189 Command was: CREATE SEQUENCE public.produto_catraca_seq_produto_catraca_seq
5190 START WITH 1
5191 INCREMENT BY 1
5192 NO MINVALUE
5193 NO MAXVALUE
5194 CACHE 1;
5195
5196
5197
5198pg_restore: creating SEQUENCE OWNED BY "public.produto_catraca_seq_produto_catraca_seq"
5199pg_restore: creating TABLE "public.produto_classe"
5200pg_restore: [archiver (db)] Error from TOC entry 1144; 1259 47400748 TABLE produto_classe postgres
5201pg_restore: [archiver (db)] could not execute query: ERROR: relation "produto_classe" already exists
5202 Command was: CREATE TABLE public.produto_classe (
5203 seq_produto_classe integer NOT NULL,
5204 classe character varying(100),
5205 usuario_alteracao character varying(100),
5206 data_alteracao timestamp without time zone DEFAULT now()
5207);
5208
5209
5210
5211pg_restore: creating SEQUENCE "public.produto_classe_seq_produto_classe_seq"
5212pg_restore: [archiver (db)] Error from TOC entry 1145; 1259 47400752 SEQUENCE produto_classe_seq_produto_classe_seq postgres
5213pg_restore: [archiver (db)] could not execute query: ERROR: relation "produto_classe_seq_produto_classe_seq" already exists
5214 Command was: CREATE SEQUENCE public.produto_classe_seq_produto_classe_seq
5215 START WITH 1
5216 INCREMENT BY 1
5217 NO MINVALUE
5218 NO MAXVALUE
5219 CACHE 1;
5220
5221
5222
5223pg_restore: creating SEQUENCE OWNED BY "public.produto_classe_seq_produto_classe_seq"
5224pg_restore: creating TABLE "public.produto_configuracao"
5225pg_restore: [archiver (db)] Error from TOC entry 1146; 1259 47400754 TABLE produto_configuracao postgres
5226pg_restore: [archiver (db)] could not execute query: ERROR: relation "produto_configuracao" already exists
5227 Command was: CREATE TABLE public.produto_configuracao (
5228 seq_produto_configuracao integer NOT NULL,
5229 cadeira boolean NOT NULL,
5230 camarote boolean NOT NULL,
5231 usuario_alteracao character varying(100),
5232 data_alteracao timestamp without time zone DEFAULT now() NOT NULL,
5233 casal boolean DEFAULT false NOT NULL
5234);
5235
5236
5237
5238pg_restore: creating SEQUENCE "public.produto_configuracao_seq_produto_configuracao_seq"
5239pg_restore: [archiver (db)] Error from TOC entry 1147; 1259 47400759 SEQUENCE produto_configuracao_seq_produto_configuracao_seq postgres
5240pg_restore: [archiver (db)] could not execute query: ERROR: relation "produto_configuracao_seq_produto_configuracao_seq" already exists
5241 Command was: CREATE SEQUENCE public.produto_configuracao_seq_produto_configuracao_seq
5242 START WITH 1
5243 INCREMENT BY 1
5244 NO MINVALUE
5245 NO MAXVALUE
5246 CACHE 1;
5247
5248
5249
5250pg_restore: creating SEQUENCE OWNED BY "public.produto_configuracao_seq_produto_configuracao_seq"
5251pg_restore: creating TABLE "public.produto_contrato"
5252pg_restore: [archiver (db)] Error from TOC entry 1148; 1259 47400761 TABLE produto_contrato postgres
5253pg_restore: [archiver (db)] could not execute query: ERROR: relation "produto_contrato" already exists
5254 Command was: CREATE TABLE public.produto_contrato (
5255 seq_produto_contrato integer NOT NULL,
5256 contrato text NOT NULL,
5257 data_inicio timestamp without time zone NOT NULL,
5258 usuario_alteracao character varying(100),
5259 data_alteracao timestamp without time zone DEFAULT now(),
5260 titulo character varying(100)
5261);
5262
5263
5264
5265pg_restore: creating SEQUENCE "public.produto_contrato_seq_produto_contrato_seq_1"
5266pg_restore: [archiver (db)] Error from TOC entry 1149; 1259 47400768 SEQUENCE produto_contrato_seq_produto_contrato_seq_1 postgres
5267pg_restore: [archiver (db)] could not execute query: ERROR: relation "produto_contrato_seq_produto_contrato_seq_1" already exists
5268 Command was: CREATE SEQUENCE public.produto_contrato_seq_produto_contrato_seq_1
5269 START WITH 1
5270 INCREMENT BY 1
5271 NO MINVALUE
5272 NO MAXVALUE
5273 CACHE 1;
5274
5275
5276
5277pg_restore: creating SEQUENCE OWNED BY "public.produto_contrato_seq_produto_contrato_seq_1"
5278pg_restore: creating TABLE "public.produto_escolinha_turma"
5279pg_restore: [archiver (db)] Error from TOC entry 1192; 1259 49893175 TABLE produto_escolinha_turma postgres
5280pg_restore: [archiver (db)] could not execute query: ERROR: relation "produto_escolinha_turma" already exists
5281 Command was: CREATE TABLE public.produto_escolinha_turma (
5282 seq_produto_escolinha_turma integer NOT NULL,
5283 seq_produto integer NOT NULL,
5284 nome character varying(100),
5285 vagas integer,
5286 usuario_alteracao character varying(100),
5287 data_alteracao timestamp without time zone DEFAULT now()
5288);
5289
5290
5291
5292pg_restore: creating SEQUENCE "public.produto_escolinha_turma_seq_produto_escolinha_turma_seq"
5293pg_restore: [archiver (db)] Error from TOC entry 1191; 1259 49893173 SEQUENCE produto_escolinha_turma_seq_produto_escolinha_turma_seq postgres
5294pg_restore: [archiver (db)] could not execute query: ERROR: relation "produto_escolinha_turma_seq_produto_escolinha_turma_seq" already exists
5295 Command was: CREATE SEQUENCE public.produto_escolinha_turma_seq_produto_escolinha_turma_seq
5296 START WITH 1
5297 INCREMENT BY 1
5298 NO MINVALUE
5299 NO MAXVALUE
5300 CACHE 1;
5301
5302
5303
5304pg_restore: creating SEQUENCE OWNED BY "public.produto_escolinha_turma_seq_produto_escolinha_turma_seq"
5305pg_restore: creating TABLE "public.produto_plano_pgto"
5306pg_restore: [archiver (db)] Error from TOC entry 1150; 1259 47400770 TABLE produto_plano_pgto acbf
5307pg_restore: [archiver (db)] could not execute query: ERROR: relation "produto_plano_pgto" already exists
5308 Command was: CREATE TABLE public.produto_plano_pgto (
5309 seq_produto_plano_pgto integer NOT NULL,
5310 seq_plano_pgto integer NOT NULL,
5311 seq_produto_taxa integer NOT NULL,
5312 data_alteracao timestamp without time zone DEFAULT now(),
5313 seq_pessoa integer,
5314 operador integer
5315);
5316
5317
5318
5319pg_restore: creating TABLE "public.movimento_item"
5320pg_restore: [archiver (db)] Error from TOC entry 1115; 1259 47400640 TABLE movimento_item postgres
5321pg_restore: [archiver (db)] could not execute query: ERROR: relation "movimento_item" already exists
5322 Command was: CREATE TABLE public.movimento_item (
5323 seq_movimento_item integer NOT NULL,
5324 seq_produto_taxa integer,
5325 seq_movimento integer NOT NULL,
5326 valor_devido numeric(20,5),
5327 seq_movimento_cobranca integer,
5328 usuario_alteracao character varying(100),
5329 data_alteracao timestamp without time zone DEFAULT now(),
5330 seq_sessao_evento_produto integer,
5331 qtde numeric(30,5)
5332);
5333
5334
5335
5336pg_restore: creating SEQUENCE "public.movimento_item_seq_movimento_item_seq"
5337pg_restore: [archiver (db)] Error from TOC entry 1116; 1259 47400644 SEQUENCE movimento_item_seq_movimento_item_seq postgres
5338pg_restore: [archiver (db)] could not execute query: ERROR: relation "movimento_item_seq_movimento_item_seq" already exists
5339 Command was: CREATE SEQUENCE public.movimento_item_seq_movimento_item_seq
5340 START WITH 1
5341 INCREMENT BY 1
5342 NO MINVALUE
5343 NO MAXVALUE
5344 CACHE 1;
5345
5346
5347
5348pg_restore: creating SEQUENCE OWNED BY "public.movimento_item_seq_movimento_item_seq"
5349pg_restore: creating TABLE "public.movimento_pagamento"
5350pg_restore: [archiver (db)] Error from TOC entry 1117; 1259 47400646 TABLE movimento_pagamento postgres
5351pg_restore: [archiver (db)] could not execute query: ERROR: relation "movimento_pagamento" already exists
5352 Command was: CREATE TABLE public.movimento_pagamento (
5353 seq_movimento_pagamento integer NOT NULL,
5354 seq_movimento integer NOT NULL,
5355 valor_pago numeric(20,5),
5356 data_pagamento timestamp without time zone,
5357 usuario_alteracao character varying(100),
5358 data_alteracao timestamp without time zone DEFAULT now(),
5359 seq_meio_pagamento integer,
5360 seq_forma_pagamento integer
5361);
5362
5363
5364
5365pg_restore: creating SEQUENCE "public.movimento_pagamento_seq_movimento_pagamento_seq"
5366pg_restore: [archiver (db)] Error from TOC entry 1118; 1259 47400650 SEQUENCE movimento_pagamento_seq_movimento_pagamento_seq postgres
5367pg_restore: [archiver (db)] could not execute query: ERROR: relation "movimento_pagamento_seq_movimento_pagamento_seq" already exists
5368 Command was: CREATE SEQUENCE public.movimento_pagamento_seq_movimento_pagamento_seq
5369 START WITH 1
5370 INCREMENT BY 1
5371 NO MINVALUE
5372 NO MAXVALUE
5373 CACHE 1;
5374
5375
5376
5377pg_restore: creating SEQUENCE OWNED BY "public.movimento_pagamento_seq_movimento_pagamento_seq"
5378pg_restore: creating SEQUENCE "public.movimento_seq_movimento_seq"
5379pg_restore: [archiver (db)] Error from TOC entry 1119; 1259 47400652 SEQUENCE movimento_seq_movimento_seq postgres
5380pg_restore: [archiver (db)] could not execute query: ERROR: relation "movimento_seq_movimento_seq" already exists
5381 Command was: CREATE SEQUENCE public.movimento_seq_movimento_seq
5382 START WITH 1
5383 INCREMENT BY 1
5384 NO MINVALUE
5385 NO MAXVALUE
5386 CACHE 1;
5387
5388
5389
5390pg_restore: creating SEQUENCE OWNED BY "public.movimento_seq_movimento_seq"
5391pg_restore: creating TABLE "public.objeto"
5392pg_restore: [archiver (db)] Error from TOC entry 1120; 1259 47400654 TABLE objeto postgres
5393pg_restore: [archiver (db)] could not execute query: ERROR: relation "objeto" already exists
5394 Command was: CREATE TABLE public.objeto (
5395 seq_objeto integer NOT NULL,
5396 nome character varying(200) NOT NULL,
5397 descricao character varying(100) NOT NULL,
5398 usuario_alteracao character varying(100) DEFAULT 'golway'::character varying NOT NULL,
5399 data_alteracao timestamp without time zone DEFAULT now() NOT NULL,
5400 controller character varying(50),
5401 view character varying(50),
5402 grupo character varying(50)
5403);
5404
5405
5406
5407pg_restore: creating SEQUENCE "public.objeto_seq_objeto_seq"
5408pg_restore: [archiver (db)] Error from TOC entry 1121; 1259 47400659 SEQUENCE objeto_seq_objeto_seq postgres
5409pg_restore: [archiver (db)] could not execute query: ERROR: relation "objeto_seq_objeto_seq" already exists
5410 Command was: CREATE SEQUENCE public.objeto_seq_objeto_seq
5411 START WITH 1
5412 INCREMENT BY 1
5413 NO MINVALUE
5414 NO MAXVALUE
5415 CACHE 1;
5416
5417
5418
5419pg_restore: creating SEQUENCE OWNED BY "public.objeto_seq_objeto_seq"
5420pg_restore: creating TABLE "public.obs_matricula"
5421pg_restore: [archiver (db)] Error from TOC entry 1122; 1259 47400661 TABLE obs_matricula postgres
5422pg_restore: [archiver (db)] could not execute query: ERROR: relation "obs_matricula" already exists
5423 Command was: CREATE TABLE public.obs_matricula (
5424 seq_obs_matricula integer NOT NULL,
5425 matricula integer NOT NULL,
5426 obs text,
5427 usuario_alteracao character varying(100),
5428 data_alteracao timestamp without time zone DEFAULT now(),
5429 lido boolean
5430);
5431
5432
5433
5434pg_restore: creating SEQUENCE "public.obs_matricula_matricula_seq"
5435pg_restore: [archiver (db)] Error from TOC entry 1123; 1259 47400668 SEQUENCE obs_matricula_matricula_seq postgres
5436pg_restore: [archiver (db)] could not execute query: ERROR: relation "obs_matricula_matricula_seq" already exists
5437 Command was: CREATE SEQUENCE public.obs_matricula_matricula_seq
5438 START WITH 1
5439 INCREMENT BY 1
5440 NO MINVALUE
5441 NO MAXVALUE
5442 CACHE 1;
5443
5444
5445
5446pg_restore: creating SEQUENCE OWNED BY "public.obs_matricula_matricula_seq"
5447pg_restore: creating SEQUENCE "public.obs_matricula_seq_obs_matricula_seq"
5448pg_restore: [archiver (db)] Error from TOC entry 1124; 1259 47400670 SEQUENCE obs_matricula_seq_obs_matricula_seq postgres
5449pg_restore: [archiver (db)] could not execute query: ERROR: relation "obs_matricula_seq_obs_matricula_seq" already exists
5450 Command was: CREATE SEQUENCE public.obs_matricula_seq_obs_matricula_seq
5451 START WITH 1
5452 INCREMENT BY 1
5453 NO MINVALUE
5454 NO MAXVALUE
5455 CACHE 1;
5456
5457
5458
5459pg_restore: creating SEQUENCE OWNED BY "public.obs_matricula_seq_obs_matricula_seq"
5460pg_restore: creating TABLE "public.pais"
5461pg_restore: [archiver (db)] Error from TOC entry 1125; 1259 47400672 TABLE pais postgres
5462pg_restore: [archiver (db)] could not execute query: ERROR: relation "pais" already exists
5463 Command was: CREATE TABLE public.pais (
5464 seq_pais integer NOT NULL,
5465 nome character varying(50)
5466);
5467
5468
5469
5470pg_restore: creating SEQUENCE "public.pais_seq_pais_seq"
5471pg_restore: [archiver (db)] Error from TOC entry 1126; 1259 47400675 SEQUENCE pais_seq_pais_seq postgres
5472pg_restore: [archiver (db)] could not execute query: ERROR: relation "pais_seq_pais_seq" already exists
5473 Command was: CREATE SEQUENCE public.pais_seq_pais_seq
5474 START WITH 1
5475 INCREMENT BY 1
5476 NO MINVALUE
5477 NO MAXVALUE
5478 CACHE 1;
5479
5480
5481
5482pg_restore: creating SEQUENCE OWNED BY "public.pais_seq_pais_seq"
5483pg_restore: creating TABLE "public.perfil"
5484pg_restore: [archiver (db)] Error from TOC entry 1127; 1259 47400677 TABLE perfil postgres
5485pg_restore: [archiver (db)] could not execute query: ERROR: relation "perfil" already exists
5486 Command was: CREATE TABLE public.perfil (
5487 seq_perfil integer NOT NULL,
5488 nome character varying(100),
5489 usuario_alteracao character varying(100),
5490 data_alteracao timestamp without time zone DEFAULT now()
5491);
5492
5493
5494
5495pg_restore: creating TABLE "public.perfil_objeto"
5496pg_restore: [archiver (db)] Error from TOC entry 1128; 1259 47400681 TABLE perfil_objeto postgres
5497pg_restore: [archiver (db)] could not execute query: ERROR: relation "perfil_objeto" already exists
5498 Command was: CREATE TABLE public.perfil_objeto (
5499 seq_perfil_objeto integer NOT NULL,
5500 seq_objeto integer NOT NULL,
5501 seq_perfil integer NOT NULL,
5502 usuario_alteracao character varying(100) DEFAULT 'golway'::character varying NOT NULL,
5503 data_alteracao timestamp without time zone DEFAULT now() NOT NULL
5504);
5505
5506
5507
5508pg_restore: creating SEQUENCE "public.perfil_objeto_seq_perfil_objeto_seq"
5509pg_restore: [archiver (db)] Error from TOC entry 1129; 1259 47400686 SEQUENCE perfil_objeto_seq_perfil_objeto_seq postgres
5510pg_restore: [archiver (db)] could not execute query: ERROR: relation "perfil_objeto_seq_perfil_objeto_seq" already exists
5511 Command was: CREATE SEQUENCE public.perfil_objeto_seq_perfil_objeto_seq
5512 START WITH 1
5513 INCREMENT BY 1
5514 NO MINVALUE
5515 NO MAXVALUE
5516 CACHE 1;
5517
5518
5519
5520pg_restore: creating SEQUENCE OWNED BY "public.perfil_objeto_seq_perfil_objeto_seq"
5521pg_restore: creating SEQUENCE "public.perfil_seq_perfil_seq"
5522pg_restore: [archiver (db)] Error from TOC entry 1130; 1259 47400688 SEQUENCE perfil_seq_perfil_seq postgres
5523pg_restore: [archiver (db)] could not execute query: ERROR: relation "perfil_seq_perfil_seq" already exists
5524 Command was: CREATE SEQUENCE public.perfil_seq_perfil_seq
5525 START WITH 1
5526 INCREMENT BY 1
5527 NO MINVALUE
5528 NO MAXVALUE
5529 CACHE 1;
5530
5531
5532
5533pg_restore: creating SEQUENCE OWNED BY "public.perfil_seq_perfil_seq"
5534pg_restore: creating TABLE "public.pessoa"
5535pg_restore: [archiver (db)] Error from TOC entry 1131; 1259 47400690 TABLE pessoa postgres
5536pg_restore: [archiver (db)] could not execute query: ERROR: relation "pessoa" already exists
5537 Command was: CREATE TABLE public.pessoa (
5538 seq_pessoa integer NOT NULL,
5539 nome character varying(200) NOT NULL,
5540 seq_titular integer,
5541 seq_profissao integer,
5542 cpf character varying(50) NOT NULL,
5543 cpf_proprio boolean DEFAULT true,
5544 rg character varying(50),
5545 rg_proprio boolean DEFAULT true,
5546 cep character varying(30) NOT NULL,
5547 fone_residencial character varying(30),
5548 ddd_residencial character varying(10),
5549 fone_celular character varying(30),
5550 ddd_celular character varying(10),
5551 fone_comercial character varying(30),
5552 ddd_comercial character varying(10),
5553 data_nascimento timestamp without time zone,
5554 data_falecimento timestamp without time zone,
5555 sexo character varying(1) DEFAULT 'M'::character varying,
5556 estado_civil character varying(1) DEFAULT 'S'::character varying,
5557 email character varying(200),
5558 escolaridade integer DEFAULT 1,
5559 faixa_salarial integer DEFAULT 1,
5560 renda_familiar integer DEFAULT 1,
5561 casa integer DEFAULT 1,
5562 nro_filhos integer DEFAULT 1,
5563 nro_automoveis integer DEFAULT 1,
5564 nro_televisoes integer DEFAULT 1,
5565 nro_telefones integer DEFAULT 1,
5566 nro_celulares integer DEFAULT 1,
5567 nro_computadores integer DEFAULT 1,
5568 senha_md5 character varying(100),
5569 senha_tmp character varying(100),
5570 usuario_alteracao character varying(100),
5571 data_alteracao timestamp without time zone DEFAULT now(),
5572 endereco character varying(100),
5573 numero character varying(10),
5574 complemento character varying(200),
5575 bairro character varying(100),
5576 cidade character varying(100),
5577 estado character varying(2),
5578 pais integer,
5579 cnpj character varying(50),
5580 juridica boolean DEFAULT false,
5581 seq_pessoa_acbf integer
5582);
5583
5584
5585
5586pg_restore: creating TABLE "public.pessoa_dados_pagamento"
5587pg_restore: [archiver (db)] Error from TOC entry 1132; 1259 47400709 TABLE pessoa_dados_pagamento postgres
5588pg_restore: [archiver (db)] could not execute query: ERROR: relation "pessoa_dados_pagamento" already exists
5589 Command was: CREATE TABLE public.pessoa_dados_pagamento (
5590 seq_pessoa_dados_pagamento integer NOT NULL,
5591 seq_pessoa integer NOT NULL,
5592 seq_forma_pagamento integer NOT NULL,
5593 seq_instituicao_financeira integer,
5594 cob_conta character varying(100),
5595 cob_agencia character varying(100),
5596 cob_numero_cartao character varying(100),
5597 cob_data_vencimento_cartao date,
5598 cob_codigo_seguranca_cartao character varying(20),
5599 cob_cep character varying(30),
5600 cob_endereco character varying(200),
5601 cob_bairro character varying(100),
5602 cob_cidade character varying(100),
5603 cob_uf character varying(20),
5604 cob_pais integer,
5605 usuario_alteracao character varying(100)
5606);
5607
5608
5609
5610pg_restore: creating SEQUENCE "public.pessoa_dados_pagamento_seq_pessoa_dados_pagamento_seq"
5611pg_restore: [archiver (db)] Error from TOC entry 1133; 1259 47400712 SEQUENCE pessoa_dados_pagamento_seq_pessoa_dados_pagamento_seq postgres
5612pg_restore: [archiver (db)] could not execute query: ERROR: relation "pessoa_dados_pagamento_seq_pessoa_dados_pagamento_seq" already exists
5613 Command was: CREATE SEQUENCE public.pessoa_dados_pagamento_seq_pessoa_dados_pagamento_seq
5614 START WITH 1
5615 INCREMENT BY 1
5616 NO MINVALUE
5617 NO MAXVALUE
5618 CACHE 1;
5619
5620
5621
5622pg_restore: creating SEQUENCE OWNED BY "public.pessoa_dados_pagamento_seq_pessoa_dados_pagamento_seq"
5623pg_restore: creating SEQUENCE "public.pessoa_seq_pessoa_seq"
5624pg_restore: [archiver (db)] Error from TOC entry 1134; 1259 47400714 SEQUENCE pessoa_seq_pessoa_seq postgres
5625pg_restore: [archiver (db)] could not execute query: ERROR: relation "pessoa_seq_pessoa_seq" already exists
5626 Command was: CREATE SEQUENCE public.pessoa_seq_pessoa_seq
5627 START WITH 1
5628 INCREMENT BY 1
5629 NO MINVALUE
5630 NO MAXVALUE
5631 CACHE 1;
5632
5633
5634
5635pg_restore: creating SEQUENCE OWNED BY "public.pessoa_seq_pessoa_seq"
5636pg_restore: creating TABLE "public.pessoa_vinculo"
5637pg_restore: [archiver (db)] Error from TOC entry 1135; 1259 47400716 TABLE pessoa_vinculo postgres
5638pg_restore: [archiver (db)] could not execute query: ERROR: relation "pessoa_vinculo" already exists
5639 Command was: CREATE TABLE public.pessoa_vinculo (
5640 seq_pessoa_vinculo integer NOT NULL,
5641 seq_pessoa integer,
5642 seq_vinculo integer,
5643 data_inicio date,
5644 data_fim date,
5645 obs character varying(200),
5646 usuario_alteracao character varying(100) DEFAULT 'golway'::character varying NOT NULL,
5647 data_alteracao timestamp without time zone DEFAULT now() NOT NULL
5648);
5649
5650
5651
5652pg_restore: creating SEQUENCE "public.pessoa_vinculo_seq_pessoa_vinculo_seq"
5653pg_restore: [archiver (db)] Error from TOC entry 1136; 1259 47400721 SEQUENCE pessoa_vinculo_seq_pessoa_vinculo_seq postgres
5654pg_restore: [archiver (db)] could not execute query: ERROR: relation "pessoa_vinculo_seq_pessoa_vinculo_seq" already exists
5655 Command was: CREATE SEQUENCE public.pessoa_vinculo_seq_pessoa_vinculo_seq
5656 START WITH 1
5657 INCREMENT BY 1
5658 NO MINVALUE
5659 NO MAXVALUE
5660 CACHE 1;
5661
5662
5663
5664pg_restore: creating SEQUENCE OWNED BY "public.pessoa_vinculo_seq_pessoa_vinculo_seq"
5665pg_restore: creating TABLE "public.plano_pgto"
5666pg_restore: [archiver (db)] Error from TOC entry 1137; 1259 47400723 TABLE plano_pgto acbf
5667pg_restore: [archiver (db)] could not execute query: ERROR: relation "plano_pgto" already exists
5668 Command was: CREATE TABLE public.plano_pgto (
5669 seq_plano_pgto integer NOT NULL,
5670 seq_produto integer NOT NULL,
5671 descricao character varying(100) NOT NULL,
5672 usuario_alteracao character varying(100),
5673 data_alteracao timestamp without time zone DEFAULT now()
5674);
5675
5676
5677
5678pg_restore: [archiver (db)] could not execute query: ERROR: role "acbf" does not exist
5679 Command was: ALTER TABLE public.plano_pgto OWNER TO acbf;
5680
5681
5682pg_restore: creating SEQUENCE "public.plano_pgto_seq_plano_pgto_seq"
5683pg_restore: [archiver (db)] Error from TOC entry 1138; 1259 47400727 SEQUENCE plano_pgto_seq_plano_pgto_seq acbf
5684pg_restore: [archiver (db)] could not execute query: ERROR: relation "plano_pgto_seq_plano_pgto_seq" already exists
5685 Command was: CREATE SEQUENCE public.plano_pgto_seq_plano_pgto_seq
5686 START WITH 1
5687 INCREMENT BY 1
5688 NO MINVALUE
5689 NO MAXVALUE
5690 CACHE 1;
5691
5692
5693
5694pg_restore: [archiver (db)] could not execute query: ERROR: role "acbf" does not exist
5695 Command was: ALTER TABLE public.plano_pgto_seq_plano_pgto_seq OWNER TO acbf;
5696
5697
5698pg_restore: creating SEQUENCE OWNED BY "public.plano_pgto_seq_plano_pgto_seq"
5699pg_restore: creating TABLE "public.portao"
5700pg_restore: [archiver (db)] Error from TOC entry 1139; 1259 47400729 TABLE portao postgres
5701pg_restore: [archiver (db)] could not execute query: ERROR: relation "portao" already exists
5702 Command was: CREATE TABLE public.portao (
5703 seq_portao integer NOT NULL,
5704 seq_setor integer,
5705 portao character varying(100) NOT NULL,
5706 usuario_alteracao character varying(100),
5707 data_alteracao timestamp without time zone DEFAULT now()
5708);
5709
5710
5711
5712pg_restore: creating SEQUENCE "public.portao_seq_portao_seq_1"
5713pg_restore: [archiver (db)] Error from TOC entry 1140; 1259 47400733 SEQUENCE portao_seq_portao_seq_1 postgres
5714pg_restore: [archiver (db)] could not execute query: ERROR: relation "portao_seq_portao_seq_1" already exists
5715 Command was: CREATE SEQUENCE public.portao_seq_portao_seq_1
5716 START WITH 1
5717 INCREMENT BY 1
5718 NO MINVALUE
5719 NO MAXVALUE
5720 CACHE 1;
5721
5722
5723
5724pg_restore: creating SEQUENCE OWNED BY "public.portao_seq_portao_seq_1"
5725pg_restore: creating TABLE "public.produto"
5726pg_restore: [archiver (db)] Error from TOC entry 1141; 1259 47400735 TABLE produto postgres
5727pg_restore: [archiver (db)] could not execute query: ERROR: relation "produto" already exists
5728 Command was: CREATE TABLE public.produto (
5729 seq_produto integer NOT NULL,
5730 seq_produto_contrato integer,
5731 produto character varying(200),
5732 seq_produto_classe integer,
5733 obs text,
5734 usuario_alteracao character varying(100),
5735 data_alteracao timestamp without time zone DEFAULT now(),
5736 descricao text,
5737 tipo character varying(100),
5738 seq_produto_configuracao integer
5739);
5740
5741
5742
5743pg_restore: creating TABLE "public.produto_catraca"
5744pg_restore: [archiver (db)] Error from TOC entry 1142; 1259 47400742 TABLE produto_catraca postgres
5745pg_restore: [archiver (db)] could not execute query: ERROR: relation "produto_catraca" already exists
5746 Command was: CREATE TABLE public.produto_catraca (
5747 seq_produto_catraca integer NOT NULL,
5748 seq_catraca integer NOT NULL,
5749 seq_produto integer NOT NULL,
5750 status character varying(10),
5751 usuario_alteracao character varying(100),
5752 data_alteracao timestamp without time zone DEFAULT now()
5753);
5754
5755
5756
5757pg_restore: creating SEQUENCE "public.produto_catraca_seq_produto_catraca_seq"
5758pg_restore: [archiver (db)] Error from TOC entry 1143; 1259 47400746 SEQUENCE produto_catraca_seq_produto_catraca_seq postgres
5759pg_restore: [archiver (db)] could not execute query: ERROR: relation "produto_catraca_seq_produto_catraca_seq" already exists
5760 Command was: CREATE SEQUENCE public.produto_catraca_seq_produto_catraca_seq
5761 START WITH 1
5762 INCREMENT BY 1
5763 NO MINVALUE
5764 NO MAXVALUE
5765 CACHE 1;
5766
5767
5768
5769pg_restore: creating SEQUENCE OWNED BY "public.produto_catraca_seq_produto_catraca_seq"
5770pg_restore: creating TABLE "public.produto_classe"
5771pg_restore: [archiver (db)] Error from TOC entry 1144; 1259 47400748 TABLE produto_classe postgres
5772pg_restore: [archiver (db)] could not execute query: ERROR: relation "produto_classe" already exists
5773 Command was: CREATE TABLE public.produto_classe (
5774 seq_produto_classe integer NOT NULL,
5775 classe character varying(100),
5776 usuario_alteracao character varying(100),
5777 data_alteracao timestamp without time zone DEFAULT now()
5778);
5779
5780
5781
5782pg_restore: creating SEQUENCE "public.produto_classe_seq_produto_classe_seq"
5783pg_restore: [archiver (db)] Error from TOC entry 1145; 1259 47400752 SEQUENCE produto_classe_seq_produto_classe_seq postgres
5784pg_restore: [archiver (db)] could not execute query: ERROR: relation "produto_classe_seq_produto_classe_seq" already exists
5785 Command was: CREATE SEQUENCE public.produto_classe_seq_produto_classe_seq
5786 START WITH 1
5787 INCREMENT BY 1
5788 NO MINVALUE
5789 NO MAXVALUE
5790 CACHE 1;
5791
5792
5793
5794pg_restore: creating SEQUENCE OWNED BY "public.produto_classe_seq_produto_classe_seq"
5795pg_restore: creating TABLE "public.produto_configuracao"
5796pg_restore: [archiver (db)] Error from TOC entry 1146; 1259 47400754 TABLE produto_configuracao postgres
5797pg_restore: [archiver (db)] could not execute query: ERROR: relation "produto_configuracao" already exists
5798 Command was: CREATE TABLE public.produto_configuracao (
5799 seq_produto_configuracao integer NOT NULL,
5800 cadeira boolean NOT NULL,
5801 camarote boolean NOT NULL,
5802 usuario_alteracao character varying(100),
5803 data_alteracao timestamp without time zone DEFAULT now() NOT NULL,
5804 casal boolean DEFAULT false NOT NULL
5805);
5806
5807
5808
5809pg_restore: creating SEQUENCE "public.produto_configuracao_seq_produto_configuracao_seq"
5810pg_restore: [archiver (db)] Error from TOC entry 1147; 1259 47400759 SEQUENCE produto_configuracao_seq_produto_configuracao_seq postgres
5811pg_restore: [archiver (db)] could not execute query: ERROR: relation "produto_configuracao_seq_produto_configuracao_seq" already exists
5812 Command was: CREATE SEQUENCE public.produto_configuracao_seq_produto_configuracao_seq
5813 START WITH 1
5814 INCREMENT BY 1
5815 NO MINVALUE
5816 NO MAXVALUE
5817 CACHE 1;
5818
5819
5820
5821pg_restore: creating SEQUENCE OWNED BY "public.produto_configuracao_seq_produto_configuracao_seq"
5822pg_restore: creating TABLE "public.produto_contrato"
5823pg_restore: [archiver (db)] Error from TOC entry 1148; 1259 47400761 TABLE produto_contrato postgres
5824pg_restore: [archiver (db)] could not execute query: ERROR: relation "produto_contrato" already exists
5825 Command was: CREATE TABLE public.produto_contrato (
5826 seq_produto_contrato integer NOT NULL,
5827 contrato text NOT NULL,
5828 data_inicio timestamp without time zone NOT NULL,
5829 usuario_alteracao character varying(100),
5830 data_alteracao timestamp without time zone DEFAULT now(),
5831 titulo character varying(100)
5832);
5833
5834
5835
5836pg_restore: creating SEQUENCE "public.produto_contrato_seq_produto_contrato_seq_1"
5837pg_restore: [archiver (db)] Error from TOC entry 1149; 1259 47400768 SEQUENCE produto_contrato_seq_produto_contrato_seq_1 postgres
5838pg_restore: [archiver (db)] could not execute query: ERROR: relation "produto_contrato_seq_produto_contrato_seq_1" already exists
5839 Command was: CREATE SEQUENCE public.produto_contrato_seq_produto_contrato_seq_1
5840 START WITH 1
5841 INCREMENT BY 1
5842 NO MINVALUE
5843 NO MAXVALUE
5844 CACHE 1;
5845
5846
5847
5848pg_restore: creating SEQUENCE OWNED BY "public.produto_contrato_seq_produto_contrato_seq_1"
5849pg_restore: creating TABLE "public.produto_escolinha_turma"
5850pg_restore: [archiver (db)] Error from TOC entry 1192; 1259 49893175 TABLE produto_escolinha_turma postgres
5851pg_restore: [archiver (db)] could not execute query: ERROR: relation "produto_escolinha_turma" already exists
5852 Command was: CREATE TABLE public.produto_escolinha_turma (
5853 seq_produto_escolinha_turma integer NOT NULL,
5854 seq_produto integer NOT NULL,
5855 nome character varying(100),
5856 vagas integer,
5857 usuario_alteracao character varying(100),
5858 data_alteracao timestamp without time zone DEFAULT now()
5859);
5860
5861
5862
5863pg_restore: creating SEQUENCE "public.produto_escolinha_turma_seq_produto_escolinha_turma_seq"
5864pg_restore: [archiver (db)] Error from TOC entry 1191; 1259 49893173 SEQUENCE produto_escolinha_turma_seq_produto_escolinha_turma_seq postgres
5865pg_restore: [archiver (db)] could not execute query: ERROR: relation "produto_escolinha_turma_seq_produto_escolinha_turma_seq" already exists
5866 Command was: CREATE SEQUENCE public.produto_escolinha_turma_seq_produto_escolinha_turma_seq
5867 START WITH 1
5868 INCREMENT BY 1
5869 NO MINVALUE
5870 NO MAXVALUE
5871 CACHE 1;
5872
5873
5874
5875pg_restore: creating SEQUENCE OWNED BY "public.produto_escolinha_turma_seq_produto_escolinha_turma_seq"
5876pg_restore: creating TABLE "public.produto_plano_pgto"
5877pg_restore: [archiver (db)] Error from TOC entry 1150; 1259 47400770 TABLE produto_plano_pgto acbf
5878pg_restore: [archiver (db)] could not execute query: ERROR: relation "produto_plano_pgto" already exists
5879 Command was: CREATE TABLE public.produto_plano_pgto (
5880 seq_produto_plano_pgto integer NOT NULL,
5881 seq_plano_pgto integer NOT NULL,
5882 seq_produto_taxa integer NOT NULL,
5883 usuario_alteracao character varying(100),
5884 data_alteracao timestamp without time zone DEFAULT now()
5885);
5886
5887
5888
5889pg_restore: [archiver (db)] could not execute query: ERROR: role "acbf" does not exist
5890 Command was: ALTER TABLE public.produto_plano_pgto OWNER TO acbf;
5891
5892
5893pg_restore: creating SEQUENCE "public.produto_plano_pgto_seq_produto_plano_pgto_seq"
5894pg_restore: [archiver (db)] Error from TOC entry 1151; 1259 47400774 SEQUENCE produto_plano_pgto_seq_produto_plano_pgto_seq acbf
5895pg_restore: [archiver (db)] could not execute query: ERROR: relation "produto_plano_pgto_seq_produto_plano_pgto_seq" already exists
5896 Command was: CREATE SEQUENCE public.produto_plano_pgto_seq_produto_plano_pgto_seq
5897 START WITH 1
5898 INCREMENT BY 1
5899 NO MINVALUE
5900 NO MAXVALUE
5901 CACHE 1;
5902
5903
5904
5905pg_restore: [archiver (db)] could not execute query: ERROR: role "acbf" does not exist
5906 Command was: ALTER TABLE public.produto_plano_pgto_seq_produto_plano_pgto_seq OWNER TO acbf;
5907
5908
5909pg_restore: creating SEQUENCE OWNED BY "public.produto_plano_pgto_seq_produto_plano_pgto_seq"
5910pg_restore: creating SEQUENCE "public.produto_seq_produto_seq"
5911pg_restore: [archiver (db)] Error from TOC entry 1152; 1259 47400776 SEQUENCE produto_seq_produto_seq postgres
5912pg_restore: [archiver (db)] could not execute query: ERROR: relation "produto_seq_produto_seq" already exists
5913 Command was: CREATE SEQUENCE public.produto_seq_produto_seq
5914 START WITH 1
5915 INCREMENT BY 1
5916 NO MINVALUE
5917 NO MAXVALUE
5918 CACHE 1;
5919
5920
5921
5922pg_restore: creating SEQUENCE OWNED BY "public.produto_seq_produto_seq"
5923pg_restore: creating TABLE "public.produto_taxa"
5924pg_restore: [archiver (db)] Error from TOC entry 1153; 1259 47400778 TABLE produto_taxa postgres
5925pg_restore: [archiver (db)] could not execute query: ERROR: relation "produto_taxa" already exists
5926 Command was: CREATE TABLE public.produto_taxa (
5927 seq_produto_taxa integer NOT NULL,
5928 seq_produto integer NOT NULL,
5929 seq_taxa integer NOT NULL,
5930 ciclico boolean,
5931 dia_vencimento date,
5932 desconto_em_dia numeric(20,5),
5933 valor numeric(20,5),
5934 numero_vezes integer,
5935 dias_apos_criacao integer,
5936 desconto_debito_automatico numeric(20,5),
5937 dias_apos_primeiro_pagamento integer,
5938 dias_uteis boolean DEFAULT false NOT NULL,
5939 obs text,
5940 usuario_alteracao character varying(100),
5941 data_alteracao timestamp without time zone DEFAULT now(),
5942 periodicidade character varying(100),
5943 data_inicio_validade date,
5944 desconto_filho_socio numeric(20,5)
5945);
5946
5947
5948
5949pg_restore: creating SEQUENCE "public.produto_taxa_seq_produto_taxa_seq"
5950pg_restore: [archiver (db)] Error from TOC entry 1154; 1259 47400786 SEQUENCE produto_taxa_seq_produto_taxa_seq postgres
5951pg_restore: [archiver (db)] could not execute query: ERROR: relation "produto_taxa_seq_produto_taxa_seq" already exists
5952 Command was: CREATE SEQUENCE public.produto_taxa_seq_produto_taxa_seq
5953 START WITH 1
5954 INCREMENT BY 1
5955 NO MINVALUE
5956 NO MAXVALUE
5957 CACHE 1;
5958
5959
5960
5961pg_restore: creating SEQUENCE OWNED BY "public.produto_taxa_seq_produto_taxa_seq"
5962pg_restore: creating TABLE "public.profissao"
5963pg_restore: [archiver (db)] Error from TOC entry 1155; 1259 47400788 TABLE profissao postgres
5964pg_restore: [archiver (db)] could not execute query: ERROR: relation "profissao" already exists
5965 Command was: CREATE TABLE public.profissao (
5966 seq_profissao integer NOT NULL,
5967 profissao character varying(200) NOT NULL,
5968 usuario_alteracao character varying(100),
5969 data_alteracao timestamp without time zone DEFAULT now()
5970);
5971
5972
5973
5974pg_restore: creating SEQUENCE "public.profissao_seq_profissao_seq_1"
5975pg_restore: [archiver (db)] Error from TOC entry 1156; 1259 47400792 SEQUENCE profissao_seq_profissao_seq_1 postgres
5976pg_restore: [archiver (db)] could not execute query: ERROR: relation "profissao_seq_profissao_seq_1" already exists
5977 Command was: CREATE SEQUENCE public.profissao_seq_profissao_seq_1
5978 START WITH 1
5979 INCREMENT BY 1
5980 NO MINVALUE
5981 NO MAXVALUE
5982 CACHE 1;
5983
5984
5985
5986pg_restore: creating SEQUENCE OWNED BY "public.profissao_seq_profissao_seq_1"
5987pg_restore: creating TABLE "public.remessa"
5988pg_restore: [archiver (db)] Error from TOC entry 1157; 1259 47400794 TABLE remessa postgres
5989pg_restore: [archiver (db)] could not execute query: ERROR: relation "remessa" already exists
5990 Command was: CREATE TABLE public.remessa (
5991 seq_remessa integer NOT NULL,
5992 descricao character varying(200),
5993 tipo character varying(50),
5994 data_vencimento date,
5995 seq_instituicao_financeira integer,
5996 sequencia integer,
5997 competencia character varying(10)
5998);
5999
6000
6001
6002pg_restore: creating TABLE "public.remessa_item"
6003pg_restore: [archiver (db)] Error from TOC entry 1158; 1259 47400797 TABLE remessa_item postgres
6004pg_restore: [archiver (db)] could not execute query: ERROR: relation "remessa_item" already exists
6005 Command was: CREATE TABLE public.remessa_item (
6006 seq_remessa_item integer NOT NULL,
6007 seq_remessa integer,
6008 data_vencimento date,
6009 valor_vencimento numeric(10,5),
6010 data_emissao timestamp without time zone,
6011 retorno character varying(50),
6012 data_retorno timestamp without time zone,
6013 sequencia integer,
6014 seq_movimento_cobranca integer
6015);
6016
6017
6018
6019pg_restore: creating SEQUENCE "public.remessa_item_seq_remessa_item_seq"
6020pg_restore: [archiver (db)] Error from TOC entry 1159; 1259 47400800 SEQUENCE remessa_item_seq_remessa_item_seq postgres
6021pg_restore: [archiver (db)] could not execute query: ERROR: relation "remessa_item_seq_remessa_item_seq" already exists
6022 Command was: CREATE SEQUENCE public.remessa_item_seq_remessa_item_seq
6023 START WITH 1
6024 INCREMENT BY 1
6025 NO MINVALUE
6026 NO MAXVALUE
6027 CACHE 1;
6028
6029
6030
6031pg_restore: creating SEQUENCE OWNED BY "public.remessa_item_seq_remessa_item_seq"
6032pg_restore: creating SEQUENCE "public.remessa_seq_remessa_seq"
6033pg_restore: [archiver (db)] Error from TOC entry 1160; 1259 47400802 SEQUENCE remessa_seq_remessa_seq postgres
6034pg_restore: [archiver (db)] could not execute query: ERROR: relation "remessa_seq_remessa_seq" already exists
6035 Command was: CREATE SEQUENCE public.remessa_seq_remessa_seq
6036 START WITH 1
6037 INCREMENT BY 1
6038 NO MINVALUE
6039 NO MAXVALUE
6040 CACHE 1;
6041
6042
6043
6044pg_restore: creating SEQUENCE OWNED BY "public.remessa_seq_remessa_seq"
6045pg_restore: creating TABLE "public.renda_familiar"
6046pg_restore: [archiver (db)] Error from TOC entry 1161; 1259 47400804 TABLE renda_familiar postgres
6047pg_restore: [archiver (db)] could not execute query: ERROR: relation "renda_familiar" already exists
6048 Command was: CREATE TABLE public.renda_familiar (
6049 seq_renda_familiar integer NOT NULL,
6050 descricao character varying(200)
6051);
6052
6053
6054
6055pg_restore: creating SEQUENCE "public.renda_familiar_seq_renda_familiar_seq"
6056pg_restore: [archiver (db)] Error from TOC entry 1162; 1259 47400807 SEQUENCE renda_familiar_seq_renda_familiar_seq postgres
6057pg_restore: [archiver (db)] could not execute query: ERROR: relation "renda_familiar_seq_renda_familiar_seq" already exists
6058 Command was: CREATE SEQUENCE public.renda_familiar_seq_renda_familiar_seq
6059 START WITH 1
6060 INCREMENT BY 1
6061 NO MINVALUE
6062 NO MAXVALUE
6063 CACHE 1;
6064
6065
6066
6067pg_restore: creating SEQUENCE OWNED BY "public.renda_familiar_seq_renda_familiar_seq"
6068pg_restore: creating TABLE "public.sangria"
6069pg_restore: [archiver (db)] Error from TOC entry 1163; 1259 47400809 TABLE sangria postgres
6070pg_restore: [archiver (db)] could not execute query: ERROR: relation "sangria" already exists
6071 Command was: CREATE TABLE public.sangria (
6072 seq_sangria integer NOT NULL,
6073 seq_sessao integer NOT NULL,
6074 valor numeric(30,5) NOT NULL,
6075 seq_supervisor bigint NOT NULL,
6076 dt_carga timestamp without time zone DEFAULT now() NOT NULL,
6077 usuario_alteracao character varying(100) NOT NULL,
6078 data_alteracao timestamp without time zone DEFAULT now() NOT NULL
6079);
6080
6081
6082
6083pg_restore: creating SEQUENCE "public.sangria_seq_sangria_seq"
6084pg_restore: [archiver (db)] Error from TOC entry 1164; 1259 47400814 SEQUENCE sangria_seq_sangria_seq postgres
6085pg_restore: [archiver (db)] could not execute query: ERROR: relation "sangria_seq_sangria_seq" already exists
6086 Command was: CREATE SEQUENCE public.sangria_seq_sangria_seq
6087 START WITH 1
6088 INCREMENT BY 1
6089 NO MINVALUE
6090 NO MAXVALUE
6091 CACHE 1;
6092
6093
6094
6095pg_restore: creating SEQUENCE OWNED BY "public.sangria_seq_sangria_seq"
6096pg_restore: creating SEQUENCE "public.seq_competencia"
6097pg_restore: [archiver (db)] Error from TOC entry 1165; 1259 47400816 SEQUENCE seq_competencia postgres
6098pg_restore: [archiver (db)] could not execute query: ERROR: relation "seq_competencia" already exists
6099 Command was: CREATE SEQUENCE public.seq_competencia
6100 START WITH 1
6101 INCREMENT BY 1
6102 NO MINVALUE
6103 NO MAXVALUE
6104 CACHE 1;
6105
6106
6107
6108pg_restore: creating SEQUENCE "public.seq_conta"
6109pg_restore: [archiver (db)] Error from TOC entry 1166; 1259 47400818 SEQUENCE seq_conta postgres
6110pg_restore: [archiver (db)] could not execute query: ERROR: relation "seq_conta" already exists
6111 Command was: CREATE SEQUENCE public.seq_conta
6112 START WITH 1
6113 INCREMENT BY 1
6114 NO MINVALUE
6115 NO MAXVALUE
6116 CACHE 1;
6117
6118
6119
6120pg_restore: creating SEQUENCE "public.seq_ingresso_numero"
6121pg_restore: [archiver (db)] Error from TOC entry 1167; 1259 47400820 SEQUENCE seq_ingresso_numero postgres
6122pg_restore: [archiver (db)] could not execute query: ERROR: relation "seq_ingresso_numero" already exists
6123 Command was: CREATE SEQUENCE public.seq_ingresso_numero
6124 START WITH 1
6125 INCREMENT BY 1
6126 NO MINVALUE
6127 NO MAXVALUE
6128 CACHE 1;
6129
6130
6131
6132pg_restore: creating SEQUENCE "public.seq_instituicao_financeira"
6133pg_restore: [archiver (db)] Error from TOC entry 1168; 1259 47400822 SEQUENCE seq_instituicao_financeira postgres
6134pg_restore: [archiver (db)] could not execute query: ERROR: relation "seq_instituicao_financeira" already exists
6135 Command was: CREATE SEQUENCE public.seq_instituicao_financeira
6136 START WITH 1
6137 INCREMENT BY 1
6138 NO MINVALUE
6139 NO MAXVALUE
6140 CACHE 1;
6141
6142
6143
6144pg_restore: creating SEQUENCE OWNED BY "public.seq_instituicao_financeira"
6145pg_restore: creating SEQUENCE "public.seq_nosso_numero"
6146pg_restore: [archiver (db)] Error from TOC entry 1169; 1259 47400824 SEQUENCE seq_nosso_numero postgres
6147pg_restore: [archiver (db)] could not execute query: ERROR: relation "seq_nosso_numero" already exists
6148 Command was: CREATE SEQUENCE public.seq_nosso_numero
6149 START WITH 1
6150 INCREMENT BY 1
6151 NO MINVALUE
6152 NO MAXVALUE
6153 CACHE 1;
6154
6155
6156
6157pg_restore: creating SEQUENCE "public.seq_voucher"
6158pg_restore: [archiver (db)] Error from TOC entry 1170; 1259 47400826 SEQUENCE seq_voucher postgres
6159pg_restore: [archiver (db)] could not execute query: ERROR: relation "seq_voucher" already exists
6160 Command was: CREATE SEQUENCE public.seq_voucher
6161 START WITH 1
6162 INCREMENT BY 1
6163 NO MINVALUE
6164 NO MAXVALUE
6165 CACHE 1;
6166
6167
6168
6169pg_restore: creating TABLE "public.sessao"
6170pg_restore: [archiver (db)] Error from TOC entry 1171; 1259 47400828 TABLE sessao postgres
6171pg_restore: [archiver (db)] could not execute query: ERROR: relation "sessao" already exists
6172 Command was: CREATE TABLE public.sessao (
6173 seq_sessao integer NOT NULL,
6174 seq_bilheteria integer NOT NULL,
6175 dt_abertura timestamp without time zone NOT NULL,
6176 dt_encerramento timestamp without time zone NOT NULL,
6177 seq_bilheteiro bigint NOT NULL,
6178 usuario_alteracao character varying(100) NOT NULL,
6179 data_alteracao timestamp without time zone DEFAULT now() NOT NULL,
6180 seq_evento integer
6181);
6182
6183
6184
6185pg_restore: creating TABLE "public.sessao_evento_produto"
6186pg_restore: [archiver (db)] Error from TOC entry 1172; 1259 47400832 TABLE sessao_evento_produto postgres
6187pg_restore: [archiver (db)] could not execute query: ERROR: relation "sessao_evento_produto" already exists
6188 Command was: CREATE TABLE public.sessao_evento_produto (
6189 seq_sessao_evento_produto integer NOT NULL,
6190 seq_sessao integer NOT NULL,
6191 seq_evento_produto integer NOT NULL,
6192 qtde integer NOT NULL,
6193 dt_carga timestamp without time zone DEFAULT now(),
6194 seq_supervisor bigint,
6195 usuario_alteracao character varying(100) NOT NULL,
6196 data_alteracao timestamp without time zone DEFAULT now() NOT NULL
6197);
6198
6199
6200
6201pg_restore: creating SEQUENCE "public.sessao_evento_produto_seq_sessao_evento_produto_seq"
6202pg_restore: [archiver (db)] Error from TOC entry 1173; 1259 47400837 SEQUENCE sessao_evento_produto_seq_sessao_evento_produto_seq postgres
6203pg_restore: [archiver (db)] could not execute query: ERROR: relation "sessao_evento_produto_seq_sessao_evento_produto_seq" already exists
6204 Command was: CREATE SEQUENCE public.sessao_evento_produto_seq_sessao_evento_produto_seq
6205 START WITH 1
6206 INCREMENT BY 1
6207 NO MINVALUE
6208 NO MAXVALUE
6209 CACHE 1;
6210
6211
6212
6213pg_restore: creating SEQUENCE OWNED BY "public.sessao_evento_produto_seq_sessao_evento_produto_seq"
6214pg_restore: creating SEQUENCE "public.sessao_seq_sessao_seq"
6215pg_restore: [archiver (db)] Error from TOC entry 1174; 1259 47400839 SEQUENCE sessao_seq_sessao_seq postgres
6216pg_restore: [archiver (db)] could not execute query: ERROR: relation "sessao_seq_sessao_seq" already exists
6217 Command was: CREATE SEQUENCE public.sessao_seq_sessao_seq
6218 START WITH 1
6219 INCREMENT BY 1
6220 NO MINVALUE
6221 NO MAXVALUE
6222 CACHE 1;
6223
6224
6225
6226pg_restore: creating SEQUENCE OWNED BY "public.sessao_seq_sessao_seq"
6227pg_restore: creating TABLE "public.setor"
6228pg_restore: [archiver (db)] Error from TOC entry 1175; 1259 47400841 TABLE setor postgres
6229pg_restore: [archiver (db)] could not execute query: ERROR: relation "setor" already exists
6230 Command was: CREATE TABLE public.setor (
6231 seq_setor integer NOT NULL,
6232 setor character varying(100) NOT NULL,
6233 usuario_alteracao character varying(100),
6234 data_alteracao timestamp without time zone DEFAULT now()
6235);
6236
6237
6238
6239pg_restore: creating SEQUENCE "public.setor_seq_setor_seq_1"
6240pg_restore: [archiver (db)] Error from TOC entry 1176; 1259 47400845 SEQUENCE setor_seq_setor_seq_1 postgres
6241pg_restore: [archiver (db)] could not execute query: ERROR: relation "setor_seq_setor_seq_1" already exists
6242 Command was: CREATE SEQUENCE public.setor_seq_setor_seq_1
6243 START WITH 1
6244 INCREMENT BY 1
6245 NO MINVALUE
6246 NO MAXVALUE
6247 CACHE 1;
6248
6249
6250
6251pg_restore: creating SEQUENCE OWNED BY "public.setor_seq_setor_seq_1"
6252pg_restore: creating TABLE "public.socio_tmp"
6253pg_restore: [archiver (db)] Error from TOC entry 1177; 1259 47400847 TABLE socio_tmp postgres
6254pg_restore: [archiver (db)] could not execute query: ERROR: relation "socio_tmp" already exists
6255 Command was: CREATE TABLE public.socio_tmp (
6256 codigo text,
6257 nome text
6258);
6259
6260
6261
6262pg_restore: creating TABLE "public.taxa"
6263pg_restore: [archiver (db)] Error from TOC entry 1178; 1259 47400853 TABLE taxa postgres
6264pg_restore: [archiver (db)] could not execute query: ERROR: relation "taxa" already exists
6265 Command was: CREATE TABLE public.taxa (
6266 seq_taxa integer NOT NULL,
6267 taxa character varying(200),
6268 usuario_alteracao character varying(100),
6269 data_alteracao timestamp without time zone DEFAULT now(),
6270 abreviado character varying(100)
6271);
6272
6273
6274
6275pg_restore: creating COMMENT "public.TABLE taxa"
6276pg_restore: creating SEQUENCE "public.taxa_seq_taxa_seq"
6277pg_restore: [archiver (db)] Error from TOC entry 1179; 1259 47400857 SEQUENCE taxa_seq_taxa_seq postgres
6278pg_restore: [archiver (db)] could not execute query: ERROR: relation "taxa_seq_taxa_seq" already exists
6279 Command was: CREATE SEQUENCE public.taxa_seq_taxa_seq
6280 START WITH 1
6281 INCREMENT BY 1
6282 NO MINVALUE
6283 NO MAXVALUE
6284 CACHE 1;
6285
6286
6287
6288pg_restore: creating SEQUENCE OWNED BY "public.taxa_seq_taxa_seq"
6289pg_restore: creating TABLE "public.tmp_importacao_socio"
6290pg_restore: [archiver (db)] Error from TOC entry 1180; 1259 47400859 TABLE tmp_importacao_socio postgres
6291pg_restore: [archiver (db)] could not execute query: ERROR: relation "tmp_importacao_socio" already exists
6292 Command was: CREATE TABLE public.tmp_importacao_socio (
6293 matricula character varying(100),
6294 nome character varying(200),
6295 categoria character varying(100),
6296 fone character varying(200),
6297 servico character varying(200),
6298 ult_pagamento character varying(200)
6299);
6300
6301
6302
6303pg_restore: creating TABLE "public.tmp_socio"
6304pg_restore: [archiver (db)] Error from TOC entry 1181; 1259 47400862 TABLE tmp_socio postgres
6305pg_restore: [archiver (db)] could not execute query: ERROR: relation "tmp_socio" already exists
6306 Command was: CREATE TABLE public.tmp_socio (
6307 matricula character varying(8),
6308 nome character varying(35),
6309 categoria character varying(8)
6310);
6311
6312
6313
6314pg_restore: creating TABLE "public.troco"
6315pg_restore: [archiver (db)] Error from TOC entry 1182; 1259 47400865 TABLE troco postgres
6316pg_restore: [archiver (db)] could not execute query: ERROR: relation "troco" already exists
6317 Command was: CREATE TABLE public.troco (
6318 seq_troco integer NOT NULL,
6319 seq_sessao integer NOT NULL,
6320 valor numeric(30,5) NOT NULL,
6321 seq_supervisor bigint NOT NULL,
6322 dt_carga timestamp without time zone DEFAULT now() NOT NULL,
6323 usuario_alteracao character varying(100) NOT NULL,
6324 data_alteracao timestamp without time zone DEFAULT now() NOT NULL
6325);
6326
6327
6328
6329pg_restore: creating SEQUENCE "public.troco_seq_troco_seq"
6330pg_restore: [archiver (db)] Error from TOC entry 1183; 1259 47400870 SEQUENCE troco_seq_troco_seq postgres
6331pg_restore: [archiver (db)] could not execute query: ERROR: relation "troco_seq_troco_seq" already exists
6332 Command was: CREATE SEQUENCE public.troco_seq_troco_seq
6333 START WITH 1
6334 INCREMENT BY 1
6335 NO MINVALUE
6336 NO MAXVALUE
6337 CACHE 1;
6338
6339
6340
6341pg_restore: creating SEQUENCE OWNED BY "public.troco_seq_troco_seq"
6342pg_restore: creating TABLE "public.usuario"
6343pg_restore: [archiver (db)] Error from TOC entry 1184; 1259 47400872 TABLE usuario postgres
6344pg_restore: [archiver (db)] could not execute query: ERROR: relation "usuario" already exists
6345 Command was: CREATE TABLE public.usuario (
6346 seq_usuario integer NOT NULL,
6347 login character varying(100),
6348 senha_md5 character varying(200),
6349 ativo boolean DEFAULT true NOT NULL,
6350 seq_usuario_tipo integer NOT NULL,
6351 bloqueado boolean DEFAULT false NOT NULL,
6352 seq_pessoa integer,
6353 seq_perfil integer NOT NULL,
6354 dt_expira date,
6355 email character varying(100),
6356 nome character varying(100) NOT NULL,
6357 usuario_alteracao character varying(100) DEFAULT 'golway'::character varying NOT NULL,
6358 data_alteracao timestamp without time zone DEFAULT now() NOT NULL
6359);
6360
6361
6362
6363pg_restore: creating SEQUENCE "public.usuario_seq_usuario_seq"
6364pg_restore: [archiver (db)] Error from TOC entry 1185; 1259 47400879 SEQUENCE usuario_seq_usuario_seq postgres
6365pg_restore: [archiver (db)] could not execute query: ERROR: relation "usuario_seq_usuario_seq" already exists
6366 Command was: CREATE SEQUENCE public.usuario_seq_usuario_seq
6367 START WITH 1
6368 INCREMENT BY 1
6369 NO MINVALUE
6370 NO MAXVALUE
6371 CACHE 1;
6372
6373
6374
6375pg_restore: creating SEQUENCE OWNED BY "public.usuario_seq_usuario_seq"
6376pg_restore: creating TABLE "public.usuario_tipo"
6377pg_restore: [archiver (db)] Error from TOC entry 1186; 1259 47400881 TABLE usuario_tipo postgres
6378pg_restore: [archiver (db)] could not execute query: ERROR: relation "usuario_tipo" already exists
6379 Command was: CREATE TABLE public.usuario_tipo (
6380 seq_usuario_tipo integer NOT NULL,
6381 descricao character varying(100) NOT NULL,
6382 usuario_alteracao character varying(100) DEFAULT 'golway'::character varying NOT NULL,
6383 data_alteracao timestamp without time zone DEFAULT now() NOT NULL
6384);
6385
6386
6387
6388pg_restore: creating SEQUENCE "public.usuario_tipo_seq_usuario_tipo_seq"
6389pg_restore: [archiver (db)] Error from TOC entry 1187; 1259 47400886 SEQUENCE usuario_tipo_seq_usuario_tipo_seq postgres
6390pg_restore: [archiver (db)] could not execute query: ERROR: relation "usuario_tipo_seq_usuario_tipo_seq" already exists
6391 Command was: CREATE SEQUENCE public.usuario_tipo_seq_usuario_tipo_seq
6392 START WITH 1
6393 INCREMENT BY 1
6394 NO MINVALUE
6395 NO MAXVALUE
6396 CACHE 1;
6397
6398
6399
6400pg_restore: creating SEQUENCE OWNED BY "public.usuario_tipo_seq_usuario_tipo_seq"
6401pg_restore: creating TABLE "public.vinculo"
6402pg_restore: [archiver (db)] Error from TOC entry 1188; 1259 47400888 TABLE vinculo postgres
6403pg_restore: [archiver (db)] could not execute query: ERROR: relation "vinculo" already exists
6404 Command was: CREATE TABLE public.vinculo (
6405 seq_vinculo integer NOT NULL,
6406 nome character varying(200),
6407 data_alteracao timestamp(0) without time zone DEFAULT now(),
6408 usuario_alteracao character varying(100)
6409);
6410
6411
6412
6413pg_restore: creating SEQUENCE "public.vinculo_seq_vinculo_seq"
6414pg_restore: [archiver (db)] Error from TOC entry 1189; 1259 47400892 SEQUENCE vinculo_seq_vinculo_seq postgres
6415pg_restore: [archiver (db)] could not execute query: ERROR: relation "vinculo_seq_vinculo_seq" already exists
6416 Command was: CREATE SEQUENCE public.vinculo_seq_vinculo_seq
6417 START WITH 1
6418 INCREMENT BY 1
6419 NO MINVALUE
6420 NO MAXVALUE
6421 CACHE 1;
6422
6423
6424
6425pg_restore: creating SEQUENCE OWNED BY "public.vinculo_seq_vinculo_seq"
6426pg_restore: creating TABLE "public.voucher"
6427pg_restore: [archiver (db)] Error from TOC entry 1190; 1259 47400894 TABLE voucher postgres
6428pg_restore: [archiver (db)] could not execute query: ERROR: relation "voucher" already exists
6429 Command was: CREATE TABLE public.voucher (
6430 seq_voucher integer DEFAULT nextval('public.seq_voucher'::regclass) NOT NULL,
6431 codigo_web character varying(100),
6432 codigo_barras character varying(100) NOT NULL,
6433 nome character varying(100),
6434 documento character varying(100),
6435 email character varying(100),
6436 data_troca timestamp without time zone,
6437 seq_produto integer,
6438 produto character varying(100),
6439 seq_evento integer,
6440 evento character varying(100),
6441 usuario_alteracao character varying(100),
6442 data_alteracao timestamp without time zone DEFAULT now() NOT NULL,
6443 seq_pessoa integer,
6444 seq_sessao_evento_produto integer
6445);
6446
6447
6448
6449pg_restore: creating DEFAULT "public.acesso seq_acesso"
6450pg_restore: creating DEFAULT "public.acesso_historico seq_acesso_historico"
6451pg_restore: creating DEFAULT "public.assento seq_assento"
6452pg_restore: creating DEFAULT "public.baixa seq_baixa"
6453pg_restore: creating DEFAULT "public.bilheteria seq_bilheteria"
6454pg_restore: creating DEFAULT "public.boleto_macro seq_boleto_macro"
6455pg_restore: creating DEFAULT "public.cadeira seq_cadeira"
6456pg_restore: creating DEFAULT "public.camarote seq_camarote"
6457pg_restore: creating DEFAULT "public.catraca seq_catraca"
6458pg_restore: creating DEFAULT "public.clube seq_clube"
6459pg_restore: creating DEFAULT "public.cobranca seq_cobranca"
6460pg_restore: creating DEFAULT "public.cobranca_retorno seq_cobranca_retorno"
6461pg_restore: creating DEFAULT "public.cobranca_titulo seq_cobranca_titulo"
6462pg_restore: creating DEFAULT "public.cobranca_titulo_item seq_cobranca_titulo_item"
6463pg_restore: creating DEFAULT "public.competicao seq_competicao"
6464pg_restore: creating DEFAULT "public.competicao_edicao seq_competicao_edicao"
6465pg_restore: creating DEFAULT "public.dne seq_dne"
6466pg_restore: creating DEFAULT "public.escolaridade seq_escolaridade"
6467pg_restore: creating DEFAULT "public.estado seq_estado"
6468pg_restore: creating DEFAULT "public.evento seq_evento"
6469pg_restore: creating DEFAULT "public.evento_local seq_evento_local"
6470pg_restore: creating DEFAULT "public.evento_objetivo seq_evento_objetivo"
6471pg_restore: creating DEFAULT "public.evento_produto seq_evento_produto"
6472pg_restore: creating DEFAULT "public.faixa_salarial seq_faixa_salarial"
6473pg_restore: creating DEFAULT "public.forma_pagamento seq_forma_pagamento"
6474pg_restore: creating DEFAULT "public.ingresso seq_ingresso"
6475pg_restore: creating DEFAULT "public.instituicao_financeira seq_instituicao_financeira"
6476pg_restore: creating DEFAULT "public.meio_pagamento seq_meio_pagamento"
6477pg_restore: creating DEFAULT "public.menu seq_menu"
6478pg_restore: creating DEFAULT "public.movimento seq_movimento"
6479pg_restore: creating DEFAULT "public.movimento_cobranca seq_movimento_cobranca"
6480pg_restore: creating DEFAULT "public.movimento_item seq_movimento_item"
6481pg_restore: creating DEFAULT "public.movimento_pagamento seq_movimento_pagamento"
6482pg_restore: creating DEFAULT "public.objeto seq_objeto"
6483pg_restore: creating DEFAULT "public.obs_matricula seq_obs_matricula"
6484pg_restore: creating DEFAULT "public.obs_matricula matricula"
6485pg_restore: creating DEFAULT "public.pais seq_pais"
6486pg_restore: creating DEFAULT "public.perfil seq_perfil"
6487pg_restore: creating DEFAULT "public.perfil_objeto seq_perfil_objeto"
6488pg_restore: creating DEFAULT "public.pessoa seq_pessoa"
6489pg_restore: creating DEFAULT "public.pessoa_dados_pagamento seq_pessoa_dados_pagamento"
6490pg_restore: creating DEFAULT "public.pessoa_vinculo seq_pessoa_vinculo"
6491pg_restore: creating DEFAULT "public.plano_pgto seq_plano_pgto"
6492pg_restore: creating DEFAULT "public.portao seq_portao"
6493pg_restore: creating DEFAULT "public.produto seq_produto"
6494pg_restore: creating DEFAULT "public.produto_catraca seq_produto_catraca"
6495pg_restore: creating DEFAULT "public.produto_classe seq_produto_classe"
6496pg_restore: creating DEFAULT "public.produto_configuracao seq_produto_configuracao"
6497pg_restore: creating DEFAULT "public.produto_contrato seq_produto_contrato"
6498pg_restore: creating DEFAULT "public.produto_escolinha_turma seq_produto_escolinha_turma"
6499pg_restore: creating DEFAULT "public.produto_plano_pgto seq_produto_plano_pgto"
6500pg_restore: creating DEFAULT "public.produto_taxa seq_produto_taxa"
6501pg_restore: creating DEFAULT "public.profissao seq_profissao"
6502pg_restore: creating DEFAULT "public.remessa seq_remessa"
6503pg_restore: creating DEFAULT "public.remessa_item seq_remessa_item"
6504pg_restore: creating DEFAULT "public.renda_familiar seq_renda_familiar"
6505pg_restore: creating DEFAULT "public.sangria seq_sangria"
6506pg_restore: creating DEFAULT "public.sessao seq_sessao"
6507pg_restore: creating DEFAULT "public.sessao_evento_produto seq_sessao_evento_produto"
6508pg_restore: creating DEFAULT "public.setor seq_setor"
6509pg_restore: creating DEFAULT "public.taxa seq_taxa"
6510pg_restore: creating DEFAULT "public.troco seq_troco"
6511pg_restore: creating DEFAULT "public.usuario seq_usuario"
6512pg_restore: creating DEFAULT "public.usuario_tipo seq_usuario_tipo"
6513pg_restore: creating DEFAULT "public.vinculo seq_vinculo"
6514pg_restore: processing data for table "public.acesso"
6515pg_restore: [archiver (db)] Error from TOC entry 6602; 0 47400346 TABLE DATA acesso postgres
6516pg_restore: [archiver (db)] COPY failed for table "acesso": ERROR: duplicate key value violates unique constraint "acesso_pkey"
6517DETAIL: Key (seq_acesso)=(5596) already exists.
6518CONTEXT: COPY acesso, line 1
6519pg_restore: processing data for table "public.acesso_historico"
6520pg_restore: [archiver (db)] Error from TOC entry 6603; 0 47400350 TABLE DATA acesso_historico postgres
6521pg_restore: [archiver (db)] COPY failed for table "acesso_historico": ERROR: duplicate key value violates unique constraint "acesso_historico_pkey"
6522DETAIL: Key (seq_acesso_historico)=(2775) already exists.
6523CONTEXT: COPY acesso_historico, line 1
6524pg_restore: processing data for table "public.assento"
6525pg_restore: processing data for table "public.baixa"
6526pg_restore: [archiver (db)] Error from TOC entry 6608; 0 47400368 TABLE DATA baixa postgres
6527pg_restore: [archiver (db)] COPY failed for table "baixa": ERROR: duplicate key value violates unique constraint "baixa_pkey"
6528DETAIL: Key (seq_baixa)=(1) already exists.
6529CONTEXT: COPY baixa, line 1
6530pg_restore: processing data for table "public.bilheteria"
6531pg_restore: [archiver (db)] Error from TOC entry 6610; 0 47400376 TABLE DATA bilheteria postgres
6532pg_restore: [archiver (db)] COPY failed for table "bilheteria": ERROR: duplicate key value violates unique constraint "seq_bilheteria"
6533DETAIL: Key (seq_bilheteria)=(1) already exists.
6534CONTEXT: COPY bilheteria, line 1
6535pg_restore: processing data for table "public.boleto_macro"
6536pg_restore: [archiver (db)] Error from TOC entry 6612; 0 47400385 TABLE DATA boleto_macro postgres
6537pg_restore: [archiver (db)] COPY failed for table "boleto_macro": ERROR: duplicate key value violates unique constraint "boleto_macro_pkey"
6538DETAIL: Key (seq_boleto_macro)=(1) already exists.
6539CONTEXT: COPY boleto_macro, line 1
6540pg_restore: processing data for table "public.cadeira"
6541pg_restore: [archiver (db)] Error from TOC entry 6614; 0 47400390 TABLE DATA cadeira postgres
6542pg_restore: [archiver (db)] COPY failed for table "cadeira": ERROR: duplicate key value violates unique constraint "seq_cadeira"
6543DETAIL: Key (seq_cadeira)=(1) already exists.
6544CONTEXT: COPY cadeira, line 1
6545pg_restore: processing data for table "public.camarote"
6546pg_restore: [archiver (db)] Error from TOC entry 6616; 0 47400399 TABLE DATA camarote postgres
6547pg_restore: [archiver (db)] COPY failed for table "camarote": ERROR: duplicate key value violates unique constraint "seq_camarote"
6548DETAIL: Key (seq_camarote)=(3) already exists.
6549CONTEXT: COPY camarote, line 2
6550pg_restore: processing data for table "public.cartao"
6551pg_restore: processing data for table "public.catraca"
6552pg_restore: [archiver (db)] Error from TOC entry 6620; 0 47400412 TABLE DATA catraca postgres
6553pg_restore: [archiver (db)] COPY failed for table "catraca": ERROR: duplicate key value violates unique constraint "seq_catraca"
6554DETAIL: Key (seq_catraca)=(3) already exists.
6555CONTEXT: COPY catraca, line 1
6556pg_restore: processing data for table "public.ci_sessions"
6557pg_restore: [archiver (db)] Error from TOC entry 6622; 0 47400418 TABLE DATA ci_sessions postgres
6558pg_restore: [archiver (db)] COPY failed for table "ci_sessions": ERROR: duplicate key value violates unique constraint "ci_sessions_pkey"
6559DETAIL: Key (session_id)=(3a6077b85042964b4b2ef9e1746467a7) already exists.
6560CONTEXT: COPY ci_sessions, line 1
6561pg_restore: processing data for table "public.clube"
6562pg_restore: [archiver (db)] Error from TOC entry 6623; 0 47400427 TABLE DATA clube postgres
6563pg_restore: [archiver (db)] COPY failed for table "clube": ERROR: duplicate key value violates unique constraint "seq_clube"
6564DETAIL: Key (seq_clube)=(1) already exists.
6565CONTEXT: COPY clube, line 1
6566pg_restore: processing data for table "public.cobranca"
6567pg_restore: processing data for table "public.cobranca_retorno"
6568pg_restore: [archiver (db)] Error from TOC entry 6626; 0 47400441 TABLE DATA cobranca_retorno postgres
6569pg_restore: [archiver (db)] could not execute query: ERROR: column "seq_baixa" of relation "cobranca_retorno" does not exist
6570 Command was: COPY public.cobranca_retorno (seq_cobranca_retorno, titulo, nosso_numero, data_retorno, usuario_alteracao, data_alteracao, dt_retorno, cod_ocorrencia, dt_ocorrecia, dt_vencimento, vlr_vencimento, tp_documento, vlr_desp_cob, vlr_desp_out, vlr_pago, vlr_juros, vlr_out, vlr_desconto, dt_credito, nro_doc_empresa, identificador, dt_lido_sistema, seq_baixa) FROM stdin;
6571
6572pg_restore: processing data for table "public.cobranca_titulo"
6573pg_restore: [archiver (db)] Error from TOC entry 6629; 0 47400450 TABLE DATA cobranca_titulo postgres
6574pg_restore: [archiver (db)] COPY failed for table "cobranca_titulo": ERROR: duplicate key value violates unique constraint "seq_cobranca_titulo"
6575DETAIL: Key (seq_cobranca_titulo)=(67) already exists.
6576CONTEXT: COPY cobranca_titulo, line 64
6577pg_restore: processing data for table "public.cobranca_titulo_item"
6578pg_restore: [archiver (db)] Error from TOC entry 6630; 0 47400457 TABLE DATA cobranca_titulo_item postgres
6579pg_restore: [archiver (db)] COPY failed for table "cobranca_titulo_item": ERROR: insert or update on table "cobranca_titulo_item" violates foreign key constraint "cobranca_titulo_item_seq_movimento_cobranca_fkey"
6580DETAIL: Key (seq_movimento_cobranca)=(54200) is not present in table "movimento_cobranca".
6581pg_restore: processing data for table "public.competencia"
6582pg_restore: [archiver (db)] Error from TOC entry 6633; 0 47400465 TABLE DATA competencia postgres
6583pg_restore: [archiver (db)] COPY failed for table "competencia": ERROR: duplicate key value violates unique constraint "competencia_pkey"
6584DETAIL: Key (competencia)=(0390) already exists.
6585CONTEXT: COPY competencia, line 1
6586pg_restore: processing data for table "public.competicao"
6587pg_restore: [archiver (db)] Error from TOC entry 6634; 0 47400472 TABLE DATA competicao postgres
6588pg_restore: [archiver (db)] COPY failed for table "competicao": ERROR: duplicate key value violates unique constraint "seq_competicao"
6589DETAIL: Key (seq_competicao)=(1) already exists.
6590CONTEXT: COPY competicao, line 1
6591pg_restore: processing data for table "public.competicao_edicao"
6592pg_restore: [archiver (db)] Error from TOC entry 6635; 0 47400480 TABLE DATA competicao_edicao postgres
6593pg_restore: [archiver (db)] COPY failed for table "competicao_edicao": ERROR: duplicate key value violates unique constraint "seq_competicao_edicao"
6594DETAIL: Key (seq_competicao_edicao)=(2) already exists.
6595CONTEXT: COPY competicao_edicao, line 1
6596pg_restore: processing data for table "public.conta"
6597pg_restore: [archiver (db)] Error from TOC entry 6638; 0 47400492 TABLE DATA conta postgres
6598pg_restore: [archiver (db)] COPY failed for table "conta": ERROR: duplicate key value violates unique constraint "conta_pkey"
6599DETAIL: Key (seq_conta)=(4) already exists.
6600CONTEXT: COPY conta, line 1
6601pg_restore: processing data for table "public.dbf_cartoes_ecnh"
6602pg_restore: processing data for table "public.dbf_pessoas_ecnh"
6603pg_restore: processing data for table "public.dne"
6604pg_restore: [archiver (db)] Error from TOC entry 6641; 0 47400512 TABLE DATA dne postgres
6605pg_restore: [archiver (db)] could not execute query: ERROR: column "posicao_exercito" of relation "dne" does not exist
6606 Command was: COPY public.dne (cep, localidade, uf, bairro_inicial, bairro_final, logradouro, posicao_exercito, seq_dne) FROM stdin;
6607
6608pg_restore: processing data for table "public.escolaridade"
6609pg_restore: [archiver (db)] Error from TOC entry 6643; 0 47400517 TABLE DATA escolaridade postgres
6610pg_restore: [archiver (db)] COPY failed for table "escolaridade": ERROR: duplicate key value violates unique constraint "escolaridade_pkey"
6611DETAIL: Key (seq_escolaridade)=(1) already exists.
6612CONTEXT: COPY escolaridade, line 1
6613pg_restore: processing data for table "public.estado"
6614pg_restore: [archiver (db)] Error from TOC entry 6645; 0 47400522 TABLE DATA estado postgres
6615pg_restore: [archiver (db)] COPY failed for table "estado": ERROR: duplicate key value violates unique constraint "estado_pkey"
6616DETAIL: Key (seq_estado)=(1) already exists.
6617CONTEXT: COPY estado, line 1
6618pg_restore: processing data for table "public.evento"
6619pg_restore: [archiver (db)] Error from TOC entry 6647; 0 47400527 TABLE DATA evento postgres
6620pg_restore: [archiver (db)] COPY failed for table "evento": ERROR: relation "evento" does not exist
6621LINE 1: SELECT (select max(coalesce(even_ref,0)) + 1 from evento)
6622 ^
6623QUERY: SELECT (select max(coalesce(even_ref,0)) + 1 from evento)
6624CONTEXT: PL/pgSQL function public.fnc_carrega_even_ref() line 3 at assignment
6625pg_restore: processing data for table "public.evento_local"
6626pg_restore: [archiver (db)] Error from TOC entry 6648; 0 47400532 TABLE DATA evento_local postgres
6627pg_restore: [archiver (db)] COPY failed for table "evento_local": ERROR: duplicate key value violates unique constraint "seq_evento_local"
6628DETAIL: Key (seq_evento_local)=(1) already exists.
6629CONTEXT: COPY evento_local, line 1
6630pg_restore: processing data for table "public.evento_objetivo"
6631pg_restore: processing data for table "public.evento_produto"
6632pg_restore: processing data for table "public.faixa_salarial"
6633pg_restore: [archiver (db)] Error from TOC entry 6655; 0 47400561 TABLE DATA faixa_salarial postgres
6634pg_restore: [archiver (db)] COPY failed for table "faixa_salarial": ERROR: duplicate key value violates unique constraint "faixa_salarial_pkey"
6635DETAIL: Key (seq_faixa_salarial)=(1) already exists.
6636CONTEXT: COPY faixa_salarial, line 1
6637pg_restore: processing data for table "public.forma_pagamento"
6638pg_restore: [archiver (db)] Error from TOC entry 6657; 0 47400569 TABLE DATA forma_pagamento postgres
6639pg_restore: [archiver (db)] COPY failed for table "forma_pagamento": ERROR: duplicate key value violates unique constraint "seq_forma_pagamento"
6640DETAIL: Key (seq_forma_pagamento)=(1) already exists.
6641CONTEXT: COPY forma_pagamento, line 1
6642pg_restore: processing data for table "public.ingresso"
6643pg_restore: processing data for table "public.ingresso_numero"
6644pg_restore: [archiver (db)] Error from TOC entry 6660; 0 47400584 TABLE DATA ingresso_numero postgres
6645pg_restore: [archiver (db)] COPY failed for table "ingresso_numero": ERROR: duplicate key value violates unique constraint "ingresso_numero_pkey"
6646DETAIL: Key (ingresso_numero)=(10000000024812) already exists.
6647CONTEXT: COPY ingresso_numero, line 1
6648pg_restore: processing data for table "public.instituicao_financeira"
6649pg_restore: [archiver (db)] Error from TOC entry 6662; 0 47400590 TABLE DATA instituicao_financeira postgres
6650pg_restore: [archiver (db)] COPY failed for table "instituicao_financeira": ERROR: duplicate key value violates unique constraint "instituicao_financeira_seq_instituicao_financeira"
6651DETAIL: Key (seq_instituicao_financeira)=(1) already exists.
6652CONTEXT: COPY instituicao_financeira, line 1
6653pg_restore: processing data for table "public.liberacao"
6654pg_restore: processing data for table "public.liberacao_historico"
6655pg_restore: [archiver (db)] Error from TOC entry 6666; 0 47400603 TABLE DATA liberacao_historico postgres
6656pg_restore: [archiver (db)] COPY failed for table "liberacao_historico": ERROR: duplicate key value violates unique constraint "seq_liberacao_historico_pkey"
6657DETAIL: Key (seq_liberacao_historico)=(1) already exists.
6658CONTEXT: COPY liberacao_historico, line 1
6659pg_restore: processing data for table "public.matricula"
6660pg_restore: [archiver (db)] Error from TOC entry 6667; 0 47400608 TABLE DATA matricula postgres
6661pg_restore: [archiver (db)] COPY failed for table "matricula": ERROR: duplicate key value violates unique constraint "matricula_pkey"
6662DETAIL: Key (matricula)=(1711) already exists.
6663CONTEXT: COPY matricula, line 1
6664pg_restore: processing data for table "public.meio_pagamento"
6665pg_restore: [archiver (db)] Error from TOC entry 6671; 0 47400622 TABLE DATA meio_pagamento postgres
6666pg_restore: [archiver (db)] COPY failed for table "meio_pagamento": ERROR: duplicate key value violates unique constraint "seq_meio_pagamento"
6667DETAIL: Key (seq_meio_pagamento)=(1) already exists.
6668CONTEXT: COPY meio_pagamento, line 1
6669pg_restore: processing data for table "public.menu"
6670pg_restore: [archiver (db)] Error from TOC entry 6673; 0 47400629 TABLE DATA menu postgres
6671pg_restore: [archiver (db)] COPY failed for table "menu": ERROR: duplicate key value violates unique constraint "menu_pkey"
6672DETAIL: Key (seq_menu)=(4) already exists.
6673CONTEXT: COPY menu, line 1
6674pg_restore: processing data for table "public.movimento"
6675pg_restore: [archiver (db)] Error from TOC entry 6675; 0 47400635 TABLE DATA movimento postgres
6676pg_restore: [archiver (db)] COPY failed for table "movimento": ERROR: duplicate key value violates unique constraint "seq_movimento"
6677DETAIL: Key (seq_movimento)=(55896) already exists.
6678CONTEXT: COPY movimento, line 4511
6679pg_restore: processing data for table "public.movimento_cobranca"
6680pg_restore: [archiver (db)] Error from TOC entry 6668; 0 47400614 TABLE DATA movimento_cobranca postgres
6681pg_restore: [archiver (db)] COPY failed for table "movimento_cobranca": ERROR: insert or update on table "movimento_cobranca" violates foreign key constraint "matricula_matricula_cobranca_fk"
6682DETAIL: Key (matricula)=(2281) is not present in table "matricula".
6683pg_restore: processing data for table "public.movimento_item"
6684pg_restore: [archiver (db)] Error from TOC entry 6676; 0 47400640 TABLE DATA movimento_item postgres
6685pg_restore: [archiver (db)] COPY failed for table "movimento_item": ERROR: insert or update on table "movimento_item" violates foreign key constraint "movimento_item_seq_movimento_cobranca_fkey"
6686DETAIL: Key (seq_movimento_cobranca)=(54200) is not present in table "movimento_cobranca".
6687pg_restore: processing data for table "public.movimento_pagamento"
6688pg_restore: [archiver (db)] Error from TOC entry 6678; 0 47400646 TABLE DATA movimento_pagamento postgres
6689pg_restore: [archiver (db)] COPY failed for table "movimento_pagamento": ERROR: insert or update on table "movimento_pagamento" violates foreign key constraint "movimento_movimento_pagamento_fk"
6690DETAIL: Key (seq_movimento)=(51513) is not present in table "movimento".
6691pg_restore: processing data for table "public.objeto"
6692pg_restore: [archiver (db)] Error from TOC entry 6681; 0 47400654 TABLE DATA objeto postgres
6693pg_restore: [archiver (db)] COPY failed for table "objeto": ERROR: duplicate key value violates unique constraint "seq_objeto"
6694DETAIL: Key (seq_objeto)=(4) already exists.
6695CONTEXT: COPY objeto, line 1
6696pg_restore: processing data for table "public.obs_matricula"
6697pg_restore: processing data for table "public.pais"
6698pg_restore: [archiver (db)] Error from TOC entry 6686; 0 47400672 TABLE DATA pais postgres
6699pg_restore: [archiver (db)] COPY failed for table "pais": ERROR: duplicate key value violates unique constraint "pais_pkey"
6700DETAIL: Key (seq_pais)=(1) already exists.
6701CONTEXT: COPY pais, line 1
6702pg_restore: processing data for table "public.perfil"
6703pg_restore: [archiver (db)] Error from TOC entry 6688; 0 47400677 TABLE DATA perfil postgres
6704pg_restore: [archiver (db)] COPY failed for table "perfil": ERROR: duplicate key value violates unique constraint "seq_perfil"
6705DETAIL: Key (seq_perfil)=(1) already exists.
6706CONTEXT: COPY perfil, line 1
6707pg_restore: processing data for table "public.perfil_objeto"
6708pg_restore: [archiver (db)] Error from TOC entry 6689; 0 47400681 TABLE DATA perfil_objeto postgres
6709pg_restore: [archiver (db)] COPY failed for table "perfil_objeto": ERROR: duplicate key value violates unique constraint "seq_perfil_objeto"
6710DETAIL: Key (seq_perfil_objeto)=(1) already exists.
6711CONTEXT: COPY perfil_objeto, line 1
6712pg_restore: processing data for table "public.pessoa"
6713pg_restore: [archiver (db)] Error from TOC entry 6692; 0 47400690 TABLE DATA pessoa postgres
6714pg_restore: [archiver (db)] COPY failed for table "pessoa": ERROR: duplicate key value violates unique constraint "seq_pessoa"
6715DETAIL: Key (seq_pessoa)=(2368) already exists.
6716CONTEXT: COPY pessoa, line 1
6717pg_restore: processing data for table "public.pessoa_dados_pagamento"
6718pg_restore: [archiver (db)] Error from TOC entry 6693; 0 47400709 TABLE DATA pessoa_dados_pagamento postgres
6719pg_restore: [archiver (db)] COPY failed for table "pessoa_dados_pagamento": ERROR: insert or update on table "pessoa_dados_pagamento" violates foreign key constraint "pessoa_pessoa_dados_pagamento_fk"
6720DETAIL: Key (seq_pessoa)=(2663) is not present in table "pessoa".
6721pg_restore: processing data for table "public.pessoa_vinculo"
6722pg_restore: processing data for table "public.plano_pgto"
6723pg_restore: [archiver (db)] Error from TOC entry 6698; 0 47400723 TABLE DATA plano_pgto acbf
6724pg_restore: [archiver (db)] COPY failed for table "plano_pgto": ERROR: insert or update on table "plano_pgto" violates foreign key constraint "plano_pgto_seq_produto_fkey"
6725DETAIL: Key (seq_produto)=(331) is not present in table "produto".
6726pg_restore: processing data for table "public.portao"
6727pg_restore: [archiver (db)] Error from TOC entry 6700; 0 47400729 TABLE DATA portao postgres
6728pg_restore: [archiver (db)] COPY failed for table "portao": ERROR: duplicate key value violates unique constraint "seq_portao"
6729DETAIL: Key (seq_portao)=(3) already exists.
6730CONTEXT: COPY portao, line 1
6731pg_restore: processing data for table "public.produto"
6732pg_restore: [archiver (db)] Error from TOC entry 6702; 0 47400735 TABLE DATA produto postgres
6733pg_restore: [archiver (db)] COPY failed for table "produto": ERROR: duplicate key value violates unique constraint "seq_produto"
6734DETAIL: Key (seq_produto)=(1) already exists.
6735CONTEXT: COPY produto, line 1
6736pg_restore: processing data for table "public.produto_catraca"
6737pg_restore: processing data for table "public.produto_classe"
6738pg_restore: [archiver (db)] Error from TOC entry 6705; 0 47400748 TABLE DATA produto_classe postgres
6739pg_restore: [archiver (db)] COPY failed for table "produto_classe": ERROR: duplicate key value violates unique constraint "produto_classe_pkey"
6740DETAIL: Key (seq_produto_classe)=(1) already exists.
6741CONTEXT: COPY produto_classe, line 1
6742pg_restore: processing data for table "public.produto_configuracao"
6743pg_restore: [archiver (db)] Error from TOC entry 6707; 0 47400754 TABLE DATA produto_configuracao postgres
6744pg_restore: [archiver (db)] COPY failed for table "produto_configuracao": ERROR: duplicate key value violates unique constraint "pk_produto_configuracao"
6745DETAIL: Key (seq_produto_configuracao)=(1) already exists.
6746CONTEXT: COPY produto_configuracao, line 1
6747pg_restore: processing data for table "public.produto_contrato"
6748pg_restore: [archiver (db)] Error from TOC entry 6709; 0 47400761 TABLE DATA produto_contrato postgres
6749pg_restore: [archiver (db)] COPY failed for table "produto_contrato": ERROR: duplicate key value violates unique constraint "seq_produto_contrato"
6750DETAIL: Key (seq_produto_contrato)=(1) already exists.
6751CONTEXT: COPY produto_contrato, line 1
6752pg_restore: processing data for table "public.produto_escolinha_turma"
6753pg_restore: [archiver (db)] Error from TOC entry 6753; 0 49893175 TABLE DATA produto_escolinha_turma postgres
6754pg_restore: [archiver (db)] COPY failed for table "produto_escolinha_turma": ERROR: insert or update on table "produto_escolinha_turma" violates foreign key constraint "produto_produto_taxa_fk"
6755DETAIL: Key (seq_produto)=(331) is not present in table "produto".
6756pg_restore: processing data for table "public.produto_plano_pgto"
6757pg_restore: [archiver (db)] Error from TOC entry 6711; 0 47400770 TABLE DATA produto_plano_pgto acbf
6758pg_restore: [archiver (db)] COPY failed for table "produto_plano_pgto": ERROR: insert or update on table "produto_plano_pgto" violates foreign key constraint "produto_plano_pgto_seq_plano_pgto_fkey"
6759DETAIL: Key (seq_plano_pgto)=(24) is not present in table "plano_pgto".
6760pg_restore: processing data for table "public.produto_taxa"
6761pg_restore: [archiver (db)] Error from TOC entry 6714; 0 47400778 TABLE DATA produto_taxa postgres
6762pg_restore: [archiver (db)] COPY failed for table "produto_taxa": ERROR: duplicate key value violates unique constraint "seq_produto_taxa"
6763DETAIL: Key (seq_produto_taxa)=(26) already exists.
6764CONTEXT: COPY produto_taxa, line 1
6765pg_restore: processing data for table "public.profissao"
6766pg_restore: [archiver (db)] Error from TOC entry 6716; 0 47400788 TABLE DATA profissao postgres
6767pg_restore: [archiver (db)] COPY failed for table "profissao": ERROR: duplicate key value violates unique constraint "seq_profissao"
6768DETAIL: Key (seq_profissao)=(2) already exists.
6769CONTEXT: COPY profissao, line 1
6770pg_restore: processing data for table "public.remessa"
6771pg_restore: [archiver (db)] Error from TOC entry 6718; 0 47400794 TABLE DATA remessa postgres
6772pg_restore: [archiver (db)] COPY failed for table "remessa": ERROR: duplicate key value violates unique constraint "remessa_pkey"
6773DETAIL: Key (seq_remessa)=(-1) already exists.
6774CONTEXT: COPY remessa, line 1
6775pg_restore: processing data for table "public.remessa_item"
6776pg_restore: processing data for table "public.renda_familiar"
6777pg_restore: [archiver (db)] Error from TOC entry 6722; 0 47400804 TABLE DATA renda_familiar postgres
6778pg_restore: [archiver (db)] COPY failed for table "renda_familiar": ERROR: duplicate key value violates unique constraint "renda_familiar_pkey"
6779DETAIL: Key (seq_renda_familiar)=(1) already exists.
6780CONTEXT: COPY renda_familiar, line 1
6781pg_restore: processing data for table "public.sangria"
6782pg_restore: processing data for table "public.sessao"
6783pg_restore: processing data for table "public.sessao_evento_produto"
6784pg_restore: processing data for table "public.setor"
6785pg_restore: [archiver (db)] Error from TOC entry 6736; 0 47400841 TABLE DATA setor postgres
6786pg_restore: [archiver (db)] COPY failed for table "setor": ERROR: duplicate key value violates unique constraint "seq_setor"
6787DETAIL: Key (seq_setor)=(1) already exists.
6788CONTEXT: COPY setor, line 1
6789pg_restore: processing data for table "public.socio_tmp"
6790pg_restore: processing data for table "public.taxa"
6791pg_restore: [archiver (db)] Error from TOC entry 6739; 0 47400853 TABLE DATA taxa postgres
6792pg_restore: [archiver (db)] COPY failed for table "taxa": ERROR: duplicate key value violates unique constraint "seq_taxa"
6793DETAIL: Key (seq_taxa)=(5) already exists.
6794CONTEXT: COPY taxa, line 4
6795pg_restore: processing data for table "public.tmp_importacao_socio"
6796pg_restore: processing data for table "public.tmp_socio"
6797pg_restore: processing data for table "public.troco"
6798pg_restore: processing data for table "public.usuario"
6799pg_restore: [archiver (db)] Error from TOC entry 6745; 0 47400872 TABLE DATA usuario postgres
6800pg_restore: [archiver (db)] COPY failed for table "usuario": ERROR: duplicate key value violates unique constraint "seq_usuario"
6801DETAIL: Key (seq_usuario)=(6) already exists.
6802CONTEXT: COPY usuario, line 1
6803pg_restore: processing data for table "public.usuario_tipo"
6804pg_restore: [archiver (db)] Error from TOC entry 6747; 0 47400881 TABLE DATA usuario_tipo postgres
6805pg_restore: [archiver (db)] COPY failed for table "usuario_tipo": ERROR: duplicate key value violates unique constraint "seq_usuario_tipo"
6806DETAIL: Key (seq_usuario_tipo)=(1) already exists.
6807CONTEXT: COPY usuario_tipo, line 1
6808pg_restore: processing data for table "public.vinculo"
6809pg_restore: [archiver (db)] Error from TOC entry 6749; 0 47400888 TABLE DATA vinculo postgres
6810pg_restore: [archiver (db)] COPY failed for table "vinculo": ERROR: duplicate key value violates unique constraint "pk_vinculo"
6811DETAIL: Key (seq_vinculo)=(1) already exists.
6812CONTEXT: COPY vinculo, line 1
6813pg_restore: processing data for table "public.voucher"
6814pg_restore: executing SEQUENCE SET acesso_historico_seq_acesso_historico_seq
6815pg_restore: executing SEQUENCE SET acesso_seq_acesso_seq
6816pg_restore: executing SEQUENCE SET assento_seq_assento_seq
6817pg_restore: executing SEQUENCE SET baixa_seq_baixa_seq
6818pg_restore: executing SEQUENCE SET bilheteria_seq_bilheteria_seq
6819pg_restore: executing SEQUENCE SET boleto_macro_seq_boleto_macro_seq
6820pg_restore: executing SEQUENCE SET cadeira_seq_cadeira_seq_1
6821pg_restore: executing SEQUENCE SET camarote_seq_camarote_seq_1
6822pg_restore: executing SEQUENCE SET catraca_seq_catraca_seq
6823pg_restore: executing SEQUENCE SET clube_seq_clube_seq
6824pg_restore: executing SEQUENCE SET cobranca_retorno_seq_cobranca_retorno_seq_1
6825pg_restore: executing SEQUENCE SET cobranca_seq_cobranca_seq
6826pg_restore: executing SEQUENCE SET cobranca_titulo_item_seq_cobranca_titulo_item_seq_1
6827pg_restore: executing SEQUENCE SET cobranca_titulo_seq_cobranca_titulo_seq
6828pg_restore: executing SEQUENCE SET competicao_edicao_seq_competicao_edicao_seq
6829pg_restore: executing SEQUENCE SET competicao_seq_competicao_seq
6830pg_restore: executing SEQUENCE SET dne_seq_dne_seq
6831pg_restore: executing SEQUENCE SET escolaridade_seq_escolaridade_seq
6832pg_restore: executing SEQUENCE SET estado_seq_estado_seq
6833pg_restore: executing SEQUENCE SET evento_local_seq_evento_local_seq
6834pg_restore: executing SEQUENCE SET evento_objetivo_seq_evento_objetivo_seq
6835pg_restore: executing SEQUENCE SET evento_produto_seq_evento_produto_seq
6836pg_restore: executing SEQUENCE SET evento_seq_evento_seq
6837pg_restore: executing SEQUENCE SET faixa_salarial_seq_faixa_salarial_seq
6838pg_restore: executing SEQUENCE SET forma_pagamento_seq_forma_pagamento_seq
6839pg_restore: executing SEQUENCE SET ingresso_seq_ingresso_seq
6840pg_restore: executing SEQUENCE SET matricula_cobranca_seq_matricula_cobranca_seq
6841pg_restore: executing SEQUENCE SET matricula_matricula_seq
6842pg_restore: executing SEQUENCE SET meio_pagamento_seq_meio_pagamento_seq
6843pg_restore: executing SEQUENCE SET menu_seq_menu_seq
6844pg_restore: executing SEQUENCE SET movimento_item_seq_movimento_item_seq
6845pg_restore: executing SEQUENCE SET movimento_pagamento_seq_movimento_pagamento_seq
6846pg_restore: executing SEQUENCE SET movimento_seq_movimento_seq
6847pg_restore: executing SEQUENCE SET objeto_seq_objeto_seq
6848pg_restore: executing SEQUENCE SET obs_matricula_matricula_seq
6849pg_restore: executing SEQUENCE SET obs_matricula_seq_obs_matricula_seq
6850pg_restore: executing SEQUENCE SET pais_seq_pais_seq
6851pg_restore: executing SEQUENCE SET perfil_objeto_seq_perfil_objeto_seq
6852pg_restore: executing SEQUENCE SET perfil_seq_perfil_seq
6853pg_restore: executing SEQUENCE SET pessoa_dados_pagamento_seq_pessoa_dados_pagamento_seq
6854pg_restore: executing SEQUENCE SET pessoa_seq_pessoa_seq
6855pg_restore: executing SEQUENCE SET pessoa_vinculo_seq_pessoa_vinculo_seq
6856pg_restore: executing SEQUENCE SET plano_pgto_seq_plano_pgto_seq
6857pg_restore: executing SEQUENCE SET portao_seq_portao_seq_1
6858pg_restore: executing SEQUENCE SET produto_catraca_seq_produto_catraca_seq
6859pg_restore: executing SEQUENCE SET produto_classe_seq_produto_classe_seq
6860pg_restore: executing SEQUENCE SET produto_configuracao_seq_produto_configuracao_seq
6861pg_restore: executing SEQUENCE SET produto_contrato_seq_produto_contrato_seq_1
6862pg_restore: executing SEQUENCE SET produto_escolinha_turma_seq_produto_escolinha_turma_seq
6863pg_restore: executing SEQUENCE SET produto_plano_pgto_seq_produto_plano_pgto_seq
6864pg_restore: executing SEQUENCE SET produto_seq_produto_seq
6865pg_restore: executing SEQUENCE SET produto_taxa_seq_produto_taxa_seq
6866pg_restore: executing SEQUENCE SET profissao_seq_profissao_seq_1
6867pg_restore: executing SEQUENCE SET remessa_item_seq_remessa_item_seq
6868pg_restore: executing SEQUENCE SET remessa_seq_remessa_seq
6869pg_restore: executing SEQUENCE SET renda_familiar_seq_renda_familiar_seq
6870pg_restore: executing SEQUENCE SET sangria_seq_sangria_seq
6871pg_restore: executing SEQUENCE SET seq_cartao2
6872pg_restore: executing SEQUENCE SET seq_competencia
6873pg_restore: executing SEQUENCE SET seq_conta
6874pg_restore: executing SEQUENCE SET seq_ingresso_numero
6875pg_restore: executing SEQUENCE SET seq_instituicao_financeira
6876pg_restore: executing SEQUENCE SET seq_liberacao_historico
6877pg_restore: executing SEQUENCE SET seq_nosso_numero
6878pg_restore: executing SEQUENCE SET seq_seq_liberacao
6879pg_restore: executing SEQUENCE SET seq_voucher
6880pg_restore: executing SEQUENCE SET sessao_evento_produto_seq_sessao_evento_produto_seq
6881pg_restore: executing SEQUENCE SET sessao_seq_sessao_seq
6882pg_restore: executing SEQUENCE SET setor_seq_setor_seq_1
6883pg_restore: executing SEQUENCE SET taxa_seq_taxa_seq
6884pg_restore: executing SEQUENCE SET troco_seq_troco_seq
6885pg_restore: executing SEQUENCE SET usuario_seq_usuario_seq
6886pg_restore: executing SEQUENCE SET usuario_tipo_seq_usuario_tipo_seq
6887pg_restore: executing SEQUENCE SET vinculo_seq_vinculo_seq
6888pg_restore: creating CONSTRAINT "public.acesso_historico acesso_historico_pkey"
6889pg_restore: [archiver (db)] Error from TOC entry 6262; 2606 49604315 CONSTRAINT acesso_historico acesso_historico_pkey postgres
6890pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "acesso_historico" are not allowed
6891 Command was: ALTER TABLE ONLY public.acesso_historico
6892 ADD CONSTRAINT acesso_historico_pkey PRIMARY KEY (seq_acesso_historico);
6893
6894
6895
6896pg_restore: creating CONSTRAINT "public.acesso acesso_pkey"
6897pg_restore: [archiver (db)] Error from TOC entry 6260; 2606 49604317 CONSTRAINT acesso acesso_pkey postgres
6898pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "acesso" are not allowed
6899 Command was: ALTER TABLE ONLY public.acesso
6900 ADD CONSTRAINT acesso_pkey PRIMARY KEY (seq_acesso);
6901
6902
6903
6904pg_restore: creating CONSTRAINT "public.baixa baixa_pkey"
6905pg_restore: [archiver (db)] Error from TOC entry 6266; 2606 49604319 CONSTRAINT baixa baixa_pkey postgres
6906pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "baixa" are not allowed
6907 Command was: ALTER TABLE ONLY public.baixa
6908 ADD CONSTRAINT baixa_pkey PRIMARY KEY (seq_baixa);
6909
6910
6911
6912pg_restore: creating CONSTRAINT "public.boleto_macro boleto_macro_pkey"
6913pg_restore: [archiver (db)] Error from TOC entry 6270; 2606 49604321 CONSTRAINT boleto_macro boleto_macro_pkey postgres
6914pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "boleto_macro" are not allowed
6915 Command was: ALTER TABLE ONLY public.boleto_macro
6916 ADD CONSTRAINT boleto_macro_pkey PRIMARY KEY (seq_boleto_macro);
6917
6918
6919
6920pg_restore: creating CONSTRAINT "public.ci_sessions ci_sessions_pkey"
6921pg_restore: [archiver (db)] Error from TOC entry 6280; 2606 49604323 CONSTRAINT ci_sessions ci_sessions_pkey postgres
6922pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "ci_sessions" are not allowed
6923 Command was: ALTER TABLE ONLY public.ci_sessions
6924 ADD CONSTRAINT ci_sessions_pkey PRIMARY KEY (session_id);
6925
6926
6927
6928pg_restore: creating CONSTRAINT "public.competencia competencia_pkey"
6929pg_restore: [archiver (db)] Error from TOC entry 6292; 2606 49604325 CONSTRAINT competencia competencia_pkey postgres
6930pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "competencia" are not allowed
6931 Command was: ALTER TABLE ONLY public.competencia
6932 ADD CONSTRAINT competencia_pkey PRIMARY KEY (competencia);
6933
6934
6935
6936pg_restore: creating CONSTRAINT "public.conta conta_pkey"
6937pg_restore: [archiver (db)] Error from TOC entry 6298; 2606 49604327 CONSTRAINT conta conta_pkey postgres
6938pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "conta" are not allowed
6939 Command was: ALTER TABLE ONLY public.conta
6940 ADD CONSTRAINT conta_pkey PRIMARY KEY (seq_conta);
6941
6942
6943
6944pg_restore: creating CONSTRAINT "public.dne dne_pkey"
6945pg_restore: [archiver (db)] Error from TOC entry 6302; 2606 49604329 CONSTRAINT dne dne_pkey postgres
6946pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "dne" are not allowed
6947 Command was: ALTER TABLE ONLY public.dne
6948 ADD CONSTRAINT dne_pkey PRIMARY KEY (seq_dne);
6949
6950
6951
6952pg_restore: creating CONSTRAINT "public.escolaridade escolaridade_pkey"
6953pg_restore: [archiver (db)] Error from TOC entry 6304; 2606 49604331 CONSTRAINT escolaridade escolaridade_pkey postgres
6954pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "escolaridade" are not allowed
6955 Command was: ALTER TABLE ONLY public.escolaridade
6956 ADD CONSTRAINT escolaridade_pkey PRIMARY KEY (seq_escolaridade);
6957
6958
6959
6960pg_restore: creating CONSTRAINT "public.estado estado_pkey"
6961pg_restore: [archiver (db)] Error from TOC entry 6306; 2606 49604333 CONSTRAINT estado estado_pkey postgres
6962pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "estado" are not allowed
6963 Command was: ALTER TABLE ONLY public.estado
6964 ADD CONSTRAINT estado_pkey PRIMARY KEY (seq_estado);
6965
6966
6967
6968pg_restore: creating CONSTRAINT "public.evento_objetivo evento_objetivo_pkey"
6969pg_restore: [archiver (db)] Error from TOC entry 6312; 2606 49604335 CONSTRAINT evento_objetivo evento_objetivo_pkey postgres
6970pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "evento_objetivo" are not allowed
6971 Command was: ALTER TABLE ONLY public.evento_objetivo
6972 ADD CONSTRAINT evento_objetivo_pkey PRIMARY KEY (seq_evento_objetivo);
6973
6974
6975
6976pg_restore: creating CONSTRAINT "public.faixa_salarial faixa_salarial_pkey"
6977pg_restore: [archiver (db)] Error from TOC entry 6316; 2606 49604337 CONSTRAINT faixa_salarial faixa_salarial_pkey postgres
6978pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "faixa_salarial" are not allowed
6979 Command was: ALTER TABLE ONLY public.faixa_salarial
6980 ADD CONSTRAINT faixa_salarial_pkey PRIMARY KEY (seq_faixa_salarial);
6981
6982
6983
6984pg_restore: creating CONSTRAINT "public.ingresso_numero ingresso_numero_pkey"
6985pg_restore: [archiver (db)] Error from TOC entry 6322; 2606 49604339 CONSTRAINT ingresso_numero ingresso_numero_pkey postgres
6986pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "ingresso_numero" are not allowed
6987 Command was: ALTER TABLE ONLY public.ingresso_numero
6988 ADD CONSTRAINT ingresso_numero_pkey PRIMARY KEY (ingresso_numero);
6989
6990
6991
6992pg_restore: creating CONSTRAINT "public.instituicao_financeira instituicao_financeira_seq_instituicao_financeira"
6993pg_restore: [archiver (db)] Error from TOC entry 6324; 2606 49604341 CONSTRAINT instituicao_financeira instituicao_financeira_seq_instituicao_financeira postgres
6994pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "instituicao_financeira" are not allowed
6995 Command was: ALTER TABLE ONLY public.instituicao_financeira
6996 ADD CONSTRAINT instituicao_financeira_seq_instituicao_financeira PRIMARY KEY (seq_instituicao_financeira);
6997
6998
6999
7000pg_restore: creating CONSTRAINT "public.liberacao liberacao_pkey"
7001pg_restore: [archiver (db)] Error from TOC entry 6326; 2606 49604343 CONSTRAINT liberacao liberacao_pkey postgres
7002pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "liberacao" are not allowed
7003 Command was: ALTER TABLE ONLY public.liberacao
7004 ADD CONSTRAINT liberacao_pkey PRIMARY KEY (seq_liberacao);
7005
7006
7007
7008pg_restore: creating CONSTRAINT "public.matricula matricula_pkey"
7009pg_restore: [archiver (db)] Error from TOC entry 6330; 2606 49604345 CONSTRAINT matricula matricula_pkey postgres
7010pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "matricula" are not allowed
7011 Command was: ALTER TABLE ONLY public.matricula
7012 ADD CONSTRAINT matricula_pkey PRIMARY KEY (matricula);
7013
7014
7015
7016pg_restore: creating CONSTRAINT "public.menu menu_pkey"
7017pg_restore: [archiver (db)] Error from TOC entry 6336; 2606 49604347 CONSTRAINT menu menu_pkey postgres
7018pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "menu" are not allowed
7019 Command was: ALTER TABLE ONLY public.menu
7020 ADD CONSTRAINT menu_pkey PRIMARY KEY (seq_menu);
7021
7022
7023
7024pg_restore: creating CONSTRAINT "public.obs_matricula obs_matricula_pkey"
7025pg_restore: [archiver (db)] Error from TOC entry 6348; 2606 49604349 CONSTRAINT obs_matricula obs_matricula_pkey postgres
7026pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "obs_matricula" are not allowed
7027 Command was: ALTER TABLE ONLY public.obs_matricula
7028 ADD CONSTRAINT obs_matricula_pkey PRIMARY KEY (matricula);
7029
7030
7031
7032pg_restore: creating CONSTRAINT "public.pais pais_pkey"
7033pg_restore: [archiver (db)] Error from TOC entry 6350; 2606 49604351 CONSTRAINT pais pais_pkey postgres
7034pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "pais" are not allowed
7035 Command was: ALTER TABLE ONLY public.pais
7036 ADD CONSTRAINT pais_pkey PRIMARY KEY (seq_pais);
7037
7038
7039
7040pg_restore: creating CONSTRAINT "public.pessoa_dados_pagamento pessoa_dados_pagamento_pkey"
7041pg_restore: [archiver (db)] Error from TOC entry 6358; 2606 49604353 CONSTRAINT pessoa_dados_pagamento pessoa_dados_pagamento_pkey postgres
7042pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "pessoa_dados_pagamento" are not allowed
7043 Command was: ALTER TABLE ONLY public.pessoa_dados_pagamento
7044 ADD CONSTRAINT pessoa_dados_pagamento_pkey PRIMARY KEY (seq_pessoa_dados_pagamento);
7045
7046
7047
7048pg_restore: creating CONSTRAINT "public.produto_configuracao pk_produto_configuracao"
7049pg_restore: [archiver (db)] Error from TOC entry 6372; 2606 49604355 CONSTRAINT produto_configuracao pk_produto_configuracao postgres
7050pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "produto_configuracao" are not allowed
7051 Command was: ALTER TABLE ONLY public.produto_configuracao
7052 ADD CONSTRAINT pk_produto_configuracao PRIMARY KEY (seq_produto_configuracao);
7053
7054
7055
7056pg_restore: creating CONSTRAINT "public.vinculo pk_vinculo"
7057pg_restore: [archiver (db)] Error from TOC entry 6404; 2606 49604357 CONSTRAINT vinculo pk_vinculo postgres
7058pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "vinculo" are not allowed
7059 Command was: ALTER TABLE ONLY public.vinculo
7060 ADD CONSTRAINT pk_vinculo PRIMARY KEY (seq_vinculo);
7061
7062
7063
7064pg_restore: creating CONSTRAINT "public.plano_pgto plano_pgto_pkey"
7065pg_restore: [archiver (db)] Error from TOC entry 6362; 2606 49604359 CONSTRAINT plano_pgto plano_pgto_pkey acbf
7066pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "plano_pgto" are not allowed
7067 Command was: ALTER TABLE ONLY public.plano_pgto
7068 ADD CONSTRAINT plano_pgto_pkey PRIMARY KEY (seq_plano_pgto);
7069
7070
7071
7072pg_restore: creating CONSTRAINT "public.produto_classe produto_classe_pkey"
7073pg_restore: [archiver (db)] Error from TOC entry 6370; 2606 49604361 CONSTRAINT produto_classe produto_classe_pkey postgres
7074pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "produto_classe" are not allowed
7075 Command was: ALTER TABLE ONLY public.produto_classe
7076 ADD CONSTRAINT produto_classe_pkey PRIMARY KEY (seq_produto_classe);
7077
7078
7079
7080pg_restore: creating CONSTRAINT "public.produto_plano_pgto produto_plano_pgto_pkey"
7081pg_restore: [archiver (db)] Error from TOC entry 6376; 2606 49604363 CONSTRAINT produto_plano_pgto produto_plano_pgto_pkey acbf
7082pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "produto_plano_pgto" are not allowed
7083 Command was: ALTER TABLE ONLY public.produto_plano_pgto
7084 ADD CONSTRAINT produto_plano_pgto_pkey PRIMARY KEY (seq_produto_plano_pgto);
7085
7086
7087
7088pg_restore: creating CONSTRAINT "public.remessa_item remessa_item_pkey"
7089pg_restore: [archiver (db)] Error from TOC entry 6384; 2606 49604365 CONSTRAINT remessa_item remessa_item_pkey postgres
7090pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "remessa_item" are not allowed
7091 Command was: ALTER TABLE ONLY public.remessa_item
7092 ADD CONSTRAINT remessa_item_pkey PRIMARY KEY (seq_remessa_item);
7093
7094
7095
7096pg_restore: creating CONSTRAINT "public.remessa remessa_pkey"
7097pg_restore: [archiver (db)] Error from TOC entry 6382; 2606 49604367 CONSTRAINT remessa remessa_pkey postgres
7098pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "remessa" are not allowed
7099 Command was: ALTER TABLE ONLY public.remessa
7100 ADD CONSTRAINT remessa_pkey PRIMARY KEY (seq_remessa);
7101
7102
7103
7104pg_restore: creating CONSTRAINT "public.renda_familiar renda_familiar_pkey"
7105pg_restore: [archiver (db)] Error from TOC entry 6386; 2606 49604369 CONSTRAINT renda_familiar renda_familiar_pkey postgres
7106pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "renda_familiar" are not allowed
7107 Command was: ALTER TABLE ONLY public.renda_familiar
7108 ADD CONSTRAINT renda_familiar_pkey PRIMARY KEY (seq_renda_familiar);
7109
7110
7111
7112pg_restore: creating CONSTRAINT "public.assento seq_assento"
7113pg_restore: [archiver (db)] Error from TOC entry 6264; 2606 49604371 CONSTRAINT assento seq_assento postgres
7114pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "assento" are not allowed
7115 Command was: ALTER TABLE ONLY public.assento
7116 ADD CONSTRAINT seq_assento PRIMARY KEY (seq_assento);
7117
7118
7119
7120pg_restore: creating CONSTRAINT "public.bilheteria seq_bilheteria"
7121pg_restore: [archiver (db)] Error from TOC entry 6268; 2606 49604373 CONSTRAINT bilheteria seq_bilheteria postgres
7122pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "bilheteria" are not allowed
7123 Command was: ALTER TABLE ONLY public.bilheteria
7124 ADD CONSTRAINT seq_bilheteria PRIMARY KEY (seq_bilheteria);
7125
7126
7127
7128pg_restore: creating CONSTRAINT "public.cadeira seq_cadeira"
7129pg_restore: [archiver (db)] Error from TOC entry 6272; 2606 49604375 CONSTRAINT cadeira seq_cadeira postgres
7130pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "cadeira" are not allowed
7131 Command was: ALTER TABLE ONLY public.cadeira
7132 ADD CONSTRAINT seq_cadeira PRIMARY KEY (seq_cadeira);
7133
7134
7135
7136pg_restore: creating CONSTRAINT "public.camarote seq_camarote"
7137pg_restore: [archiver (db)] Error from TOC entry 6274; 2606 49604377 CONSTRAINT camarote seq_camarote postgres
7138pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "camarote" are not allowed
7139 Command was: ALTER TABLE ONLY public.camarote
7140 ADD CONSTRAINT seq_camarote PRIMARY KEY (seq_camarote);
7141
7142
7143
7144pg_restore: creating CONSTRAINT "public.cartao seq_cartao"
7145pg_restore: [archiver (db)] Error from TOC entry 6276; 2606 49604379 CONSTRAINT cartao seq_cartao postgres
7146pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "cartao" are not allowed
7147 Command was: ALTER TABLE ONLY public.cartao
7148 ADD CONSTRAINT seq_cartao PRIMARY KEY (seq_cartao);
7149
7150
7151
7152pg_restore: creating CONSTRAINT "public.catraca seq_catraca"
7153pg_restore: [archiver (db)] Error from TOC entry 6278; 2606 49604381 CONSTRAINT catraca seq_catraca postgres
7154pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "catraca" are not allowed
7155 Command was: ALTER TABLE ONLY public.catraca
7156 ADD CONSTRAINT seq_catraca PRIMARY KEY (seq_catraca);
7157
7158
7159
7160pg_restore: creating CONSTRAINT "public.clube seq_clube"
7161pg_restore: [archiver (db)] Error from TOC entry 6282; 2606 49604383 CONSTRAINT clube seq_clube postgres
7162pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "clube" are not allowed
7163 Command was: ALTER TABLE ONLY public.clube
7164 ADD CONSTRAINT seq_clube PRIMARY KEY (seq_clube);
7165
7166
7167
7168pg_restore: creating CONSTRAINT "public.cobranca seq_cobranca"
7169pg_restore: [archiver (db)] Error from TOC entry 6284; 2606 49604385 CONSTRAINT cobranca seq_cobranca postgres
7170pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "cobranca" are not allowed
7171 Command was: ALTER TABLE ONLY public.cobranca
7172 ADD CONSTRAINT seq_cobranca PRIMARY KEY (seq_cobranca);
7173
7174
7175
7176pg_restore: creating CONSTRAINT "public.cobranca_retorno seq_cobranca_retorno"
7177pg_restore: [archiver (db)] Error from TOC entry 6286; 2606 49604387 CONSTRAINT cobranca_retorno seq_cobranca_retorno postgres
7178pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "cobranca_retorno" are not allowed
7179 Command was: ALTER TABLE ONLY public.cobranca_retorno
7180 ADD CONSTRAINT seq_cobranca_retorno PRIMARY KEY (seq_cobranca_retorno);
7181
7182
7183
7184pg_restore: creating CONSTRAINT "public.cobranca_titulo seq_cobranca_titulo"
7185pg_restore: [archiver (db)] Error from TOC entry 6288; 2606 49604389 CONSTRAINT cobranca_titulo seq_cobranca_titulo postgres
7186pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "cobranca_titulo" are not allowed
7187 Command was: ALTER TABLE ONLY public.cobranca_titulo
7188 ADD CONSTRAINT seq_cobranca_titulo PRIMARY KEY (seq_cobranca_titulo);
7189
7190
7191
7192pg_restore: creating CONSTRAINT "public.cobranca_titulo_item seq_cobranca_titulo_item"
7193pg_restore: [archiver (db)] Error from TOC entry 6290; 2606 49604391 CONSTRAINT cobranca_titulo_item seq_cobranca_titulo_item postgres
7194pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "cobranca_titulo_item" are not allowed
7195 Command was: ALTER TABLE ONLY public.cobranca_titulo_item
7196 ADD CONSTRAINT seq_cobranca_titulo_item PRIMARY KEY (seq_cobranca_titulo_item);
7197
7198
7199
7200pg_restore: creating CONSTRAINT "public.competicao seq_competicao"
7201pg_restore: [archiver (db)] Error from TOC entry 6294; 2606 49604393 CONSTRAINT competicao seq_competicao postgres
7202pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "competicao" are not allowed
7203 Command was: ALTER TABLE ONLY public.competicao
7204 ADD CONSTRAINT seq_competicao PRIMARY KEY (seq_competicao);
7205
7206
7207
7208pg_restore: creating CONSTRAINT "public.competicao_edicao seq_competicao_edicao"
7209pg_restore: [archiver (db)] Error from TOC entry 6296; 2606 49604395 CONSTRAINT competicao_edicao seq_competicao_edicao postgres
7210pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "competicao_edicao" are not allowed
7211 Command was: ALTER TABLE ONLY public.competicao_edicao
7212 ADD CONSTRAINT seq_competicao_edicao PRIMARY KEY (seq_competicao_edicao);
7213
7214
7215
7216pg_restore: creating CONSTRAINT "public.evento seq_evento"
7217pg_restore: [archiver (db)] Error from TOC entry 6308; 2606 49604397 CONSTRAINT evento seq_evento postgres
7218pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "evento" are not allowed
7219 Command was: ALTER TABLE ONLY public.evento
7220 ADD CONSTRAINT seq_evento PRIMARY KEY (seq_evento);
7221
7222
7223
7224pg_restore: creating CONSTRAINT "public.evento_local seq_evento_local"
7225pg_restore: [archiver (db)] Error from TOC entry 6310; 2606 49604399 CONSTRAINT evento_local seq_evento_local postgres
7226pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "evento_local" are not allowed
7227 Command was: ALTER TABLE ONLY public.evento_local
7228 ADD CONSTRAINT seq_evento_local PRIMARY KEY (seq_evento_local);
7229
7230
7231
7232pg_restore: creating CONSTRAINT "public.evento_produto seq_evento_produto"
7233pg_restore: [archiver (db)] Error from TOC entry 6314; 2606 49604401 CONSTRAINT evento_produto seq_evento_produto postgres
7234pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "evento_produto" are not allowed
7235 Command was: ALTER TABLE ONLY public.evento_produto
7236 ADD CONSTRAINT seq_evento_produto PRIMARY KEY (seq_evento_produto);
7237
7238
7239
7240pg_restore: creating CONSTRAINT "public.forma_pagamento seq_forma_pagamento"
7241pg_restore: [archiver (db)] Error from TOC entry 6318; 2606 49604403 CONSTRAINT forma_pagamento seq_forma_pagamento postgres
7242pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "forma_pagamento" are not allowed
7243 Command was: ALTER TABLE ONLY public.forma_pagamento
7244 ADD CONSTRAINT seq_forma_pagamento PRIMARY KEY (seq_forma_pagamento);
7245
7246
7247
7248pg_restore: creating CONSTRAINT "public.ingresso seq_ingresso"
7249pg_restore: [archiver (db)] Error from TOC entry 6320; 2606 49604405 CONSTRAINT ingresso seq_ingresso postgres
7250pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "ingresso" are not allowed
7251 Command was: ALTER TABLE ONLY public.ingresso
7252 ADD CONSTRAINT seq_ingresso PRIMARY KEY (seq_ingresso);
7253
7254
7255
7256pg_restore: creating CONSTRAINT "public.liberacao_historico seq_liberacao_historico_pkey"
7257pg_restore: [archiver (db)] Error from TOC entry 6328; 2606 49604407 CONSTRAINT liberacao_historico seq_liberacao_historico_pkey postgres
7258pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "liberacao_historico" are not allowed
7259 Command was: ALTER TABLE ONLY public.liberacao_historico
7260 ADD CONSTRAINT seq_liberacao_historico_pkey PRIMARY KEY (seq_liberacao_historico);
7261
7262
7263
7264pg_restore: creating CONSTRAINT "public.movimento_cobranca seq_matricula_cobranca"
7265pg_restore: [archiver (db)] Error from TOC entry 6332; 2606 49604409 CONSTRAINT movimento_cobranca seq_matricula_cobranca postgres
7266pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "movimento_cobranca" are not allowed
7267 Command was: ALTER TABLE ONLY public.movimento_cobranca
7268 ADD CONSTRAINT seq_matricula_cobranca PRIMARY KEY (seq_movimento_cobranca);
7269
7270
7271
7272pg_restore: creating CONSTRAINT "public.meio_pagamento seq_meio_pagamento"
7273pg_restore: [archiver (db)] Error from TOC entry 6334; 2606 49604411 CONSTRAINT meio_pagamento seq_meio_pagamento postgres
7274pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "meio_pagamento" are not allowed
7275 Command was: ALTER TABLE ONLY public.meio_pagamento
7276 ADD CONSTRAINT seq_meio_pagamento PRIMARY KEY (seq_meio_pagamento);
7277
7278
7279
7280pg_restore: creating CONSTRAINT "public.movimento seq_movimento"
7281pg_restore: [archiver (db)] Error from TOC entry 6340; 2606 49604413 CONSTRAINT movimento seq_movimento postgres
7282pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "movimento" are not allowed
7283 Command was: ALTER TABLE ONLY public.movimento
7284 ADD CONSTRAINT seq_movimento PRIMARY KEY (seq_movimento);
7285
7286
7287
7288pg_restore: creating CONSTRAINT "public.movimento_item seq_movimento_item"
7289pg_restore: [archiver (db)] Error from TOC entry 6342; 2606 49604415 CONSTRAINT movimento_item seq_movimento_item postgres
7290pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "movimento_item" are not allowed
7291 Command was: ALTER TABLE ONLY public.movimento_item
7292 ADD CONSTRAINT seq_movimento_item PRIMARY KEY (seq_movimento_item);
7293
7294
7295
7296pg_restore: creating CONSTRAINT "public.movimento_pagamento seq_movimento_pagamento"
7297pg_restore: [archiver (db)] Error from TOC entry 6344; 2606 49604417 CONSTRAINT movimento_pagamento seq_movimento_pagamento postgres
7298pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "movimento_pagamento" are not allowed
7299 Command was: ALTER TABLE ONLY public.movimento_pagamento
7300 ADD CONSTRAINT seq_movimento_pagamento PRIMARY KEY (seq_movimento_pagamento);
7301
7302
7303
7304pg_restore: creating CONSTRAINT "public.objeto seq_objeto"
7305pg_restore: [archiver (db)] Error from TOC entry 6346; 2606 49604419 CONSTRAINT objeto seq_objeto postgres
7306pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "objeto" are not allowed
7307 Command was: ALTER TABLE ONLY public.objeto
7308 ADD CONSTRAINT seq_objeto PRIMARY KEY (seq_objeto);
7309
7310
7311
7312pg_restore: creating CONSTRAINT "public.perfil seq_perfil"
7313pg_restore: [archiver (db)] Error from TOC entry 6352; 2606 49604421 CONSTRAINT perfil seq_perfil postgres
7314pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "perfil" are not allowed
7315 Command was: ALTER TABLE ONLY public.perfil
7316 ADD CONSTRAINT seq_perfil PRIMARY KEY (seq_perfil);
7317
7318
7319
7320pg_restore: creating CONSTRAINT "public.perfil_objeto seq_perfil_objeto"
7321pg_restore: [archiver (db)] Error from TOC entry 6354; 2606 49604423 CONSTRAINT perfil_objeto seq_perfil_objeto postgres
7322pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "perfil_objeto" are not allowed
7323 Command was: ALTER TABLE ONLY public.perfil_objeto
7324 ADD CONSTRAINT seq_perfil_objeto PRIMARY KEY (seq_perfil_objeto);
7325
7326
7327
7328pg_restore: creating CONSTRAINT "public.pessoa seq_pessoa"
7329pg_restore: [archiver (db)] Error from TOC entry 6356; 2606 49604425 CONSTRAINT pessoa seq_pessoa postgres
7330pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "pessoa" are not allowed
7331 Command was: ALTER TABLE ONLY public.pessoa
7332 ADD CONSTRAINT seq_pessoa PRIMARY KEY (seq_pessoa);
7333
7334
7335
7336pg_restore: creating CONSTRAINT "public.pessoa_vinculo seq_pessoa_vinculo"
7337pg_restore: [archiver (db)] Error from TOC entry 6360; 2606 49604427 CONSTRAINT pessoa_vinculo seq_pessoa_vinculo postgres
7338pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "pessoa_vinculo" are not allowed
7339 Command was: ALTER TABLE ONLY public.pessoa_vinculo
7340 ADD CONSTRAINT seq_pessoa_vinculo PRIMARY KEY (seq_pessoa_vinculo);
7341
7342
7343
7344pg_restore: creating CONSTRAINT "public.portao seq_portao"
7345pg_restore: [archiver (db)] Error from TOC entry 6364; 2606 49604429 CONSTRAINT portao seq_portao postgres
7346pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "portao" are not allowed
7347 Command was: ALTER TABLE ONLY public.portao
7348 ADD CONSTRAINT seq_portao PRIMARY KEY (seq_portao);
7349
7350
7351
7352pg_restore: creating CONSTRAINT "public.produto seq_produto"
7353pg_restore: [archiver (db)] Error from TOC entry 6366; 2606 49604431 CONSTRAINT produto seq_produto postgres
7354pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "produto" are not allowed
7355 Command was: ALTER TABLE ONLY public.produto
7356 ADD CONSTRAINT seq_produto PRIMARY KEY (seq_produto);
7357
7358
7359
7360pg_restore: creating CONSTRAINT "public.produto_catraca seq_produto_catraca"
7361pg_restore: [archiver (db)] Error from TOC entry 6368; 2606 49604433 CONSTRAINT produto_catraca seq_produto_catraca postgres
7362pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "produto_catraca" are not allowed
7363 Command was: ALTER TABLE ONLY public.produto_catraca
7364 ADD CONSTRAINT seq_produto_catraca PRIMARY KEY (seq_produto_catraca);
7365
7366
7367
7368pg_restore: creating CONSTRAINT "public.produto_contrato seq_produto_contrato"
7369pg_restore: [archiver (db)] Error from TOC entry 6374; 2606 49604435 CONSTRAINT produto_contrato seq_produto_contrato postgres
7370pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "produto_contrato" are not allowed
7371 Command was: ALTER TABLE ONLY public.produto_contrato
7372 ADD CONSTRAINT seq_produto_contrato PRIMARY KEY (seq_produto_contrato);
7373
7374
7375
7376pg_restore: creating CONSTRAINT "public.produto_taxa seq_produto_taxa"
7377pg_restore: [archiver (db)] Error from TOC entry 6378; 2606 49604437 CONSTRAINT produto_taxa seq_produto_taxa postgres
7378pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "produto_taxa" are not allowed
7379 Command was: ALTER TABLE ONLY public.produto_taxa
7380 ADD CONSTRAINT seq_produto_taxa PRIMARY KEY (seq_produto_taxa);
7381
7382
7383
7384pg_restore: creating CONSTRAINT "public.profissao seq_profissao"
7385pg_restore: [archiver (db)] Error from TOC entry 6380; 2606 49604439 CONSTRAINT profissao seq_profissao postgres
7386pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "profissao" are not allowed
7387 Command was: ALTER TABLE ONLY public.profissao
7388 ADD CONSTRAINT seq_profissao PRIMARY KEY (seq_profissao);
7389
7390
7391
7392pg_restore: creating CONSTRAINT "public.sangria seq_sangria"
7393pg_restore: [archiver (db)] Error from TOC entry 6388; 2606 49604441 CONSTRAINT sangria seq_sangria postgres
7394pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "sangria" are not allowed
7395 Command was: ALTER TABLE ONLY public.sangria
7396 ADD CONSTRAINT seq_sangria PRIMARY KEY (seq_sangria);
7397
7398
7399
7400pg_restore: creating CONSTRAINT "public.sessao seq_sessao"
7401pg_restore: [archiver (db)] Error from TOC entry 6390; 2606 49604443 CONSTRAINT sessao seq_sessao postgres
7402pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "sessao" are not allowed
7403 Command was: ALTER TABLE ONLY public.sessao
7404 ADD CONSTRAINT seq_sessao PRIMARY KEY (seq_sessao);
7405
7406
7407
7408pg_restore: creating CONSTRAINT "public.sessao_evento_produto seq_sessao_evento_produto"
7409pg_restore: [archiver (db)] Error from TOC entry 6392; 2606 49604445 CONSTRAINT sessao_evento_produto seq_sessao_evento_produto postgres
7410pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "sessao_evento_produto" are not allowed
7411 Command was: ALTER TABLE ONLY public.sessao_evento_produto
7412 ADD CONSTRAINT seq_sessao_evento_produto PRIMARY KEY (seq_sessao_evento_produto);
7413
7414
7415
7416pg_restore: creating CONSTRAINT "public.setor seq_setor"
7417pg_restore: [archiver (db)] Error from TOC entry 6394; 2606 49604447 CONSTRAINT setor seq_setor postgres
7418pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "setor" are not allowed
7419 Command was: ALTER TABLE ONLY public.setor
7420 ADD CONSTRAINT seq_setor PRIMARY KEY (seq_setor);
7421
7422
7423
7424pg_restore: creating CONSTRAINT "public.taxa seq_taxa"
7425pg_restore: [archiver (db)] Error from TOC entry 6396; 2606 49604449 CONSTRAINT taxa seq_taxa postgres
7426pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "taxa" are not allowed
7427 Command was: ALTER TABLE ONLY public.taxa
7428 ADD CONSTRAINT seq_taxa PRIMARY KEY (seq_taxa);
7429
7430
7431
7432pg_restore: creating CONSTRAINT "public.troco seq_troco"
7433pg_restore: [archiver (db)] Error from TOC entry 6398; 2606 49604451 CONSTRAINT troco seq_troco postgres
7434pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "troco" are not allowed
7435 Command was: ALTER TABLE ONLY public.troco
7436 ADD CONSTRAINT seq_troco PRIMARY KEY (seq_troco);
7437
7438
7439
7440pg_restore: creating CONSTRAINT "public.usuario seq_usuario"
7441pg_restore: [archiver (db)] Error from TOC entry 6400; 2606 49604453 CONSTRAINT usuario seq_usuario postgres
7442pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "usuario" are not allowed
7443 Command was: ALTER TABLE ONLY public.usuario
7444 ADD CONSTRAINT seq_usuario PRIMARY KEY (seq_usuario);
7445
7446
7447
7448pg_restore: creating CONSTRAINT "public.usuario_tipo seq_usuario_tipo"
7449pg_restore: [archiver (db)] Error from TOC entry 6402; 2606 49604455 CONSTRAINT usuario_tipo seq_usuario_tipo postgres
7450pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "usuario_tipo" are not allowed
7451 Command was: ALTER TABLE ONLY public.usuario_tipo
7452 ADD CONSTRAINT seq_usuario_tipo PRIMARY KEY (seq_usuario_tipo);
7453
7454
7455
7456pg_restore: creating CONSTRAINT "public.voucher voucher_pkey"
7457pg_restore: [archiver (db)] Error from TOC entry 6406; 2606 49604457 CONSTRAINT voucher voucher_pkey postgres
7458pg_restore: [archiver (db)] could not execute query: ERROR: multiple primary keys for table "voucher" are not allowed
7459 Command was: ALTER TABLE ONLY public.voucher
7460 ADD CONSTRAINT voucher_pkey PRIMARY KEY (seq_voucher);
7461
7462
7463
7464pg_restore: creating INDEX "public.dne_cep_idx"
7465pg_restore: [archiver (db)] Error from TOC entry 6299; 1259 49606689 INDEX dne_cep_idx postgres
7466pg_restore: [archiver (db)] could not execute query: ERROR: relation "dne_cep_idx" already exists
7467 Command was: CREATE INDEX dne_cep_idx ON public.dne USING btree (cep);
7468
7469
7470
7471pg_restore: creating INDEX "public.dne_localidade_uf_idx"
7472pg_restore: [archiver (db)] Error from TOC entry 6300; 1259 49606690 INDEX dne_localidade_uf_idx postgres
7473pg_restore: [archiver (db)] could not execute query: ERROR: relation "dne_localidade_uf_idx" already exists
7474 Command was: CREATE INDEX dne_localidade_uf_idx ON public.dne USING btree (localidade, uf);
7475
7476
7477
7478pg_restore: creating INDEX "public.fki_"
7479pg_restore: [archiver (db)] Error from TOC entry 6337; 1259 49606691 INDEX fki_ postgres
7480pg_restore: [archiver (db)] could not execute query: ERROR: relation "fki_" already exists
7481 Command was: CREATE INDEX fki_ ON public.movimento USING btree (seq_pessoa);
7482
7483
7484
7485pg_restore: creating INDEX "public.fki_usuario_movimento"
7486pg_restore: [archiver (db)] Error from TOC entry 6338; 1259 49606692 INDEX fki_usuario_movimento postgres
7487pg_restore: [archiver (db)] could not execute query: ERROR: relation "fki_usuario_movimento" already exists
7488 Command was: CREATE INDEX fki_usuario_movimento ON public.movimento USING btree (operador);
7489
7490
7491
7492pg_restore: creating TRIGGER "public.evento trg_carrega_even_ref"
7493pg_restore: [archiver (db)] Error from TOC entry 6481; 2620 49606693 TRIGGER evento trg_carrega_even_ref postgres
7494pg_restore: [archiver (db)] could not execute query: ERROR: trigger "trg_carrega_even_ref" for relation "evento" already exists
7495 Command was: CREATE TRIGGER trg_carrega_even_ref AFTER INSERT ON public.evento FOR EACH ROW EXECUTE PROCEDURE public.fnc_carrega_even_ref();
7496
7497
7498
7499pg_restore: creating TRIGGER "public.cobranca_titulo trg_cobranca_titulo_bu"
7500pg_restore: [archiver (db)] Error from TOC entry 6480; 2620 49606694 TRIGGER cobranca_titulo trg_cobranca_titulo_bu postgres
7501pg_restore: [archiver (db)] could not execute query: ERROR: trigger "trg_cobranca_titulo_bu" for relation "cobranca_titulo" already exists
7502 Command was: CREATE TRIGGER trg_cobranca_titulo_bu BEFORE UPDATE ON public.cobranca_titulo FOR EACH ROW EXECUTE PROCEDURE public.fnc_cobranca_titulo();
7503
7504
7505
7506pg_restore: creating TRIGGER "public.sessao trg_depois_inserir_sessao"
7507pg_restore: [archiver (db)] Error from TOC entry 6484; 2620 49606695 TRIGGER sessao trg_depois_inserir_sessao postgres
7508pg_restore: [archiver (db)] could not execute query: ERROR: trigger "trg_depois_inserir_sessao" for relation "sessao" already exists
7509 Command was: CREATE TRIGGER trg_depois_inserir_sessao AFTER INSERT OR UPDATE ON public.sessao FOR EACH ROW EXECUTE PROCEDURE public.depois_inserir_sessao();
7510
7511
7512
7513pg_restore: creating TRIGGER "public.movimento trg_estorna_movimento"
7514pg_restore: [archiver (db)] Error from TOC entry 6482; 2620 49606696 TRIGGER movimento trg_estorna_movimento postgres
7515pg_restore: [archiver (db)] could not execute query: ERROR: trigger "trg_estorna_movimento" for relation "movimento" already exists
7516 Command was: CREATE TRIGGER trg_estorna_movimento AFTER INSERT OR UPDATE ON public.movimento FOR EACH ROW EXECUTE PROCEDURE public.estorna_movimento();
7517
7518
7519
7520pg_restore: creating TRIGGER "public.movimento_item trg_gera_ingressos"
7521pg_restore: [archiver (db)] Error from TOC entry 6483; 2620 49606697 TRIGGER movimento_item trg_gera_ingressos postgres
7522pg_restore: [archiver (db)] could not execute query: ERROR: trigger "trg_gera_ingressos" for relation "movimento_item" already exists
7523 Command was: CREATE TRIGGER trg_gera_ingressos AFTER INSERT OR UPDATE ON public.movimento_item FOR EACH ROW EXECUTE PROCEDURE public.gera_ingressos_do_pagamento();
7524
7525ALTER TABLE public.movimento_item DISABLE TRIGGER trg_gera_ingressos;
7526
7527
7528
7529pg_restore: creating FK CONSTRAINT "public.ingresso assento_ingresso_fk"
7530pg_restore: [archiver (db)] Error from TOC entry 6426; 2606 49606698 FK CONSTRAINT ingresso assento_ingresso_fk postgres
7531pg_restore: [archiver (db)] could not execute query: ERROR: constraint "assento_ingresso_fk" for relation "ingresso" already exists
7532 Command was: ALTER TABLE ONLY public.ingresso
7533 ADD CONSTRAINT assento_ingresso_fk FOREIGN KEY (seq_assento) REFERENCES public.assento(seq_assento);
7534
7535
7536
7537pg_restore: creating FK CONSTRAINT "public.sessao bilheteria_sessao_fk"
7538pg_restore: [archiver (db)] Error from TOC entry 6470; 2606 49606703 FK CONSTRAINT sessao bilheteria_sessao_fk postgres
7539pg_restore: [archiver (db)] could not execute query: ERROR: constraint "bilheteria_sessao_fk" for relation "sessao" already exists
7540 Command was: ALTER TABLE ONLY public.sessao
7541 ADD CONSTRAINT bilheteria_sessao_fk FOREIGN KEY (seq_bilheteria) REFERENCES public.bilheteria(seq_bilheteria);
7542
7543
7544
7545pg_restore: creating FK CONSTRAINT "public.matricula cadeira_matricula_fk"
7546pg_restore: [archiver (db)] Error from TOC entry 6433; 2606 49606708 FK CONSTRAINT matricula cadeira_matricula_fk postgres
7547pg_restore: [archiver (db)] could not execute query: ERROR: constraint "cadeira_matricula_fk" for relation "matricula" already exists
7548 Command was: ALTER TABLE ONLY public.matricula
7549 ADD CONSTRAINT cadeira_matricula_fk FOREIGN KEY (seq_cadeira) REFERENCES public.cadeira(seq_cadeira) ON UPDATE CASCADE;
7550
7551
7552
7553pg_restore: creating FK CONSTRAINT "public.matricula camarote_matricula_fk"
7554pg_restore: [archiver (db)] Error from TOC entry 6432; 2606 49606713 FK CONSTRAINT matricula camarote_matricula_fk postgres
7555pg_restore: [archiver (db)] could not execute query: ERROR: constraint "camarote_matricula_fk" for relation "matricula" already exists
7556 Command was: ALTER TABLE ONLY public.matricula
7557 ADD CONSTRAINT camarote_matricula_fk FOREIGN KEY (seq_camarote) REFERENCES public.camarote(seq_camarote) ON UPDATE CASCADE;
7558
7559
7560
7561pg_restore: creating FK CONSTRAINT "public.ingresso cartao_ingresso_fk"
7562pg_restore: [archiver (db)] Error from TOC entry 6425; 2606 49606718 FK CONSTRAINT ingresso cartao_ingresso_fk postgres
7563pg_restore: [archiver (db)] could not execute query: ERROR: constraint "cartao_ingresso_fk" for relation "ingresso" already exists
7564 Command was: ALTER TABLE ONLY public.ingresso
7565 ADD CONSTRAINT cartao_ingresso_fk FOREIGN KEY (seq_cartao) REFERENCES public.cartao(seq_cartao);
7566
7567
7568
7569pg_restore: creating FK CONSTRAINT "public.produto_catraca catraca_produto_catraca_fk"
7570pg_restore: [archiver (db)] Error from TOC entry 6462; 2606 49606723 FK CONSTRAINT produto_catraca catraca_produto_catraca_fk postgres
7571pg_restore: [archiver (db)] could not execute query: ERROR: constraint "catraca_produto_catraca_fk" for relation "produto_catraca" already exists
7572 Command was: ALTER TABLE ONLY public.produto_catraca
7573 ADD CONSTRAINT catraca_produto_catraca_fk FOREIGN KEY (seq_catraca) REFERENCES public.catraca(seq_catraca) ON UPDATE CASCADE;
7574
7575
7576
7577pg_restore: creating FK CONSTRAINT "public.evento clube_evento_fk"
7578pg_restore: [archiver (db)] Error from TOC entry 6419; 2606 49606728 FK CONSTRAINT evento clube_evento_fk postgres
7579pg_restore: [archiver (db)] could not execute query: ERROR: constraint "clube_evento_fk" for relation "evento" already exists
7580 Command was: ALTER TABLE ONLY public.evento
7581 ADD CONSTRAINT clube_evento_fk FOREIGN KEY (seq_clube_adversario) REFERENCES public.clube(seq_clube);
7582
7583
7584
7585pg_restore: creating FK CONSTRAINT "public.cobranca_titulo cobranca_retorno_cobranca_titulo_fk"
7586pg_restore: [archiver (db)] Error from TOC entry 6411; 2606 49606733 FK CONSTRAINT cobranca_titulo cobranca_retorno_cobranca_titulo_fk postgres
7587pg_restore: [archiver (db)] could not execute query: ERROR: constraint "cobranca_retorno_cobranca_titulo_fk" for relation "cobranca_titulo" already exists
7588 Command was: ALTER TABLE ONLY public.cobranca_titulo
7589 ADD CONSTRAINT cobranca_retorno_cobranca_titulo_fk FOREIGN KEY (seq_cobranca_retorno) REFERENCES public.cobranca_retorno(seq_cobranca_retorno) ON UPDATE CASCADE;
7590
7591
7592
7593pg_restore: creating FK CONSTRAINT "public.cobranca_titulo_item cobranca_titulo_cobranca_titulo_item_fk"
7594pg_restore: [archiver (db)] Error from TOC entry 6413; 2606 49606738 FK CONSTRAINT cobranca_titulo_item cobranca_titulo_cobranca_titulo_item_fk postgres
7595pg_restore: [archiver (db)] could not execute query: ERROR: constraint "cobranca_titulo_cobranca_titulo_item_fk" for relation "cobranca_titulo_item" already exists
7596 Command was: ALTER TABLE ONLY public.cobranca_titulo_item
7597 ADD CONSTRAINT cobranca_titulo_cobranca_titulo_item_fk FOREIGN KEY (seq_cobranca_titulo) REFERENCES public.cobranca_titulo(seq_cobranca_titulo) ON UPDATE CASCADE;
7598
7599
7600
7601pg_restore: creating FK CONSTRAINT "public.cobranca_titulo_item cobranca_titulo_item_seq_movimento_cobranca_fkey"
7602pg_restore: [archiver (db)] Error from TOC entry 6412; 2606 49606743 FK CONSTRAINT cobranca_titulo_item cobranca_titulo_item_seq_movimento_cobranca_fkey postgres
7603pg_restore: [archiver (db)] could not execute query: ERROR: constraint "cobranca_titulo_item_seq_movimento_cobranca_fkey" for relation "cobranca_titulo_item" already exists
7604 Command was: ALTER TABLE ONLY public.cobranca_titulo_item
7605 ADD CONSTRAINT cobranca_titulo_item_seq_movimento_cobranca_fkey FOREIGN KEY (seq_movimento_cobranca) REFERENCES public.movimento_cobranca(seq_movimento_cobranca) ON UPDATE CASCADE;
7606
7607
7608
7609pg_restore: creating FK CONSTRAINT "public.competicao_edicao competicao_competicao_edicao_fk"
7610pg_restore: [archiver (db)] Error from TOC entry 6414; 2606 49606748 FK CONSTRAINT competicao_edicao competicao_competicao_edicao_fk postgres
7611pg_restore: [archiver (db)] could not execute query: ERROR: constraint "competicao_competicao_edicao_fk" for relation "competicao_edicao" already exists
7612 Command was: ALTER TABLE ONLY public.competicao_edicao
7613 ADD CONSTRAINT competicao_competicao_edicao_fk FOREIGN KEY (seq_competicao) REFERENCES public.competicao(seq_competicao);
7614
7615
7616
7617pg_restore: creating FK CONSTRAINT "public.evento_produto evento_evento_produto_fk"
7618pg_restore: [archiver (db)] Error from TOC entry 6421; 2606 49606753 FK CONSTRAINT evento_produto evento_evento_produto_fk postgres
7619pg_restore: [archiver (db)] could not execute query: ERROR: constraint "evento_evento_produto_fk" for relation "evento_produto" already exists
7620 Command was: ALTER TABLE ONLY public.evento_produto
7621 ADD CONSTRAINT evento_evento_produto_fk FOREIGN KEY (seq_evento) REFERENCES public.evento(seq_evento);
7622
7623
7624
7625pg_restore: creating FK CONSTRAINT "public.evento evento_local_evento_fk"
7626pg_restore: [archiver (db)] Error from TOC entry 6418; 2606 49606758 FK CONSTRAINT evento evento_local_evento_fk postgres
7627pg_restore: [archiver (db)] could not execute query: ERROR: constraint "evento_local_evento_fk" for relation "evento" already exists
7628 Command was: ALTER TABLE ONLY public.evento
7629 ADD CONSTRAINT evento_local_evento_fk FOREIGN KEY (seq_evento_local) REFERENCES public.evento_local(seq_evento_local);
7630
7631
7632
7633pg_restore: creating FK CONSTRAINT "public.evento evento_objetivo"
7634pg_restore: [archiver (db)] Error from TOC entry 6417; 2606 49606763 FK CONSTRAINT evento evento_objetivo postgres
7635pg_restore: [archiver (db)] could not execute query: ERROR: constraint "evento_objetivo" for relation "evento" already exists
7636 Command was: ALTER TABLE ONLY public.evento
7637 ADD CONSTRAINT evento_objetivo FOREIGN KEY (objetivo) REFERENCES public.evento_objetivo(seq_evento_objetivo);
7638
7639
7640
7641pg_restore: creating FK CONSTRAINT "public.sessao_evento_produto evento_produto_sessao_evento_produto_fk"
7642pg_restore: [archiver (db)] Error from TOC entry 6473; 2606 49606768 FK CONSTRAINT sessao_evento_produto evento_produto_sessao_evento_produto_fk postgres
7643pg_restore: [archiver (db)] could not execute query: ERROR: constraint "evento_produto_sessao_evento_produto_fk" for relation "sessao_evento_produto" already exists
7644 Command was: ALTER TABLE ONLY public.sessao_evento_produto
7645 ADD CONSTRAINT evento_produto_sessao_evento_produto_fk FOREIGN KEY (seq_evento_produto) REFERENCES public.evento_produto(seq_evento_produto);
7646
7647
7648
7649pg_restore: creating FK CONSTRAINT "public.evento evento_seq_competicao_edicao_fkey"
7650pg_restore: [archiver (db)] Error from TOC entry 6416; 2606 49606773 FK CONSTRAINT evento evento_seq_competicao_edicao_fkey postgres
7651pg_restore: [archiver (db)] could not execute query: ERROR: constraint "evento_seq_competicao_edicao_fkey" for relation "evento" already exists
7652 Command was: ALTER TABLE ONLY public.evento
7653 ADD CONSTRAINT evento_seq_competicao_edicao_fkey FOREIGN KEY (seq_competicao_edicao) REFERENCES public.competicao_edicao(seq_competicao_edicao);
7654
7655
7656
7657pg_restore: creating FK CONSTRAINT "public.conta fk_conta_conta_pai"
7658pg_restore: [archiver (db)] Error from TOC entry 6415; 2606 49606778 FK CONSTRAINT conta fk_conta_conta_pai postgres
7659pg_restore: [archiver (db)] could not execute query: ERROR: constraint "fk_conta_conta_pai" for relation "conta" already exists
7660 Command was: ALTER TABLE ONLY public.conta
7661 ADD CONSTRAINT fk_conta_conta_pai FOREIGN KEY (conta_pai) REFERENCES public.conta(seq_conta) ON UPDATE RESTRICT ON DELETE RESTRICT;
7662
7663
7664
7665pg_restore: creating FK CONSTRAINT "public.produto fk_produto_configuracao"
7666pg_restore: [archiver (db)] Error from TOC entry 6460; 2606 49606783 FK CONSTRAINT produto fk_produto_configuracao postgres
7667pg_restore: [archiver (db)] could not execute query: ERROR: constraint "fk_produto_configuracao" for relation "produto" already exists
7668 Command was: ALTER TABLE ONLY public.produto
7669 ADD CONSTRAINT fk_produto_configuracao FOREIGN KEY (seq_produto_configuracao) REFERENCES public.produto_configuracao(seq_produto_configuracao);
7670
7671
7672
7673pg_restore: creating FK CONSTRAINT "public.meio_pagamento forma_pagamento_meio_pagamento_fk"
7674pg_restore: [archiver (db)] Error from TOC entry 6437; 2606 49606788 FK CONSTRAINT meio_pagamento forma_pagamento_meio_pagamento_fk postgres
7675pg_restore: [archiver (db)] could not execute query: ERROR: constraint "forma_pagamento_meio_pagamento_fk" for relation "meio_pagamento" already exists
7676 Command was: ALTER TABLE ONLY public.meio_pagamento
7677 ADD CONSTRAINT forma_pagamento_meio_pagamento_fk FOREIGN KEY (seq_forma_pagamento) REFERENCES public.forma_pagamento(seq_forma_pagamento);
7678
7679
7680
7681pg_restore: creating FK CONSTRAINT "public.pessoa_dados_pagamento forma_pagamento_pessoa_dados_pagamento_fk"
7682pg_restore: [archiver (db)] Error from TOC entry 6454; 2606 49606793 FK CONSTRAINT pessoa_dados_pagamento forma_pagamento_pessoa_dados_pagamento_fk postgres
7683pg_restore: [archiver (db)] could not execute query: ERROR: constraint "forma_pagamento_pessoa_dados_pagamento_fk" for relation "pessoa_dados_pagamento" already exists
7684 Command was: ALTER TABLE ONLY public.pessoa_dados_pagamento
7685 ADD CONSTRAINT forma_pagamento_pessoa_dados_pagamento_fk FOREIGN KEY (seq_forma_pagamento) REFERENCES public.forma_pagamento(seq_forma_pagamento) ON UPDATE CASCADE;
7686
7687
7688
7689pg_restore: creating FK CONSTRAINT "public.ingresso ingresso_ingresso_fk"
7690pg_restore: [archiver (db)] Error from TOC entry 6424; 2606 49606798 FK CONSTRAINT ingresso ingresso_ingresso_fk postgres
7691pg_restore: [archiver (db)] could not execute query: ERROR: constraint "ingresso_ingresso_fk" for relation "ingresso" already exists
7692 Command was: ALTER TABLE ONLY public.ingresso
7693 ADD CONSTRAINT ingresso_ingresso_fk FOREIGN KEY (seq_ingresso_vinculo) REFERENCES public.ingresso(seq_ingresso);
7694
7695
7696
7697pg_restore: creating FK CONSTRAINT "public.ingresso ingresso_movimento_item_fk"
7698pg_restore: [archiver (db)] Error from TOC entry 6423; 2606 49606803 FK CONSTRAINT ingresso ingresso_movimento_item_fk postgres
7699pg_restore: [archiver (db)] could not execute query: ERROR: constraint "ingresso_movimento_item_fk" for relation "ingresso" already exists
7700 Command was: ALTER TABLE ONLY public.ingresso
7701 ADD CONSTRAINT ingresso_movimento_item_fk FOREIGN KEY (seq_movimento_item) REFERENCES public.movimento_item(seq_movimento_item);
7702
7703
7704
7705pg_restore: creating FK CONSTRAINT "public.pessoa_dados_pagamento instituicao_financeira_pessoa_dados_pagamento_fk"
7706pg_restore: [archiver (db)] Error from TOC entry 6453; 2606 49606808 FK CONSTRAINT pessoa_dados_pagamento instituicao_financeira_pessoa_dados_pagamento_fk postgres
7707pg_restore: [archiver (db)] could not execute query: ERROR: constraint "instituicao_financeira_pessoa_dados_pagamento_fk" for relation "pessoa_dados_pagamento" already exists
7708 Command was: ALTER TABLE ONLY public.pessoa_dados_pagamento
7709 ADD CONSTRAINT instituicao_financeira_pessoa_dados_pagamento_fk FOREIGN KEY (seq_instituicao_financeira) REFERENCES public.instituicao_financeira(seq_instituicao_financeira) ON UPDATE CASCADE;
7710
7711
7712
7713pg_restore: creating FK CONSTRAINT "public.liberacao liberacao_seq_produto_fk"
7714pg_restore: [archiver (db)] Error from TOC entry 6427; 2606 49606813 FK CONSTRAINT liberacao liberacao_seq_produto_fk postgres
7715pg_restore: [archiver (db)] could not execute query: ERROR: constraint "liberacao_seq_produto_fk" for relation "liberacao" already exists
7716 Command was: ALTER TABLE ONLY public.liberacao
7717 ADD CONSTRAINT liberacao_seq_produto_fk FOREIGN KEY (seq_produto) REFERENCES public.produto(seq_produto);
7718
7719
7720
7721pg_restore: creating FK CONSTRAINT "public.cartao matricula_cartao_fk"
7722pg_restore: [archiver (db)] Error from TOC entry 6408; 2606 49606818 FK CONSTRAINT cartao matricula_cartao_fk postgres
7723pg_restore: [archiver (db)] could not execute query: ERROR: constraint "matricula_cartao_fk" for relation "cartao" already exists
7724 Command was: ALTER TABLE ONLY public.cartao
7725 ADD CONSTRAINT matricula_cartao_fk FOREIGN KEY (matricula) REFERENCES public.matricula(matricula) ON UPDATE CASCADE;
7726
7727
7728
7729pg_restore: creating FK CONSTRAINT "public.movimento_cobranca matricula_matricula_cobranca_fk"
7730pg_restore: [archiver (db)] Error from TOC entry 6436; 2606 49606823 FK CONSTRAINT movimento_cobranca matricula_matricula_cobranca_fk postgres
7731pg_restore: [archiver (db)] could not execute query: ERROR: constraint "matricula_matricula_cobranca_fk" for relation "movimento_cobranca" already exists
7732 Command was: ALTER TABLE ONLY public.movimento_cobranca
7733 ADD CONSTRAINT matricula_matricula_cobranca_fk FOREIGN KEY (matricula) REFERENCES public.matricula(matricula) ON UPDATE CASCADE;
7734
7735
7736
7737pg_restore: creating FK CONSTRAINT "public.obs_matricula matricula_obs_matricula_fk"
7738pg_restore: [archiver (db)] Error from TOC entry 6448; 2606 49606828 FK CONSTRAINT obs_matricula matricula_obs_matricula_fk postgres
7739pg_restore: [archiver (db)] could not execute query: ERROR: constraint "matricula_obs_matricula_fk" for relation "obs_matricula" already exists
7740 Command was: ALTER TABLE ONLY public.obs_matricula
7741 ADD CONSTRAINT matricula_obs_matricula_fk FOREIGN KEY (matricula) REFERENCES public.matricula(matricula) ON UPDATE CASCADE;
7742
7743
7744
7745pg_restore: creating FK CONSTRAINT "public.matricula matricula_plano_pgto"
7746pg_restore: [archiver (db)] Error from TOC entry 6431; 2606 49606833 FK CONSTRAINT matricula matricula_plano_pgto postgres
7747pg_restore: [archiver (db)] could not execute query: ERROR: constraint "matricula_plano_pgto" for relation "matricula" already exists
7748 Command was: ALTER TABLE ONLY public.matricula
7749 ADD CONSTRAINT matricula_plano_pgto FOREIGN KEY (seq_plano_pgto) REFERENCES public.plano_pgto(seq_plano_pgto);
7750
7751
7752
7753pg_restore: creating FK CONSTRAINT "public.menu menu_objeto_fkey"
7754pg_restore: [archiver (db)] Error from TOC entry 6438; 2606 49606838 FK CONSTRAINT menu menu_objeto_fkey postgres
7755pg_restore: [archiver (db)] could not execute query: ERROR: constraint "menu_objeto_fkey" for relation "menu" already exists
7756 Command was: ALTER TABLE ONLY public.menu
7757 ADD CONSTRAINT menu_objeto_fkey FOREIGN KEY (objeto) REFERENCES public.objeto(seq_objeto);
7758
7759
7760
7761pg_restore: creating FK CONSTRAINT "public.movimento_cobranca movimento_cobranca_seq_pessoa_fkey"
7762pg_restore: [archiver (db)] Error from TOC entry 6435; 2606 49606843 FK CONSTRAINT movimento_cobranca movimento_cobranca_seq_pessoa_fkey postgres
7763pg_restore: [archiver (db)] could not execute query: ERROR: constraint "movimento_cobranca_seq_pessoa_fkey" for relation "movimento_cobranca" already exists
7764 Command was: ALTER TABLE ONLY public.movimento_cobranca
7765 ADD CONSTRAINT movimento_cobranca_seq_pessoa_fkey FOREIGN KEY (seq_pessoa) REFERENCES public.pessoa(seq_pessoa) ON UPDATE CASCADE;
7766
7767
7768
7769pg_restore: creating FK CONSTRAINT "public.movimento_item movimento_item_seq_movimento_cobranca_fkey"
7770pg_restore: [archiver (db)] Error from TOC entry 6444; 2606 49606848 FK CONSTRAINT movimento_item movimento_item_seq_movimento_cobranca_fkey postgres
7771pg_restore: [archiver (db)] could not execute query: ERROR: constraint "movimento_item_seq_movimento_cobranca_fkey" for relation "movimento_item" already exists
7772 Command was: ALTER TABLE ONLY public.movimento_item
7773 ADD CONSTRAINT movimento_item_seq_movimento_cobranca_fkey FOREIGN KEY (seq_movimento_cobranca) REFERENCES public.movimento_cobranca(seq_movimento_cobranca) ON UPDATE CASCADE;
7774
7775
7776
7777pg_restore: creating FK CONSTRAINT "public.movimento_item movimento_item_seq_sessao_evento_produto_fkey"
7778pg_restore: [archiver (db)] Error from TOC entry 6443; 2606 49606853 FK CONSTRAINT movimento_item movimento_item_seq_sessao_evento_produto_fkey postgres
7779pg_restore: [archiver (db)] could not execute query: ERROR: constraint "movimento_item_seq_sessao_evento_produto_fkey" for relation "movimento_item" already exists
7780 Command was: ALTER TABLE ONLY public.movimento_item
7781 ADD CONSTRAINT movimento_item_seq_sessao_evento_produto_fkey FOREIGN KEY (seq_sessao_evento_produto) REFERENCES public.sessao_evento_produto(seq_sessao_evento_produto);
7782
7783
7784
7785pg_restore: creating FK CONSTRAINT "public.movimento_item movimento_movimento_item_fk"
7786pg_restore: [archiver (db)] Error from TOC entry 6442; 2606 49606858 FK CONSTRAINT movimento_item movimento_movimento_item_fk postgres
7787pg_restore: [archiver (db)] could not execute query: ERROR: constraint "movimento_movimento_item_fk" for relation "movimento_item" already exists
7788 Command was: ALTER TABLE ONLY public.movimento_item
7789 ADD CONSTRAINT movimento_movimento_item_fk FOREIGN KEY (seq_movimento) REFERENCES public.movimento(seq_movimento) ON UPDATE CASCADE;
7790
7791
7792
7793pg_restore: creating FK CONSTRAINT "public.movimento_pagamento movimento_movimento_pagamento_fk"
7794pg_restore: [archiver (db)] Error from TOC entry 6447; 2606 49606863 FK CONSTRAINT movimento_pagamento movimento_movimento_pagamento_fk postgres
7795pg_restore: [archiver (db)] could not execute query: ERROR: constraint "movimento_movimento_pagamento_fk" for relation "movimento_pagamento" already exists
7796 Command was: ALTER TABLE ONLY public.movimento_pagamento
7797 ADD CONSTRAINT movimento_movimento_pagamento_fk FOREIGN KEY (seq_movimento) REFERENCES public.movimento(seq_movimento) ON UPDATE CASCADE;
7798
7799
7800
7801pg_restore: creating FK CONSTRAINT "public.movimento movimento_operador_fkey"
7802pg_restore: [archiver (db)] Error from TOC entry 6440; 2606 49606868 FK CONSTRAINT movimento movimento_operador_fkey postgres
7803pg_restore: [archiver (db)] could not execute query: ERROR: constraint "movimento_operador_fkey" for relation "movimento" already exists
7804 Command was: ALTER TABLE ONLY public.movimento
7805 ADD CONSTRAINT movimento_operador_fkey FOREIGN KEY (operador) REFERENCES public.usuario(seq_usuario);
7806
7807
7808
7809pg_restore: creating FK CONSTRAINT "public.movimento_pagamento movimento_pagamento_seq_forma_pagamento_fkey"
7810pg_restore: [archiver (db)] Error from TOC entry 6446; 2606 49606873 FK CONSTRAINT movimento_pagamento movimento_pagamento_seq_forma_pagamento_fkey postgres
7811pg_restore: [archiver (db)] could not execute query: ERROR: constraint "movimento_pagamento_seq_forma_pagamento_fkey" for relation "movimento_pagamento" already exists
7812 Command was: ALTER TABLE ONLY public.movimento_pagamento
7813 ADD CONSTRAINT movimento_pagamento_seq_forma_pagamento_fkey FOREIGN KEY (seq_forma_pagamento) REFERENCES public.forma_pagamento(seq_forma_pagamento);
7814
7815
7816
7817pg_restore: creating FK CONSTRAINT "public.movimento_pagamento movimento_pagamento_seq_meio_pagamento_fkey"
7818pg_restore: [archiver (db)] Error from TOC entry 6445; 2606 49606878 FK CONSTRAINT movimento_pagamento movimento_pagamento_seq_meio_pagamento_fkey postgres
7819pg_restore: [archiver (db)] could not execute query: ERROR: constraint "movimento_pagamento_seq_meio_pagamento_fkey" for relation "movimento_pagamento" already exists
7820 Command was: ALTER TABLE ONLY public.movimento_pagamento
7821 ADD CONSTRAINT movimento_pagamento_seq_meio_pagamento_fkey FOREIGN KEY (seq_meio_pagamento) REFERENCES public.meio_pagamento(seq_meio_pagamento);
7822
7823
7824
7825pg_restore: creating FK CONSTRAINT "public.movimento movimento_seq_pessoa_fkey"
7826pg_restore: [archiver (db)] Error from TOC entry 6439; 2606 49606883 FK CONSTRAINT movimento movimento_seq_pessoa_fkey postgres
7827pg_restore: [archiver (db)] could not execute query: ERROR: constraint "movimento_seq_pessoa_fkey" for relation "movimento" already exists
7828 Command was: ALTER TABLE ONLY public.movimento
7829 ADD CONSTRAINT movimento_seq_pessoa_fkey FOREIGN KEY (seq_pessoa) REFERENCES public.pessoa(seq_pessoa);
7830
7831
7832
7833pg_restore: creating FK CONSTRAINT "public.perfil_objeto objeto_perfil_objeto_fk"
7834pg_restore: [archiver (db)] Error from TOC entry 6450; 2606 49606888 FK CONSTRAINT perfil_objeto objeto_perfil_objeto_fk postgres
7835pg_restore: [archiver (db)] could not execute query: ERROR: constraint "objeto_perfil_objeto_fk" for relation "perfil_objeto" already exists
7836 Command was: ALTER TABLE ONLY public.perfil_objeto
7837 ADD CONSTRAINT objeto_perfil_objeto_fk FOREIGN KEY (seq_objeto) REFERENCES public.objeto(seq_objeto);
7838
7839
7840
7841pg_restore: creating FK CONSTRAINT "public.perfil_objeto perfil_perfil_objeto_fk"
7842pg_restore: [archiver (db)] Error from TOC entry 6449; 2606 49606893 FK CONSTRAINT perfil_objeto perfil_perfil_objeto_fk postgres
7843pg_restore: [archiver (db)] could not execute query: ERROR: constraint "perfil_perfil_objeto_fk" for relation "perfil_objeto" already exists
7844 Command was: ALTER TABLE ONLY public.perfil_objeto
7845 ADD CONSTRAINT perfil_perfil_objeto_fk FOREIGN KEY (seq_perfil) REFERENCES public.perfil(seq_perfil);
7846
7847
7848
7849pg_restore: creating FK CONSTRAINT "public.usuario perfil_usuario_fk"
7850pg_restore: [archiver (db)] Error from TOC entry 6478; 2606 49606898 FK CONSTRAINT usuario perfil_usuario_fk postgres
7851pg_restore: [archiver (db)] could not execute query: ERROR: constraint "perfil_usuario_fk" for relation "usuario" already exists
7852 Command was: ALTER TABLE ONLY public.usuario
7853 ADD CONSTRAINT perfil_usuario_fk FOREIGN KEY (seq_perfil) REFERENCES public.perfil(seq_perfil);
7854
7855
7856
7857pg_restore: creating FK CONSTRAINT "public.matricula pessoa_dados_pagamento_matricula"
7858pg_restore: [archiver (db)] Error from TOC entry 6430; 2606 49606903 FK CONSTRAINT matricula pessoa_dados_pagamento_matricula postgres
7859pg_restore: [archiver (db)] could not execute query: ERROR: constraint "pessoa_dados_pagamento_matricula" for relation "matricula" already exists
7860 Command was: ALTER TABLE ONLY public.matricula
7861 ADD CONSTRAINT pessoa_dados_pagamento_matricula FOREIGN KEY (seq_pessoa_dados_pagamento) REFERENCES public.pessoa_dados_pagamento(seq_pessoa_dados_pagamento);
7862
7863
7864
7865pg_restore: creating FK CONSTRAINT "public.ingresso pessoa_ingresso_fk"
7866pg_restore: [archiver (db)] Error from TOC entry 6422; 2606 49606908 FK CONSTRAINT ingresso pessoa_ingresso_fk postgres
7867pg_restore: [archiver (db)] could not execute query: ERROR: constraint "pessoa_ingresso_fk" for relation "ingresso" already exists
7868 Command was: ALTER TABLE ONLY public.ingresso
7869 ADD CONSTRAINT pessoa_ingresso_fk FOREIGN KEY (seq_pessoa) REFERENCES public.pessoa(seq_pessoa);
7870
7871
7872
7873pg_restore: creating FK CONSTRAINT "public.matricula pessoa_matricula_fk"
7874pg_restore: [archiver (db)] Error from TOC entry 6429; 2606 49606913 FK CONSTRAINT matricula pessoa_matricula_fk postgres
7875pg_restore: [archiver (db)] could not execute query: ERROR: constraint "pessoa_matricula_fk" for relation "matricula" already exists
7876 Command was: ALTER TABLE ONLY public.matricula
7877 ADD CONSTRAINT pessoa_matricula_fk FOREIGN KEY (seq_pessoa) REFERENCES public.pessoa(seq_pessoa) ON UPDATE CASCADE;
7878
7879
7880
7881pg_restore: creating FK CONSTRAINT "public.pessoa_dados_pagamento pessoa_pessoa_dados_pagamento_fk"
7882pg_restore: [archiver (db)] Error from TOC entry 6452; 2606 49606918 FK CONSTRAINT pessoa_dados_pagamento pessoa_pessoa_dados_pagamento_fk postgres
7883pg_restore: [archiver (db)] could not execute query: ERROR: constraint "pessoa_pessoa_dados_pagamento_fk" for relation "pessoa_dados_pagamento" already exists
7884 Command was: ALTER TABLE ONLY public.pessoa_dados_pagamento
7885 ADD CONSTRAINT pessoa_pessoa_dados_pagamento_fk FOREIGN KEY (seq_pessoa) REFERENCES public.pessoa(seq_pessoa) ON UPDATE CASCADE;
7886
7887
7888
7889pg_restore: creating FK CONSTRAINT "public.usuario pessoa_usuario_fk"
7890pg_restore: [archiver (db)] Error from TOC entry 6477; 2606 49606923 FK CONSTRAINT usuario pessoa_usuario_fk postgres
7891pg_restore: [archiver (db)] could not execute query: ERROR: constraint "pessoa_usuario_fk" for relation "usuario" already exists
7892 Command was: ALTER TABLE ONLY public.usuario
7893 ADD CONSTRAINT pessoa_usuario_fk FOREIGN KEY (seq_pessoa) REFERENCES public.pessoa(seq_pessoa);
7894
7895
7896
7897pg_restore: creating FK CONSTRAINT "public.pessoa_vinculo pessoa_vinculo_pessoa_fk"
7898pg_restore: [archiver (db)] Error from TOC entry 6456; 2606 49606928 FK CONSTRAINT pessoa_vinculo pessoa_vinculo_pessoa_fk postgres
7899pg_restore: [archiver (db)] could not execute query: ERROR: constraint "pessoa_vinculo_pessoa_fk" for relation "pessoa_vinculo" already exists
7900 Command was: ALTER TABLE ONLY public.pessoa_vinculo
7901 ADD CONSTRAINT pessoa_vinculo_pessoa_fk FOREIGN KEY (seq_pessoa) REFERENCES public.pessoa(seq_pessoa);
7902
7903
7904
7905pg_restore: creating FK CONSTRAINT "public.pessoa_vinculo pessoa_vinculo_vinculo_fk"
7906pg_restore: [archiver (db)] Error from TOC entry 6455; 2606 49606933 FK CONSTRAINT pessoa_vinculo pessoa_vinculo_vinculo_fk postgres
7907pg_restore: [archiver (db)] could not execute query: ERROR: constraint "pessoa_vinculo_vinculo_fk" for relation "pessoa_vinculo" already exists
7908 Command was: ALTER TABLE ONLY public.pessoa_vinculo
7909 ADD CONSTRAINT pessoa_vinculo_vinculo_fk FOREIGN KEY (seq_vinculo) REFERENCES public.vinculo(seq_vinculo);
7910
7911
7912
7913pg_restore: creating FK CONSTRAINT "public.plano_pgto plano_pgto_seq_produto_fkey"
7914pg_restore: [archiver (db)] Error from TOC entry 6457; 2606 49606938 FK CONSTRAINT plano_pgto plano_pgto_seq_produto_fkey acbf
7915pg_restore: [archiver (db)] could not execute query: ERROR: constraint "plano_pgto_seq_produto_fkey" for relation "plano_pgto" already exists
7916 Command was: ALTER TABLE ONLY public.plano_pgto
7917 ADD CONSTRAINT plano_pgto_seq_produto_fkey FOREIGN KEY (seq_produto) REFERENCES public.produto(seq_produto);
7918
7919
7920
7921pg_restore: creating FK CONSTRAINT "public.catraca portao_catraca_fk"
7922pg_restore: [archiver (db)] Error from TOC entry 6409; 2606 49606943 FK CONSTRAINT catraca portao_catraca_fk postgres
7923pg_restore: [archiver (db)] could not execute query: ERROR: constraint "portao_catraca_fk" for relation "catraca" already exists
7924 Command was: ALTER TABLE ONLY public.catraca
7925 ADD CONSTRAINT portao_catraca_fk FOREIGN KEY (seq_portao) REFERENCES public.portao(seq_portao) ON UPDATE CASCADE;
7926
7927
7928
7929pg_restore: creating FK CONSTRAINT "public.produto produto_contrato_produto_fk"
7930pg_restore: [archiver (db)] Error from TOC entry 6459; 2606 49606948 FK CONSTRAINT produto produto_contrato_produto_fk postgres
7931pg_restore: [archiver (db)] could not execute query: ERROR: constraint "produto_contrato_produto_fk" for relation "produto" already exists
7932 Command was: ALTER TABLE ONLY public.produto
7933 ADD CONSTRAINT produto_contrato_produto_fk FOREIGN KEY (seq_produto_contrato) REFERENCES public.produto_contrato(seq_produto_contrato) ON UPDATE CASCADE;
7934
7935
7936
7937pg_restore: creating FK CONSTRAINT "public.evento_produto produto_evento_produto_fk"
7938pg_restore: [archiver (db)] Error from TOC entry 6420; 2606 49606953 FK CONSTRAINT evento_produto produto_evento_produto_fk postgres
7939pg_restore: [archiver (db)] could not execute query: ERROR: constraint "produto_evento_produto_fk" for relation "evento_produto" already exists
7940 Command was: ALTER TABLE ONLY public.evento_produto
7941 ADD CONSTRAINT produto_evento_produto_fk FOREIGN KEY (seq_produto) REFERENCES public.produto(seq_produto);
7942
7943
7944
7945pg_restore: creating FK CONSTRAINT "public.matricula produto_matricula_fk"
7946pg_restore: [archiver (db)] Error from TOC entry 6428; 2606 49606958 FK CONSTRAINT matricula produto_matricula_fk postgres
7947pg_restore: [archiver (db)] could not execute query: ERROR: constraint "produto_matricula_fk" for relation "matricula" already exists
7948 Command was: ALTER TABLE ONLY public.matricula
7949 ADD CONSTRAINT produto_matricula_fk FOREIGN KEY (seq_produto) REFERENCES public.produto(seq_produto) ON UPDATE CASCADE;
7950
7951
7952
7953pg_restore: creating FK CONSTRAINT "public.produto_plano_pgto produto_plano_pgto_seq_plano_pgto_fkey"
7954pg_restore: [archiver (db)] Error from TOC entry 6464; 2606 49606963 FK CONSTRAINT produto_plano_pgto produto_plano_pgto_seq_plano_pgto_fkey acbf
7955pg_restore: [archiver (db)] could not execute query: ERROR: constraint "produto_plano_pgto_seq_plano_pgto_fkey" for relation "produto_plano_pgto" already exists
7956 Command was: ALTER TABLE ONLY public.produto_plano_pgto
7957 ADD CONSTRAINT produto_plano_pgto_seq_plano_pgto_fkey FOREIGN KEY (seq_plano_pgto) REFERENCES public.plano_pgto(seq_plano_pgto);
7958
7959
7960
7961pg_restore: creating FK CONSTRAINT "public.produto_plano_pgto produto_plano_pgto_seq_produto_taxa_fkey"
7962pg_restore: [archiver (db)] Error from TOC entry 6463; 2606 49606968 FK CONSTRAINT produto_plano_pgto produto_plano_pgto_seq_produto_taxa_fkey acbf
7963pg_restore: [archiver (db)] could not execute query: ERROR: constraint "produto_plano_pgto_seq_produto_taxa_fkey" for relation "produto_plano_pgto" already exists
7964 Command was: ALTER TABLE ONLY public.produto_plano_pgto
7965 ADD CONSTRAINT produto_plano_pgto_seq_produto_taxa_fkey FOREIGN KEY (seq_produto_taxa) REFERENCES public.produto_taxa(seq_produto_taxa);
7966
7967
7968
7969pg_restore: creating FK CONSTRAINT "public.produto_catraca produto_produto_catraca_fk"
7970pg_restore: [archiver (db)] Error from TOC entry 6461; 2606 49606973 FK CONSTRAINT produto_catraca produto_produto_catraca_fk postgres
7971pg_restore: [archiver (db)] could not execute query: ERROR: constraint "produto_produto_catraca_fk" for relation "produto_catraca" already exists
7972 Command was: ALTER TABLE ONLY public.produto_catraca
7973 ADD CONSTRAINT produto_produto_catraca_fk FOREIGN KEY (seq_produto) REFERENCES public.produto(seq_produto) ON UPDATE CASCADE;
7974
7975
7976
7977pg_restore: creating FK CONSTRAINT "public.produto_taxa produto_produto_taxa_fk"
7978pg_restore: [archiver (db)] Error from TOC entry 6466; 2606 49606978 FK CONSTRAINT produto_taxa produto_produto_taxa_fk postgres
7979pg_restore: [archiver (db)] could not execute query: ERROR: insert or update on table "produto_taxa" violates foreign key constraint "produto_produto_taxa_fk"
7980DETAIL: Key (seq_produto)=(331) is not present in table "produto".
7981 Command was: ALTER TABLE ONLY public.produto_taxa
7982 ADD CONSTRAINT produto_produto_taxa_fk FOREIGN KEY (seq_produto) REFERENCES public.produto(seq_produto) ON UPDATE CASCADE;
7983
7984
7985
7986pg_restore: creating FK CONSTRAINT "public.produto_escolinha_turma produto_produto_taxa_fk"
7987pg_restore: [archiver (db)] Error from TOC entry 6479; 2606 49893180 FK CONSTRAINT produto_escolinha_turma produto_produto_taxa_fk postgres
7988pg_restore: [archiver (db)] could not execute query: ERROR: constraint "produto_produto_taxa_fk" for relation "produto_escolinha_turma" already exists
7989 Command was: ALTER TABLE ONLY public.produto_escolinha_turma
7990 ADD CONSTRAINT produto_produto_taxa_fk FOREIGN KEY (seq_produto) REFERENCES public.produto(seq_produto) ON UPDATE CASCADE;
7991
7992
7993
7994pg_restore: creating FK CONSTRAINT "public.movimento_cobranca produto_taxa_matricula_cobranca_fk"
7995pg_restore: [archiver (db)] Error from TOC entry 6434; 2606 49606983 FK CONSTRAINT movimento_cobranca produto_taxa_matricula_cobranca_fk postgres
7996pg_restore: [archiver (db)] could not execute query: ERROR: constraint "produto_taxa_matricula_cobranca_fk" for relation "movimento_cobranca" already exists
7997 Command was: ALTER TABLE ONLY public.movimento_cobranca
7998 ADD CONSTRAINT produto_taxa_matricula_cobranca_fk FOREIGN KEY (seq_produto_taxa) REFERENCES public.produto_taxa(seq_produto_taxa) ON UPDATE CASCADE;
7999
8000
8001
8002pg_restore: creating FK CONSTRAINT "public.movimento_item produto_taxa_movimento_item_fk"
8003pg_restore: [archiver (db)] Error from TOC entry 6441; 2606 49606988 FK CONSTRAINT movimento_item produto_taxa_movimento_item_fk postgres
8004pg_restore: [archiver (db)] could not execute query: ERROR: constraint "produto_taxa_movimento_item_fk" for relation "movimento_item" already exists
8005 Command was: ALTER TABLE ONLY public.movimento_item
8006 ADD CONSTRAINT produto_taxa_movimento_item_fk FOREIGN KEY (seq_produto_taxa) REFERENCES public.produto_taxa(seq_produto_taxa) ON UPDATE CASCADE;
8007
8008
8009
8010pg_restore: creating FK CONSTRAINT "public.pessoa profissao_pessoa_fk"
8011pg_restore: [archiver (db)] Error from TOC entry 6451; 2606 49606993 FK CONSTRAINT pessoa profissao_pessoa_fk postgres
8012pg_restore: [archiver (db)] could not execute query: ERROR: constraint "profissao_pessoa_fk" for relation "pessoa" already exists
8013 Command was: ALTER TABLE ONLY public.pessoa
8014 ADD CONSTRAINT profissao_pessoa_fk FOREIGN KEY (seq_profissao) REFERENCES public.profissao(seq_profissao) ON UPDATE CASCADE;
8015
8016
8017
8018pg_restore: creating FK CONSTRAINT "public.cobranca_titulo remessa_cobranca_titulo_fk"
8019pg_restore: [archiver (db)] Error from TOC entry 6410; 2606 49606998 FK CONSTRAINT cobranca_titulo remessa_cobranca_titulo_fk postgres
8020pg_restore: [archiver (db)] could not execute query: ERROR: constraint "remessa_cobranca_titulo_fk" for relation "cobranca_titulo" already exists
8021 Command was: ALTER TABLE ONLY public.cobranca_titulo
8022 ADD CONSTRAINT remessa_cobranca_titulo_fk FOREIGN KEY (seq_remessa) REFERENCES public.remessa(seq_remessa) ON UPDATE CASCADE;
8023
8024
8025
8026pg_restore: creating FK CONSTRAINT "public.sangria sessao_sangria_fk"
8027pg_restore: [archiver (db)] Error from TOC entry 6468; 2606 49607003 FK CONSTRAINT sangria sessao_sangria_fk postgres
8028pg_restore: [archiver (db)] could not execute query: ERROR: constraint "sessao_sangria_fk" for relation "sangria" already exists
8029 Command was: ALTER TABLE ONLY public.sangria
8030 ADD CONSTRAINT sessao_sangria_fk FOREIGN KEY (seq_sessao) REFERENCES public.sessao(seq_sessao);
8031
8032
8033
8034pg_restore: creating FK CONSTRAINT "public.sessao_evento_produto sessao_sessao_evento_produto_fk"
8035pg_restore: [archiver (db)] Error from TOC entry 6472; 2606 49607008 FK CONSTRAINT sessao_evento_produto sessao_sessao_evento_produto_fk postgres
8036pg_restore: [archiver (db)] could not execute query: ERROR: constraint "sessao_sessao_evento_produto_fk" for relation "sessao_evento_produto" already exists
8037 Command was: ALTER TABLE ONLY public.sessao_evento_produto
8038 ADD CONSTRAINT sessao_sessao_evento_produto_fk FOREIGN KEY (seq_sessao) REFERENCES public.sessao(seq_sessao);
8039
8040
8041
8042pg_restore: creating FK CONSTRAINT "public.troco sessao_troco_fk"
8043pg_restore: [archiver (db)] Error from TOC entry 6475; 2606 49607013 FK CONSTRAINT troco sessao_troco_fk postgres
8044pg_restore: [archiver (db)] could not execute query: ERROR: constraint "sessao_troco_fk" for relation "troco" already exists
8045 Command was: ALTER TABLE ONLY public.troco
8046 ADD CONSTRAINT sessao_troco_fk FOREIGN KEY (seq_sessao) REFERENCES public.sessao(seq_sessao);
8047
8048
8049
8050pg_restore: creating FK CONSTRAINT "public.assento setor_assento_fk"
8051pg_restore: [archiver (db)] Error from TOC entry 6407; 2606 49607018 FK CONSTRAINT assento setor_assento_fk postgres
8052pg_restore: [archiver (db)] could not execute query: ERROR: constraint "setor_assento_fk" for relation "assento" already exists
8053 Command was: ALTER TABLE ONLY public.assento
8054 ADD CONSTRAINT setor_assento_fk FOREIGN KEY (seq_setor) REFERENCES public.setor(seq_setor);
8055
8056
8057
8058pg_restore: creating FK CONSTRAINT "public.portao setor_portao_fk"
8059pg_restore: [archiver (db)] Error from TOC entry 6458; 2606 49607023 FK CONSTRAINT portao setor_portao_fk postgres
8060pg_restore: [archiver (db)] could not execute query: ERROR: constraint "setor_portao_fk" for relation "portao" already exists
8061 Command was: ALTER TABLE ONLY public.portao
8062 ADD CONSTRAINT setor_portao_fk FOREIGN KEY (seq_setor) REFERENCES public.setor(seq_setor) ON UPDATE CASCADE;
8063
8064
8065
8066pg_restore: creating FK CONSTRAINT "public.produto_taxa taxa_produto_taxa_fk"
8067pg_restore: [archiver (db)] Error from TOC entry 6465; 2606 49607028 FK CONSTRAINT produto_taxa taxa_produto_taxa_fk postgres
8068pg_restore: [archiver (db)] could not execute query: ERROR: insert or update on table "produto_taxa" violates foreign key constraint "taxa_produto_taxa_fk"
8069DETAIL: Key (seq_taxa)=(1) is not present in table "taxa".
8070 Command was: ALTER TABLE ONLY public.produto_taxa
8071 ADD CONSTRAINT taxa_produto_taxa_fk FOREIGN KEY (seq_taxa) REFERENCES public.taxa(seq_taxa) ON UPDATE CASCADE;
8072
8073
8074
8075pg_restore: creating FK CONSTRAINT "public.sangria usuario_sangria_fk"
8076pg_restore: [archiver (db)] Error from TOC entry 6467; 2606 49607033 FK CONSTRAINT sangria usuario_sangria_fk postgres
8077pg_restore: [archiver (db)] could not execute query: ERROR: constraint "usuario_sangria_fk" for relation "sangria" already exists
8078 Command was: ALTER TABLE ONLY public.sangria
8079 ADD CONSTRAINT usuario_sangria_fk FOREIGN KEY (seq_supervisor) REFERENCES public.usuario(seq_usuario);
8080
8081
8082
8083pg_restore: creating FK CONSTRAINT "public.sessao_evento_produto usuario_sessao_evento_produto_fk"
8084pg_restore: [archiver (db)] Error from TOC entry 6471; 2606 49607038 FK CONSTRAINT sessao_evento_produto usuario_sessao_evento_produto_fk postgres
8085pg_restore: [archiver (db)] could not execute query: ERROR: constraint "usuario_sessao_evento_produto_fk" for relation "sessao_evento_produto" already exists
8086 Command was: ALTER TABLE ONLY public.sessao_evento_produto
8087 ADD CONSTRAINT usuario_sessao_evento_produto_fk FOREIGN KEY (seq_supervisor) REFERENCES public.usuario(seq_usuario);
8088
8089
8090
8091pg_restore: creating FK CONSTRAINT "public.sessao usuario_sessao_fk"
8092pg_restore: [archiver (db)] Error from TOC entry 6469; 2606 49607043 FK CONSTRAINT sessao usuario_sessao_fk postgres
8093pg_restore: [archiver (db)] could not execute query: ERROR: constraint "usuario_sessao_fk" for relation "sessao" already exists
8094 Command was: ALTER TABLE ONLY public.sessao
8095 ADD CONSTRAINT usuario_sessao_fk FOREIGN KEY (seq_bilheteiro) REFERENCES public.usuario(seq_usuario);
8096
8097
8098
8099pg_restore: creating FK CONSTRAINT "public.usuario usuario_tipo_usuario_fk"
8100pg_restore: [archiver (db)] Error from TOC entry 6476; 2606 49607048 FK CONSTRAINT usuario usuario_tipo_usuario_fk postgres
8101pg_restore: [archiver (db)] could not execute query: ERROR: constraint "usuario_tipo_usuario_fk" for relation "usuario" already exists
8102 Command was: ALTER TABLE ONLY public.usuario
8103 ADD CONSTRAINT usuario_tipo_usuario_fk FOREIGN KEY (seq_usuario_tipo) REFERENCES public.usuario_tipo(seq_usuario_tipo);
8104
8105
8106
8107pg_restore: creating FK CONSTRAINT "public.troco usuario_troco_fk"
8108pg_restore: [archiver (db)] Error from TOC entry 6474; 2606 49607053 FK CONSTRAINT troco usuario_troco_fk postgres
8109pg_restore: [archiver (db)] could not execute query: ERROR: constraint "usuario_troco_fk" for relation "troco" already exists
8110 Command was: ALTER TABLE ONLY public.troco
8111 ADD CONSTRAINT usuario_troco_fk FOREIGN KEY (seq_supervisor) REFERENCES public.usuario(seq_usuario);
8112
8113
8114
8115WARNING: errors ignored on restore: 394