Advertisement
Guest User

Untitled

a guest
Jan 14th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pg_restore: [archiver (db)] Error while PROCESSING TOC:
  2. pg_restore: [archiver (db)] Error from TOC entry 1193; 1255 47395439 FUNCTION apaga_arvore(bigint, character varying, character varying) postgres
  3. pg_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 $_$
  7. declare
  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.  
  21. begin
  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;
  43. end;
  44. $_$;
  45.  
  46.  
  47.  
  48. pg_restore: creating FUNCTION "public.cobranca_adiciona_taxa(integer)"
  49. pg_restore: [archiver (db)] Error from TOC entry 1206; 1255 47395440 FUNCTION cobranca_adiciona_taxa(integer) postgres
  50. pg_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.  
  55. declare
  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;
  66. begin
  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';
  267. END;
  268.  
  269. $$;
  270.  
  271.  
  272.  
  273. pg_restore: creating FUNCTION "public.cobranca_adiciona_taxa(integer, integer)"
  274. pg_restore: [archiver (db)] Error from TOC entry 1207; 1255 47395441 FUNCTION cobranca_adiciona_taxa(integer, integer) postgres
  275. pg_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 $$
  279. declare
  280.   rPT record;
  281.   rC record;
  282.   rQ record;
  283.   rUltData date;
  284.   rVenc date;
  285. Begin
  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';
  338. end;
  339.  
  340. $$;
  341.  
  342.  
  343.  
  344. pg_restore: creating FUNCTION "public.competencia_atual()"
  345. pg_restore: [archiver (db)] Error from TOC entry 1215; 1255 49625524 FUNCTION competencia_atual() postgres
  346. pg_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.  
  355. begin
  356.  
  357. select competencia into lsCompetencia from competencia where data_ini<=now()::date and data_fim >= now()::date;
  358.  
  359.  
  360. return lsCompetencia;
  361.  
  362.  
  363. end;$$;
  364.  
  365.  
  366.  
  367. pg_restore: creating FUNCTION "public.concate(text, text)"
  368. pg_restore: [archiver (db)] Error from TOC entry 1208; 1255 47395442 FUNCTION concate(text, text) postgres
  369. pg_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 $_$
  373. SELECT COALESCE($2 ||', '|| $1,$1,$2,NULL)
  374. $_$;
  375.  
  376.  
  377.  
  378. pg_restore: creating FUNCTION "public.concatefinal(text)"
  379. pg_restore: [archiver (db)] Error from TOC entry 1209; 1255 47395443 FUNCTION concatefinal(text) postgres
  380. pg_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 $_$
  384. SELECT substr($1,1,length($1))
  385. $_$;
  386.  
  387.  
  388.  
  389. pg_restore: creating FUNCTION "public.depois_inserir_sessao()"
  390. pg_restore: [archiver (db)] Error from TOC entry 1210; 1255 47395444 FUNCTION depois_inserir_sessao() postgres
  391. pg_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 $$
  395. declare
  396.   rQ record;
  397. begin
  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;
  423. end; $$;
  424.  
  425.  
  426.  
  427. pg_restore: creating FUNCTION "public.em_dia(integer, character varying)"
  428. pg_restore: [archiver (db)] Error from TOC entry 1230; 1255 49629109 FUNCTION em_dia(integer, character varying) postgres
  429. pg_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.  
  440. begin
  441.  
  442.  
  443.  
  444. if pscompetencia is null then
  445.  
  446.   lscompetencia := competencia_atual();
  447.  
  448. else
  449.  
  450.   lscompetencia := pscompetencia;
  451.  
  452. end if;
  453.  
  454.  
  455. select count(seq_movimento_cobranca)
  456.  
  457.   into liqtde
  458.  
  459. from movimento_cobranca
  460.  
  461. where 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.  
  474. end;$$;
  475.  
  476.  
  477.  
  478. pg_restore: creating FUNCTION "public.estorna_movimento()"
  479. pg_restore: [archiver (db)] Error from TOC entry 1211; 1255 47395445 FUNCTION estorna_movimento() postgres
  480. pg_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 $$
  484. declare
  485.    rEventoProduto  record;
  486.    rIngressoNumero record;
  487.    vseq_ingresso   int4;
  488.    ieven_ref       Integer;
  489. begin
  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;
  496. end; $$;
  497.  
  498.  
  499.  
  500. pg_restore: creating FUNCTION "public.fatura_retorno()"
  501. pg_restore: [archiver (db)] Error from TOC entry 1212; 1255 47395446 FUNCTION fatura_retorno() postgres
  502. pg_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.  
  507. declare
  508.   rRetorno  record;
  509.  
  510.   licont integer;
  511. begin
  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;
  559. end;
  560. $$;
  561.  
  562.  
  563.  
  564. pg_restore: creating FUNCTION "public.fnc_abertura_jogo(date)"
  565. pg_restore: [archiver (db)] Error from TOC entry 1213; 1255 47395447 FUNCTION fnc_abertura_jogo(date) postgres
  566. pg_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 $$
  570. declare
  571.  rQ record;
  572.  i integer;
  573.  vE integer;
  574.  vCB varchar(200);
  575.  vCP integer;
  576.  vTem integer;
  577. Begin
  578.  
  579. -- acesso historico
  580. select seq_evento into vE from evento where dt_evento::date= (select min(data_acesso)::date from acesso);
  581. insert into acesso_historico ( --seq_acesso_historico, codigo, status, data_acesso, usuario_alteracao,
  582.       --seq_evento, seq_produto, seq_catraca, data_alteracao, tipo
  583. SELECT 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. );
  589. delete from acesso;
  590.  
  591. insert into liberacao_historico (
  592. SELECT 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. );
  597. delete from liberacao;
  598.  
  599. --for rQ in Select * from socio_tmp loop
  600. for 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.  
  606. select seq_liberacao into vTem from liberacao where codigo=rQ.codigo;
  607.  
  608. if vTem is null then
  609.  
  610. insert into liberacao (codigo, seq_produto, status, data_acesso, usuario_alteracao,
  611.        data_alteracao, tipo_acesso, mensagem)
  612. pg_restore: connecting to database for restore
  613. pg_restore: creating SCHEMA "public"
  614. pg_restore: creating COMMENT "SCHEMA public"
  615. pg_restore: creating FUNCTION "public.apaga_arvore(bigint, character varying, character varying)"
  616. pg_restore: [archiver (db)] Error while PROCESSING TOC:
  617. pg_restore: [archiver (db)] Error from TOC entry 1193; 1255 47395439 FUNCTION apaga_arvore(bigint, character varying, character varying) postgres
  618. pg_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 $_$
  622. declare
  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.  
  636. begin
  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;
  658. end;
  659. $_$;
  660.  
  661.  
  662.  
  663. pg_restore: creating FUNCTION "public.cobranca_adiciona_taxa(integer)"
  664. pg_restore: [archiver (db)] Error from TOC entry 1206; 1255 47395440 FUNCTION cobranca_adiciona_taxa(integer) postgres
  665. pg_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.  
  670. declare
  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;
  681. begin
  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';
  882. END;
  883.  
  884. $$;
  885.  
  886.  
  887.  
  888. pg_restore: creating FUNCTION "public.cobranca_adiciona_taxa(integer, integer)"
  889. pg_restore: [archiver (db)] Error from TOC entry 1207; 1255 47395441 FUNCTION cobranca_adiciona_taxa(integer, integer) postgres
  890. pg_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 $$
  894. declare
  895.   rPT record;
  896.   rC record;
  897.   rQ record;
  898.   rUltData date;
  899.   rVenc date;
  900. Begin
  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';
  953. end;
  954.  
  955. $$;
  956.  
  957.  
  958.  
  959. pg_restore: creating FUNCTION "public.competencia_atual()"
  960. pg_restore: [archiver (db)] Error from TOC entry 1215; 1255 49625524 FUNCTION competencia_atual() postgres
  961. pg_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.  
  970. begin
  971.  
  972. select competencia into lsCompetencia from competencia where data_ini<=now()::date and data_fim >= now()::date;
  973.  
  974.  
  975. return lsCompetencia;
  976.  
  977.  
  978. end;$$;
  979.  
  980.  
  981.  
  982. pg_restore: creating FUNCTION "public.concate(text, text)"
  983. pg_restore: [archiver (db)] Error from TOC entry 1208; 1255 47395442 FUNCTION concate(text, text) postgres
  984. pg_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 $_$
  988. SELECT COALESCE($2 ||', '|| $1,$1,$2,NULL)
  989. $_$;
  990.  
  991.  
  992.  
  993. pg_restore: creating FUNCTION "public.concatefinal(text)"
  994. pg_restore: [archiver (db)] Error from TOC entry 1209; 1255 47395443 FUNCTION concatefinal(text) postgres
  995. pg_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 $_$
  999. SELECT substr($1,1,length($1))
  1000. $_$;
  1001.  
  1002.  
  1003.  
  1004. pg_restore: creating FUNCTION "public.depois_inserir_sessao()"
  1005. pg_restore: [archiver (db)] Error from TOC entry 1210; 1255 47395444 FUNCTION depois_inserir_sessao() postgres
  1006. pg_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 $$
  1010. declare
  1011.   rQ record;
  1012. begin
  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;
  1038. end; $$;
  1039.  
  1040.  
  1041.  
  1042. pg_restore: creating FUNCTION "public.em_dia(integer, character varying)"
  1043. pg_restore: [archiver (db)] Error from TOC entry 1230; 1255 49629109 FUNCTION em_dia(integer, character varying) postgres
  1044. pg_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.  
  1055. begin
  1056.  
  1057.  
  1058.  
  1059. if pscompetencia is null then
  1060.  
  1061.   lscompetencia := competencia_atual();
  1062.  
  1063. else
  1064.  
  1065.   lscompetencia := pscompetencia;
  1066.  
  1067. end if;
  1068.  
  1069.  
  1070. select count(seq_movimento_cobranca)
  1071.  
  1072.   into liqtde
  1073.  
  1074. from movimento_cobranca
  1075.  
  1076. where 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.  
  1089. end;$$;
  1090.  
  1091.  
  1092.  
  1093. pg_restore: creating FUNCTION "public.estorna_movimento()"
  1094. pg_restore: [archiver (db)] Error from TOC entry 1211; 1255 47395445 FUNCTION estorna_movimento() postgres
  1095. pg_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 $$
  1099. declare
  1100.    rEventoProduto  record;
  1101.    rIngressoNumero record;
  1102.    vseq_ingresso   int4;
  1103.    ieven_ref       Integer;
  1104. begin
  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;
  1111. end; $$;
  1112.  
  1113.  
  1114.  
  1115. pg_restore: creating FUNCTION "public.fatura_retorno()"
  1116. pg_restore: [archiver (db)] Error from TOC entry 1212; 1255 47395446 FUNCTION fatura_retorno() postgres
  1117. pg_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.  
  1122. declare
  1123.   rRetorno  record;
  1124.  
  1125.   licont integer;
  1126. begin
  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;
  1174. end;
  1175. $$;
  1176.  
  1177.  
  1178.  
  1179. pg_restore: creating FUNCTION "public.fnc_abertura_jogo(date)"
  1180. pg_restore: [archiver (db)] Error from TOC entry 1213; 1255 47395447 FUNCTION fnc_abertura_jogo(date) postgres
  1181. pg_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 $$
  1185. declare
  1186.  rQ record;
  1187.  i integer;
  1188.  vE integer;
  1189.  vCB varchar(200);
  1190.  vCP integer;
  1191.  vTem integer;
  1192. Begin
  1193.  
  1194. -- acesso historico
  1195. select seq_evento into vE from evento where dt_evento::date= (select min(data_acesso)::date from acesso);
  1196. insert into acesso_historico ( --seq_acesso_historico, codigo, status, data_acesso, usuario_alteracao,
  1197.       --seq_evento, seq_produto, seq_catraca, data_alteracao, tipo
  1198. SELECT 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. );
  1204. delete from acesso;
  1205.  
  1206. insert into liberacao_historico (
  1207. SELECT 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. );
  1212. delete from liberacao;
  1213.  
  1214. --for rQ in Select * from socio_tmp loop
  1215. for 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.  
  1221. select seq_liberacao into vTem from liberacao where codigo=rQ.codigo;
  1222.  
  1223. if vTem is null then
  1224.  
  1225. insert 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.  
  1238. end if;
  1239.  
  1240. end loop;
  1241.  
  1242. -- INGRESSOS --
  1243.  
  1244. for rQ in
  1245. select  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)
  1254. where 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.  
  1260. select seq_liberacao into vTem from liberacao where codigo=rQ.codigo;
  1261.  
  1262. if vTem is null then
  1263.  
  1264. insert 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.        );
  1276. end if;
  1277. end loop;
  1278.  
  1279.  
  1280. delete from liberacao where codigo='0037000019042D';
  1281. insert 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.  
  1294. delete from liberacao where codigo='0037000025760D';
  1295. insert 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.  
  1309. delete from liberacao where codigo='0037000019671D';
  1310. insert 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.  
  1324. delete from liberacao where codigo='0037000036559D';
  1325. insert 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
  1341. UPDATE liberacao set codigo=substr(codigo,2,19)||'D' where codigo ilike('1%');
  1342.  
  1343. return 'ECnh soh AS TOPs';
  1344. end;
  1345. $$;
  1346.  
  1347.  
  1348.  
  1349. pg_restore: creating FUNCTION "public.fnc_carrega_even_ref()"
  1350. pg_restore: [archiver (db)] Error from TOC entry 1214; 1255 47395448 FUNCTION fnc_carrega_even_ref() postgres
  1351. pg_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 $$
  1355. begin
  1356.    new.even_ref := (select max(coalesce(even_ref,0)) + 1 from evento);
  1357.    return new;
  1358. end; $$;
  1359.  
  1360.  
  1361.  
  1362. pg_restore: creating FUNCTION "public.fnc_cobranca_titulo()"
  1363. pg_restore: [archiver (db)] Error from TOC entry 1216; 1255 47395449 FUNCTION fnc_cobranca_titulo() postgres
  1364. pg_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.  
  1369. declare
  1370.  
  1371.   rItensPgto record;
  1372.  
  1373.  
  1374.  
  1375. begin
  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.  
  1422. end;$$;
  1423.  
  1424.  
  1425.  
  1426. pg_restore: creating FUNCTION "public.fnc_gera_boleto_carne(integer, integer)"
  1427. pg_restore: [archiver (db)] Error from TOC entry 1217; 1255 47395450 FUNCTION fnc_gera_boleto_carne(integer, integer) postgres
  1428. pg_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.  
  1433. declare
  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.  
  1444. BEGIN
  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.  
  1539. END;
  1540. $_$;
  1541.  
  1542.  
  1543.  
  1544. pg_restore: creating FUNCTION "public.fnc_insere_socios_tmp()"
  1545. pg_restore: [archiver (db)] Error from TOC entry 1218; 1255 47395451 FUNCTION fnc_insere_socios_tmp() postgres
  1546. pg_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 $$
  1550. declare
  1551.  rQ record;
  1552.  i integer;
  1553.  vE integer;
  1554.  vCB varchar(200);
  1555.  vCP integer;
  1556.  vTem integer;
  1557. Begin
  1558.  
  1559. for rQ in Select * from socio_tmp loop
  1560.  
  1561. select seq_liberacao into vTem from liberacao where codigo=rQ.codigo;
  1562.  
  1563. if vTem is null then
  1564.  
  1565. insert 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.  
  1578. end if;
  1579.  
  1580. end loop;
  1581.  
  1582. return 'Elias deu o cu pro Zico';
  1583. end;
  1584. $$;
  1585.  
  1586.  
  1587.  
  1588. pg_restore: creating FUNCTION "public.fnc_numero_ingresso(integer)"
  1589. pg_restore: [archiver (db)] Error from TOC entry 1219; 1255 47395452 FUNCTION fnc_numero_ingresso(integer) postgres
  1590. pg_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.  
  1595. declare
  1596.  
  1597.    base alias for $1;
  1598.  
  1599.    vaux int8;
  1600. Begin
  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'));
  1605. end;
  1606.  
  1607.  
  1608. $_$;
  1609.  
  1610.  
  1611.  
  1612. pg_restore: creating FUNCTION "public.fnc_numero_valido(bigint)"
  1613. pg_restore: [archiver (db)] Error from TOC entry 1220; 1255 47395453 FUNCTION fnc_numero_valido(bigint) postgres
  1614. pg_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.  
  1619. declare
  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.  
  1641. Begin
  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.  
  1700. end;
  1701.  
  1702.  
  1703. $_$;
  1704.  
  1705.  
  1706.  
  1707. pg_restore: creating FUNCTION "public.gera_ingressos_do_pagamento()"
  1708. pg_restore: [archiver (db)] Error from TOC entry 1221; 1255 47395454 FUNCTION gera_ingressos_do_pagamento() postgres
  1709. pg_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 $$
  1713. declare
  1714.    rEventoProduto  record;
  1715.    rIngressoNumero record;
  1716.    vseq_ingresso   int4;
  1717.    ieven_ref       Integer;
  1718.    vcaixa          integer;
  1719. begin
  1720. select caixa into vcaixa from movimento where seq_movimento=new.seq_movimento;
  1721. if 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;
  1759. end if;
  1760.    return new;
  1761. end; $$;
  1762.  
  1763.  
  1764.  
  1765. pg_restore: creating FUNCTION "public.gera_script_importacao(text)"
  1766. pg_restore: [archiver (db)] Error from TOC entry 1222; 1255 47395455 FUNCTION gera_script_importacao(text) postgres
  1767. pg_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.  
  1772. declare
  1773.  
  1774.  vSQL text;
  1775.  
  1776.  rT record;
  1777.  
  1778.  rC record;
  1779.  
  1780.  vCampos text;
  1781.  
  1782.  vValores text;
  1783.  
  1784. BEGIN
  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.  
  1815. select substr('1234567',1, length('1234567')-1)
  1816.  
  1817.  
  1818. SELECT *
  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.  
  1858. vCampos:= substr(vCampos,1, length(vCampos)-1);
  1859.  
  1860. vValores:= substr(vValores,1, length(vValores)-1);
  1861.  
  1862.  
  1863. vSQL:='select ''insert into migra.'||ptabela||' ('||vCampos||') values ('||vValores||');'' as isso from '||ptabela;
  1864.  
  1865.  
  1866.  
  1867. return vSQL;
  1868.  
  1869. END;
  1870.  
  1871. $$;
  1872.  
  1873.  
  1874.  
  1875. pg_restore: creating FUNCTION "public.insere_arvore(bigint, character varying, character varying, character varying)"
  1876. pg_restore: [archiver (db)] Error from TOC entry 1223; 1255 47395456 FUNCTION insere_arvore(bigint, character varying, character varying, character varying) postgres
  1877. pg_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 $_$
  1881. declare
  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.  
  1899. begin
  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;
  1962. end;
  1963. $_$;
  1964.  
  1965.  
  1966.  
  1967. pg_restore: creating FUNCTION "public.insere_pagamentos_carga_inicial()"
  1968. pg_restore: [archiver (db)] Error from TOC entry 1224; 1255 47395457 FUNCTION insere_pagamentos_carga_inicial() postgres
  1969. pg_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.  
  1974. declare
  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;
  1983. Begin
  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' ;
  2053. end;
  2054.  
  2055.  
  2056. $$;
  2057.  
  2058.  
  2059.  
  2060. pg_restore: creating FUNCTION "public.popula_ingresso_numero(integer, integer)"
  2061. pg_restore: [archiver (db)] Error from TOC entry 1225; 1255 47395458 FUNCTION popula_ingresso_numero(integer, integer) postgres
  2062. pg_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.  
  2067. declare
  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.  
  2080. Begin
  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.  
  2141. return 'Elvis pegou o Baiano';
  2142.  
  2143. end;
  2144.  
  2145.  
  2146. $$;
  2147.  
  2148.  
  2149.  
  2150. pg_restore: creating FUNCTION "public.proxima_matricula()"
  2151. pg_restore: [archiver (db)] Error from TOC entry 1226; 1255 47395459 FUNCTION proxima_matricula() postgres
  2152. pg_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.  
  2157. declare
  2158.  
  2159.   vessa integer;
  2160.  
  2161. Begin
  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.  
  2170. end;
  2171.  
  2172.  
  2173. $$;
  2174.  
  2175.  
  2176.  
  2177. pg_restore: creating FUNCTION "public.proxima_matricula(integer)"
  2178. pg_restore: [archiver (db)] Error from TOC entry 1227; 1255 47395460 FUNCTION proxima_matricula(integer) postgres
  2179. pg_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.  
  2184. declare
  2185.  
  2186.   vessa integer;
  2187.   vquantas integer;
  2188.   vnova integer;
  2189.   vposmat integer;
  2190.  
  2191. Begin
  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.  
  2217. end;
  2218.  
  2219.  
  2220. $$;
  2221.  
  2222.  
  2223.  
  2224. pg_restore: creating FUNCTION "public.remessa_boleto_arquivo(integer)"
  2225. pg_restore: [archiver (db)] Error from TOC entry 1228; 1255 47395461 FUNCTION remessa_boleto_arquivo(integer) postgres
  2226. pg_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 $_$
  2230. declare
  2231.   R text;
  2232.   rRemessa record;
  2233.   rI record;
  2234.   i integer;
  2235. begin
  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. /*
  2247. alter table remessa_item add seq_movimento_cobranca integer;
  2248.  
  2249. ALTER TABLE pessoa
  2250.   ADD COLUMN cnpj character varying(50);
  2251. ALTER TABLE pessoa
  2252.   ADD COLUMN juridica boolean DEFAULT false;
  2253.  
  2254.  
  2255. */
  2256.  
  2257. for 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;
  2340. return R;
  2341. end;$_$;
  2342.  
  2343.  
  2344.  
  2345. pg_restore: creating FUNCTION "public.remessa_criacao(integer)"
  2346. pg_restore: [archiver (db)] Error from TOC entry 1229; 1255 47395463 FUNCTION remessa_criacao(integer) postgres
  2347. pg_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 $$
  2351. declare
  2352.   rQ record;
  2353.   rR record;
  2354.   vSeqTitulo integer;
  2355.   vSeqTituloItem integer;
  2356.   vSeqPessoaAnt integer;
  2357.   vTotal numeric(30,5);
  2358. Begin
  2359.  
  2360. select *
  2361.   into rQ
  2362.   from remessa
  2363.  where seq_remessa=pseq_remessa;
  2364.  
  2365. delete from cobranca_titulo where seq_cobranca_titulo in ( select seq_cobranca_titulo from cobranca_titulo  where seq_remessa=pseq_remessa);
  2366. delete from cobranca_titulo where seq_remessa=pseq_remessa;
  2367.  
  2368.  
  2369. /*
  2370.  
  2371. alter table cobranca_titulo add seq_pessoa integer;
  2372. alter table cobranca_titulo add  seq_remessa integer;
  2373.  
  2374. ALTER TABLE cobranca_titulo
  2375.   DROP CONSTRAINT cobranca_cobranca_titulo_fk;
  2376. ALTER TABLE cobranca_titulo
  2377.   DROP CONSTRAINT cobranca_retorno_cobranca_titulo_fk;
  2378. ALTER 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;
  2382. ALTER 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;
  2386. ALTER TABLE cobranca_titulo  DROP COLUMN seq_cobranca;
  2387.  
  2388. ALTER 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.  
  2393. ALTER TABLE cobranca_titulo
  2394.    ALTER COLUMN seq_cobranca_retorno DROP NOT NULL;
  2395.  
  2396. */
  2397.  
  2398. vTotal:=0;
  2399. vSeqPessoaAnt:=-9;
  2400. for 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';
  2454. end;
  2455.  
  2456. $$;
  2457.  
  2458.  
  2459.  
  2460. pg_restore: creating AGGREGATE "public.concatenex(text)"
  2461. pg_restore: [archiver (db)] Error from TOC entry 3727; 1255 47395464 AGGREGATE concatenex(text) postgres
  2462. pg_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.  
  2471. pg_restore: creating TABLE "public.acesso"
  2472. pg_restore: [archiver (db)] Error from TOC entry 1041; 1259 47400346 TABLE acesso postgres
  2473. pg_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.  
  2487. pg_restore: creating TABLE "public.acesso_historico"
  2488. pg_restore: [archiver (db)] Error from TOC entry 1042; 1259 47400350 TABLE acesso_historico postgres
  2489. pg_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.  
  2506. pg_restore: creating SEQUENCE "public.acesso_historico_seq_acesso_historico_seq"
  2507. pg_restore: [archiver (db)] Error from TOC entry 1043; 1259 47400357 SEQUENCE acesso_historico_seq_acesso_historico_seq postgres
  2508. pg_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.  
  2518. pg_restore: creating SEQUENCE OWNED BY "public.acesso_historico_seq_acesso_historico_seq"
  2519. pg_restore: creating SEQUENCE "public.acesso_seq_acesso_seq"
  2520. pg_restore: [archiver (db)] Error from TOC entry 1044; 1259 47400359 SEQUENCE acesso_seq_acesso_seq postgres
  2521. pg_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.  
  2531. pg_restore: creating SEQUENCE OWNED BY "public.acesso_seq_acesso_seq"
  2532. pg_restore: creating TABLE "public.assento"
  2533. pg_restore: [archiver (db)] Error from TOC entry 1045; 1259 47400361 TABLE assento postgres
  2534. pg_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.  
  2548. pg_restore: creating SEQUENCE "public.assento_seq_assento_seq"
  2549. pg_restore: [archiver (db)] Error from TOC entry 1046; 1259 47400366 SEQUENCE assento_seq_assento_seq postgres
  2550. pg_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.  
  2560. pg_restore: creating SEQUENCE OWNED BY "public.assento_seq_assento_seq"
  2561. pg_restore: creating TABLE "public.baixa"
  2562. pg_restore: [archiver (db)] Error from TOC entry 1047; 1259 47400368 TABLE baixa postgres
  2563. pg_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.  
  2573. pg_restore: creating SEQUENCE "public.baixa_seq_baixa_seq"
  2574. pg_restore: [archiver (db)] Error from TOC entry 1048; 1259 47400374 SEQUENCE baixa_seq_baixa_seq postgres
  2575. pg_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.  
  2585. pg_restore: creating SEQUENCE OWNED BY "public.baixa_seq_baixa_seq"
  2586. pg_restore: creating TABLE "public.bilheteria"
  2587. pg_restore: [archiver (db)] Error from TOC entry 1049; 1259 47400376 TABLE bilheteria postgres
  2588. pg_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.  
  2600. pg_restore: creating SEQUENCE "public.bilheteria_seq_bilheteria_seq"
  2601. pg_restore: [archiver (db)] Error from TOC entry 1050; 1259 47400383 SEQUENCE bilheteria_seq_bilheteria_seq postgres
  2602. pg_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.  
  2612. pg_restore: creating SEQUENCE OWNED BY "public.bilheteria_seq_bilheteria_seq"
  2613. pg_restore: creating TABLE "public.boleto_macro"
  2614. pg_restore: [archiver (db)] Error from TOC entry 1051; 1259 47400385 TABLE boleto_macro postgres
  2615. pg_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.  
  2625. pg_restore: creating SEQUENCE "public.boleto_macro_seq_boleto_macro_seq"
  2626. pg_restore: [archiver (db)] Error from TOC entry 1052; 1259 47400388 SEQUENCE boleto_macro_seq_boleto_macro_seq postgres
  2627. pg_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.  
  2637. pg_restore: creating SEQUENCE OWNED BY "public.boleto_macro_seq_boleto_macro_seq"
  2638. pg_restore: creating TABLE "public.cadeira"
  2639. pg_restore: [archiver (db)] Error from TOC entry 1053; 1259 47400390 TABLE cadeira postgres
  2640. pg_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.  
  2655. pg_restore: creating SEQUENCE "public.cadeira_seq_cadeira_seq_1"
  2656. pg_restore: [archiver (db)] Error from TOC entry 1054; 1259 47400397 SEQUENCE cadeira_seq_cadeira_seq_1 postgres
  2657. pg_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.  
  2667. pg_restore: creating SEQUENCE OWNED BY "public.cadeira_seq_cadeira_seq_1"
  2668. pg_restore: creating TABLE "public.camarote"
  2669. pg_restore: [archiver (db)] Error from TOC entry 1055; 1259 47400399 TABLE camarote postgres
  2670. pg_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.  
  2681. pg_restore: creating SEQUENCE "public.camarote_seq_camarote_seq_1"
  2682. pg_restore: [archiver (db)] Error from TOC entry 1056; 1259 47400403 SEQUENCE camarote_seq_camarote_seq_1 postgres
  2683. pg_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.  
  2693. pg_restore: creating SEQUENCE OWNED BY "public.camarote_seq_camarote_seq_1"
  2694. pg_restore: creating SEQUENCE "public.seq_cartao2"
  2695. pg_restore: [archiver (db)] Error from TOC entry 1057; 1259 47400405 SEQUENCE seq_cartao2 postgres
  2696. pg_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.  
  2706. pg_restore: creating TABLE "public.cartao"
  2707. pg_restore: [archiver (db)] Error from TOC entry 1058; 1259 47400407 TABLE cartao postgres
  2708. pg_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.  
  2722. pg_restore: creating TABLE "public.catraca"
  2723. pg_restore: [archiver (db)] Error from TOC entry 1059; 1259 47400412 TABLE catraca postgres
  2724. pg_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.  
  2737. pg_restore: creating SEQUENCE "public.catraca_seq_catraca_seq"
  2738. pg_restore: [archiver (db)] Error from TOC entry 1060; 1259 47400416 SEQUENCE catraca_seq_catraca_seq postgres
  2739. pg_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.  
  2749. pg_restore: creating SEQUENCE OWNED BY "public.catraca_seq_catraca_seq"
  2750. pg_restore: creating TABLE "public.ci_sessions"
  2751. pg_restore: [archiver (db)] Error from TOC entry 1061; 1259 47400418 TABLE ci_sessions postgres
  2752. pg_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.  
  2763. pg_restore: creating TABLE "public.clube"
  2764. pg_restore: [archiver (db)] Error from TOC entry 1062; 1259 47400427 TABLE clube postgres
  2765. pg_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.  
  2776. pg_restore: creating SEQUENCE "public.clube_seq_clube_seq"
  2777. pg_restore: [archiver (db)] Error from TOC entry 1063; 1259 47400432 SEQUENCE clube_seq_clube_seq postgres
  2778. pg_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.  
  2788. pg_restore: creating SEQUENCE OWNED BY "public.clube_seq_clube_seq"
  2789. pg_restore: creating TABLE "public.cobranca"
  2790. pg_restore: [archiver (db)] Error from TOC entry 1064; 1259 47400434 TABLE cobranca postgres
  2791. pg_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.  
  2806. pg_restore: creating TABLE "public.cobranca_retorno"
  2807. pg_restore: [archiver (db)] Error from TOC entry 1065; 1259 47400441 TABLE cobranca_retorno postgres
  2808. pg_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.  
  2837. pg_restore: creating SEQUENCE "public.cobranca_retorno_seq_cobranca_retorno_seq_1"
  2838. pg_restore: [archiver (db)] Error from TOC entry 1066; 1259 47400446 SEQUENCE cobranca_retorno_seq_cobranca_retorno_seq_1 postgres
  2839. pg_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.  
  2849. pg_restore: creating SEQUENCE OWNED BY "public.cobranca_retorno_seq_cobranca_retorno_seq_1"
  2850. pg_restore: creating SEQUENCE "public.cobranca_seq_cobranca_seq"
  2851. pg_restore: [archiver (db)] Error from TOC entry 1067; 1259 47400448 SEQUENCE cobranca_seq_cobranca_seq postgres
  2852. pg_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.  
  2862. pg_restore: creating SEQUENCE OWNED BY "public.cobranca_seq_cobranca_seq"
  2863. pg_restore: creating TABLE "public.cobranca_titulo"
  2864. pg_restore: [archiver (db)] Error from TOC entry 1068; 1259 47400450 TABLE cobranca_titulo postgres
  2865. pg_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.  
  2887. pg_restore: creating TABLE "public.cobranca_titulo_item"
  2888. pg_restore: [archiver (db)] Error from TOC entry 1069; 1259 47400457 TABLE cobranca_titulo_item postgres
  2889. pg_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.  
  2901. pg_restore: creating SEQUENCE "public.cobranca_titulo_item_seq_cobranca_titulo_item_seq_1"
  2902. pg_restore: [archiver (db)] Error from TOC entry 1070; 1259 47400461 SEQUENCE cobranca_titulo_item_seq_cobranca_titulo_item_seq_1 postgres
  2903. pg_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.  
  2913. pg_restore: creating SEQUENCE OWNED BY "public.cobranca_titulo_item_seq_cobranca_titulo_item_seq_1"
  2914. pg_restore: creating SEQUENCE "public.cobranca_titulo_seq_cobranca_titulo_seq"
  2915. pg_restore: [archiver (db)] Error from TOC entry 1071; 1259 47400463 SEQUENCE cobranca_titulo_seq_cobranca_titulo_seq postgres
  2916. pg_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.  
  2926. pg_restore: creating SEQUENCE OWNED BY "public.cobranca_titulo_seq_cobranca_titulo_seq"
  2927. pg_restore: creating TABLE "public.competencia"
  2928. pg_restore: [archiver (db)] Error from TOC entry 1072; 1259 47400465 TABLE competencia postgres
  2929. pg_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.  
  2941. pg_restore: creating TABLE "public.competicao"
  2942. pg_restore: [archiver (db)] Error from TOC entry 1073; 1259 47400472 TABLE competicao postgres
  2943. pg_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.  
  2954. pg_restore: creating TABLE "public.competicao_edicao"
  2955. pg_restore: [archiver (db)] Error from TOC entry 1074; 1259 47400480 TABLE competicao_edicao postgres
  2956. pg_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.  
  2970. pg_restore: creating SEQUENCE "public.competicao_edicao_seq_competicao_edicao_seq"
  2971. pg_restore: [archiver (db)] Error from TOC entry 1075; 1259 47400488 SEQUENCE competicao_edicao_seq_competicao_edicao_seq postgres
  2972. pg_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.  
  2982. pg_restore: creating SEQUENCE OWNED BY "public.competicao_edicao_seq_competicao_edicao_seq"
  2983. pg_restore: creating SEQUENCE "public.competicao_seq_competicao_seq"
  2984. pg_restore: [archiver (db)] Error from TOC entry 1076; 1259 47400490 SEQUENCE competicao_seq_competicao_seq postgres
  2985. pg_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.  
  2995. pg_restore: creating SEQUENCE OWNED BY "public.competicao_seq_competicao_seq"
  2996. pg_restore: creating TABLE "public.conta"
  2997. pg_restore: [archiver (db)] Error from TOC entry 1077; 1259 47400492 TABLE conta postgres
  2998. pg_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.  
  3016. pg_restore: creating TABLE "public.dbf_cartoes_ecnh"
  3017. pg_restore: [archiver (db)] Error from TOC entry 1078; 1259 47400500 TABLE dbf_cartoes_ecnh postgres
  3018. pg_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.  
  3035. pg_restore: creating TABLE "public.dbf_pessoas_ecnh"
  3036. pg_restore: [archiver (db)] Error from TOC entry 1079; 1259 47400506 TABLE dbf_pessoas_ecnh postgres
  3037. pg_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),
  3042. pg_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.  
  3056. pg_restore: creating TABLE "public.acesso_historico"
  3057. pg_restore: [archiver (db)] Error from TOC entry 1042; 1259 47400350 TABLE acesso_historico postgres
  3058. pg_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.  
  3075. pg_restore: creating SEQUENCE "public.acesso_historico_seq_acesso_historico_seq"
  3076. pg_restore: [archiver (db)] Error from TOC entry 1043; 1259 47400357 SEQUENCE acesso_historico_seq_acesso_historico_seq postgres
  3077. pg_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.  
  3087. pg_restore: creating SEQUENCE OWNED BY "public.acesso_historico_seq_acesso_historico_seq"
  3088. pg_restore: creating SEQUENCE "public.acesso_seq_acesso_seq"
  3089. pg_restore: [archiver (db)] Error from TOC entry 1044; 1259 47400359 SEQUENCE acesso_seq_acesso_seq postgres
  3090. pg_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.  
  3100. pg_restore: creating SEQUENCE OWNED BY "public.acesso_seq_acesso_seq"
  3101. pg_restore: creating TABLE "public.assento"
  3102. pg_restore: [archiver (db)] Error from TOC entry 1045; 1259 47400361 TABLE assento postgres
  3103. pg_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.  
  3117. pg_restore: creating SEQUENCE "public.assento_seq_assento_seq"
  3118. pg_restore: [archiver (db)] Error from TOC entry 1046; 1259 47400366 SEQUENCE assento_seq_assento_seq postgres
  3119. pg_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.  
  3129. pg_restore: creating SEQUENCE OWNED BY "public.assento_seq_assento_seq"
  3130. pg_restore: creating TABLE "public.baixa"
  3131. pg_restore: [archiver (db)] Error from TOC entry 1047; 1259 47400368 TABLE baixa postgres
  3132. pg_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.  
  3142. pg_restore: creating SEQUENCE "public.baixa_seq_baixa_seq"
  3143. pg_restore: [archiver (db)] Error from TOC entry 1048; 1259 47400374 SEQUENCE baixa_seq_baixa_seq postgres
  3144. pg_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.  
  3154. pg_restore: creating SEQUENCE OWNED BY "public.baixa_seq_baixa_seq"
  3155. pg_restore: creating TABLE "public.bilheteria"
  3156. pg_restore: [archiver (db)] Error from TOC entry 1049; 1259 47400376 TABLE bilheteria postgres
  3157. pg_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.  
  3169. pg_restore: creating SEQUENCE "public.bilheteria_seq_bilheteria_seq"
  3170. pg_restore: [archiver (db)] Error from TOC entry 1050; 1259 47400383 SEQUENCE bilheteria_seq_bilheteria_seq postgres
  3171. pg_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.  
  3181. pg_restore: creating SEQUENCE OWNED BY "public.bilheteria_seq_bilheteria_seq"
  3182. pg_restore: creating TABLE "public.boleto_macro"
  3183. pg_restore: [archiver (db)] Error from TOC entry 1051; 1259 47400385 TABLE boleto_macro postgres
  3184. pg_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.  
  3194. pg_restore: creating SEQUENCE "public.boleto_macro_seq_boleto_macro_seq"
  3195. pg_restore: [archiver (db)] Error from TOC entry 1052; 1259 47400388 SEQUENCE boleto_macro_seq_boleto_macro_seq postgres
  3196. pg_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.  
  3206. pg_restore: creating SEQUENCE OWNED BY "public.boleto_macro_seq_boleto_macro_seq"
  3207. pg_restore: creating TABLE "public.cadeira"
  3208. pg_restore: [archiver (db)] Error from TOC entry 1053; 1259 47400390 TABLE cadeira postgres
  3209. pg_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.  
  3224. pg_restore: creating SEQUENCE "public.cadeira_seq_cadeira_seq_1"
  3225. pg_restore: [archiver (db)] Error from TOC entry 1054; 1259 47400397 SEQUENCE cadeira_seq_cadeira_seq_1 postgres
  3226. pg_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.  
  3236. pg_restore: creating SEQUENCE OWNED BY "public.cadeira_seq_cadeira_seq_1"
  3237. pg_restore: creating TABLE "public.camarote"
  3238. pg_restore: [archiver (db)] Error from TOC entry 1055; 1259 47400399 TABLE camarote postgres
  3239. pg_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.  
  3250. pg_restore: creating SEQUENCE "public.camarote_seq_camarote_seq_1"
  3251. pg_restore: [archiver (db)] Error from TOC entry 1056; 1259 47400403 SEQUENCE camarote_seq_camarote_seq_1 postgres
  3252. pg_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.  
  3262. pg_restore: creating SEQUENCE OWNED BY "public.camarote_seq_camarote_seq_1"
  3263. pg_restore: creating SEQUENCE "public.seq_cartao2"
  3264. pg_restore: [archiver (db)] Error from TOC entry 1057; 1259 47400405 SEQUENCE seq_cartao2 postgres
  3265. pg_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.  
  3275. pg_restore: creating TABLE "public.cartao"
  3276. pg_restore: [archiver (db)] Error from TOC entry 1058; 1259 47400407 TABLE cartao postgres
  3277. pg_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.  
  3291. pg_restore: creating TABLE "public.catraca"
  3292. pg_restore: [archiver (db)] Error from TOC entry 1059; 1259 47400412 TABLE catraca postgres
  3293. pg_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.  
  3306. pg_restore: creating SEQUENCE "public.catraca_seq_catraca_seq"
  3307. pg_restore: [archiver (db)] Error from TOC entry 1060; 1259 47400416 SEQUENCE catraca_seq_catraca_seq postgres
  3308. pg_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.  
  3318. pg_restore: creating SEQUENCE OWNED BY "public.catraca_seq_catraca_seq"
  3319. pg_restore: creating TABLE "public.ci_sessions"
  3320. pg_restore: [archiver (db)] Error from TOC entry 1061; 1259 47400418 TABLE ci_sessions postgres
  3321. pg_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.  
  3332. pg_restore: creating TABLE "public.clube"
  3333. pg_restore: [archiver (db)] Error from TOC entry 1062; 1259 47400427 TABLE clube postgres
  3334. pg_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.  
  3345. pg_restore: creating SEQUENCE "public.clube_seq_clube_seq"
  3346. pg_restore: [archiver (db)] Error from TOC entry 1063; 1259 47400432 SEQUENCE clube_seq_clube_seq postgres
  3347. pg_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.  
  3357. pg_restore: creating SEQUENCE OWNED BY "public.clube_seq_clube_seq"
  3358. pg_restore: creating TABLE "public.cobranca"
  3359. pg_restore: [archiver (db)] Error from TOC entry 1064; 1259 47400434 TABLE cobranca postgres
  3360. pg_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.  
  3375. pg_restore: creating TABLE "public.cobranca_retorno"
  3376. pg_restore: [archiver (db)] Error from TOC entry 1065; 1259 47400441 TABLE cobranca_retorno postgres
  3377. pg_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.  
  3406. pg_restore: creating SEQUENCE "public.cobranca_retorno_seq_cobranca_retorno_seq_1"
  3407. pg_restore: [archiver (db)] Error from TOC entry 1066; 1259 47400446 SEQUENCE cobranca_retorno_seq_cobranca_retorno_seq_1 postgres
  3408. pg_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.  
  3418. pg_restore: creating SEQUENCE OWNED BY "public.cobranca_retorno_seq_cobranca_retorno_seq_1"
  3419. pg_restore: creating SEQUENCE "public.cobranca_seq_cobranca_seq"
  3420. pg_restore: [archiver (db)] Error from TOC entry 1067; 1259 47400448 SEQUENCE cobranca_seq_cobranca_seq postgres
  3421. pg_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.  
  3431. pg_restore: creating SEQUENCE OWNED BY "public.cobranca_seq_cobranca_seq"
  3432. pg_restore: creating TABLE "public.cobranca_titulo"
  3433. pg_restore: [archiver (db)] Error from TOC entry 1068; 1259 47400450 TABLE cobranca_titulo postgres
  3434. pg_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.  
  3456. pg_restore: creating TABLE "public.cobranca_titulo_item"
  3457. pg_restore: [archiver (db)] Error from TOC entry 1069; 1259 47400457 TABLE cobranca_titulo_item postgres
  3458. pg_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.  
  3470. pg_restore: creating SEQUENCE "public.cobranca_titulo_item_seq_cobranca_titulo_item_seq_1"
  3471. pg_restore: [archiver (db)] Error from TOC entry 1070; 1259 47400461 SEQUENCE cobranca_titulo_item_seq_cobranca_titulo_item_seq_1 postgres
  3472. pg_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.  
  3482. pg_restore: creating SEQUENCE OWNED BY "public.cobranca_titulo_item_seq_cobranca_titulo_item_seq_1"
  3483. pg_restore: creating SEQUENCE "public.cobranca_titulo_seq_cobranca_titulo_seq"
  3484. pg_restore: [archiver (db)] Error from TOC entry 1071; 1259 47400463 SEQUENCE cobranca_titulo_seq_cobranca_titulo_seq postgres
  3485. pg_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.  
  3495. pg_restore: creating SEQUENCE OWNED BY "public.cobranca_titulo_seq_cobranca_titulo_seq"
  3496. pg_restore: creating TABLE "public.competencia"
  3497. pg_restore: [archiver (db)] Error from TOC entry 1072; 1259 47400465 TABLE competencia postgres
  3498. pg_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.  
  3510. pg_restore: creating TABLE "public.competicao"
  3511. pg_restore: [archiver (db)] Error from TOC entry 1073; 1259 47400472 TABLE competicao postgres
  3512. pg_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.  
  3523. pg_restore: creating TABLE "public.competicao_edicao"
  3524. pg_restore: [archiver (db)] Error from TOC entry 1074; 1259 47400480 TABLE competicao_edicao postgres
  3525. pg_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.  
  3539. pg_restore: creating SEQUENCE "public.competicao_edicao_seq_competicao_edicao_seq"
  3540. pg_restore: [archiver (db)] Error from TOC entry 1075; 1259 47400488 SEQUENCE competicao_edicao_seq_competicao_edicao_seq postgres
  3541. pg_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.  
  3551. pg_restore: creating SEQUENCE OWNED BY "public.competicao_edicao_seq_competicao_edicao_seq"
  3552. pg_restore: creating SEQUENCE "public.competicao_seq_competicao_seq"
  3553. pg_restore: [archiver (db)] Error from TOC entry 1076; 1259 47400490 SEQUENCE competicao_seq_competicao_seq postgres
  3554. pg_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.  
  3564. pg_restore: creating SEQUENCE OWNED BY "public.competicao_seq_competicao_seq"
  3565. pg_restore: creating TABLE "public.conta"
  3566. pg_restore: [archiver (db)] Error from TOC entry 1077; 1259 47400492 TABLE conta postgres
  3567. pg_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.  
  3585. pg_restore: creating TABLE "public.dbf_cartoes_ecnh"
  3586. pg_restore: [archiver (db)] Error from TOC entry 1078; 1259 47400500 TABLE dbf_cartoes_ecnh postgres
  3587. pg_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.  
  3604. pg_restore: creating TABLE "public.dbf_pessoas_ecnh"
  3605. pg_restore: [archiver (db)] Error from TOC entry 1079; 1259 47400506 TABLE dbf_pessoas_ecnh postgres
  3606. pg_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.  
  3647. pg_restore: creating TABLE "public.dne"
  3648. pg_restore: [archiver (db)] Error from TOC entry 1080; 1259 47400512 TABLE dne postgres
  3649. pg_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.  
  3663. pg_restore: creating SEQUENCE "public.dne_seq_dne_seq"
  3664. pg_restore: [archiver (db)] Error from TOC entry 1081; 1259 47400515 SEQUENCE dne_seq_dne_seq postgres
  3665. pg_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.  
  3675. pg_restore: creating SEQUENCE OWNED BY "public.dne_seq_dne_seq"
  3676. pg_restore: creating TABLE "public.escolaridade"
  3677. pg_restore: [archiver (db)] Error from TOC entry 1082; 1259 47400517 TABLE escolaridade postgres
  3678. pg_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.  
  3686. pg_restore: creating SEQUENCE "public.escolaridade_seq_escolaridade_seq"
  3687. pg_restore: [archiver (db)] Error from TOC entry 1083; 1259 47400520 SEQUENCE escolaridade_seq_escolaridade_seq postgres
  3688. pg_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.  
  3698. pg_restore: creating SEQUENCE OWNED BY "public.escolaridade_seq_escolaridade_seq"
  3699. pg_restore: creating TABLE "public.estado"
  3700. pg_restore: [archiver (db)] Error from TOC entry 1084; 1259 47400522 TABLE estado postgres
  3701. pg_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.  
  3710. pg_restore: creating SEQUENCE "public.estado_seq_estado_seq"
  3711. pg_restore: [archiver (db)] Error from TOC entry 1085; 1259 47400525 SEQUENCE estado_seq_estado_seq postgres
  3712. pg_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.  
  3722. pg_restore: creating SEQUENCE OWNED BY "public.estado_seq_estado_seq"
  3723. pg_restore: creating TABLE "public.evento"
  3724. pg_restore: [archiver (db)] Error from TOC entry 1086; 1259 47400527 TABLE evento postgres
  3725. pg_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.  
  3752. pg_restore: creating TABLE "public.evento_local"
  3753. pg_restore: [archiver (db)] Error from TOC entry 1087; 1259 47400532 TABLE evento_local postgres
  3754. pg_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.  
  3767. pg_restore: creating SEQUENCE "public.evento_local_seq_evento_local_seq"
  3768. pg_restore: [archiver (db)] Error from TOC entry 1088; 1259 47400539 SEQUENCE evento_local_seq_evento_local_seq postgres
  3769. pg_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.  
  3779. pg_restore: creating SEQUENCE OWNED BY "public.evento_local_seq_evento_local_seq"
  3780. pg_restore: creating TABLE "public.evento_objetivo"
  3781. pg_restore: [archiver (db)] Error from TOC entry 1089; 1259 47400541 TABLE evento_objetivo postgres
  3782. pg_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.  
  3792. pg_restore: creating SEQUENCE "public.evento_objetivo_seq_evento_objetivo_seq"
  3793. pg_restore: [archiver (db)] Error from TOC entry 1090; 1259 47400548 SEQUENCE evento_objetivo_seq_evento_objetivo_seq postgres
  3794. pg_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.  
  3804. pg_restore: creating SEQUENCE OWNED BY "public.evento_objetivo_seq_evento_objetivo_seq"
  3805. pg_restore: creating TABLE "public.evento_produto"
  3806. pg_restore: [archiver (db)] Error from TOC entry 1091; 1259 47400550 TABLE evento_produto postgres
  3807. pg_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.  
  3821. pg_restore: creating SEQUENCE "public.evento_produto_seq_evento_produto_seq"
  3822. pg_restore: [archiver (db)] Error from TOC entry 1092; 1259 47400557 SEQUENCE evento_produto_seq_evento_produto_seq postgres
  3823. pg_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.  
  3833. pg_restore: creating SEQUENCE OWNED BY "public.evento_produto_seq_evento_produto_seq"
  3834. pg_restore: creating SEQUENCE "public.evento_seq_evento_seq"
  3835. pg_restore: [archiver (db)] Error from TOC entry 1093; 1259 47400559 SEQUENCE evento_seq_evento_seq postgres
  3836. pg_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.  
  3846. pg_restore: creating SEQUENCE OWNED BY "public.evento_seq_evento_seq"
  3847. pg_restore: creating TABLE "public.faixa_salarial"
  3848. pg_restore: [archiver (db)] Error from TOC entry 1094; 1259 47400561 TABLE faixa_salarial postgres
  3849. pg_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.  
  3857. pg_restore: creating SEQUENCE "public.faixa_salarial_seq_faixa_salarial_seq"
  3858. pg_restore: [archiver (db)] Error from TOC entry 1095; 1259 47400567 SEQUENCE faixa_salarial_seq_faixa_salarial_seq postgres
  3859. pg_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.  
  3869. pg_restore: creating SEQUENCE OWNED BY "public.faixa_salarial_seq_faixa_salarial_seq"
  3870. pg_restore: creating TABLE "public.forma_pagamento"
  3871. pg_restore: [archiver (db)] Error from TOC entry 1096; 1259 47400569 TABLE forma_pagamento postgres
  3872. pg_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.  
  3882. pg_restore: creating SEQUENCE "public.forma_pagamento_seq_forma_pagamento_seq"
  3883. pg_restore: [archiver (db)] Error from TOC entry 1097; 1259 47400574 SEQUENCE forma_pagamento_seq_forma_pagamento_seq postgres
  3884. pg_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.  
  3894. pg_restore: creating SEQUENCE OWNED BY "public.forma_pagamento_seq_forma_pagamento_seq"
  3895. pg_restore: creating TABLE "public.ingresso"
  3896. pg_restore: [archiver (db)] Error from TOC entry 1098; 1259 47400576 TABLE ingresso postgres
  3897. pg_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.  
  3923. pg_restore: creating TABLE "public.ingresso_numero"
  3924. pg_restore: [archiver (db)] Error from TOC entry 1099; 1259 47400584 TABLE ingresso_numero postgres
  3925. pg_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.  
  3935. pg_restore: creating SEQUENCE "public.ingresso_seq_ingresso_seq"
  3936. pg_restore: [archiver (db)] Error from TOC entry 1100; 1259 47400588 SEQUENCE ingresso_seq_ingresso_seq postgres
  3937. pg_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.  
  3947. pg_restore: creating SEQUENCE OWNED BY "public.ingresso_seq_ingresso_seq"
  3948. pg_restore: creating TABLE "public.instituicao_financeira"
  3949. pg_restore: [archiver (db)] Error from TOC entry 1101; 1259 47400590 TABLE instituicao_financeira postgres
  3950. pg_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.  
  3962. pg_restore: creating SEQUENCE "public.seq_seq_liberacao"
  3963. pg_restore: [archiver (db)] Error from TOC entry 1102; 1259 47400594 SEQUENCE seq_seq_liberacao postgres
  3964. pg_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.  
  3974. pg_restore: creating TABLE "public.liberacao"
  3975. pg_restore: [archiver (db)] Error from TOC entry 1103; 1259 47400596 TABLE liberacao postgres
  3976. pg_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.  
  3991. pg_restore: creating SEQUENCE "public.seq_liberacao_historico"
  3992. pg_restore: [archiver (db)] Error from TOC entry 1104; 1259 47400601 SEQUENCE seq_liberacao_historico postgres
  3993. pg_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.  
  4003. pg_restore: creating TABLE "public.liberacao_historico"
  4004. pg_restore: [archiver (db)] Error from TOC entry 1105; 1259 47400603 TABLE liberacao_historico postgres
  4005. pg_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.  
  4022. pg_restore: creating TABLE "public.matricula"
  4023. pg_restore: [archiver (db)] Error from TOC entry 1106; 1259 47400608 TABLE matricula postgres
  4024. pg_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.  
  4065. pg_restore: creating TABLE "public.movimento_cobranca"
  4066. pg_restore: [archiver (db)] Error from TOC entry 1107; 1259 47400614 TABLE movimento_cobranca postgres
  4067. pg_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.  
  4085. pg_restore: creating SEQUENCE "public.matricula_cobranca_seq_matricula_cobranca_seq"
  4086. pg_restore: [archiver (db)] Error from TOC entry 1108; 1259 47400618 SEQUENCE matricula_cobranca_seq_matricula_cobranca_seq postgres
  4087. pg_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.  
  4097. pg_restore: creating SEQUENCE OWNED BY "public.matricula_cobranca_seq_matricula_cobranca_seq"
  4098. pg_restore: creating SEQUENCE "public.matricula_matricula_seq"
  4099. pg_restore: [archiver (db)] Error from TOC entry 1109; 1259 47400620 SEQUENCE matricula_matricula_seq postgres
  4100. pg_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.  
  4110. pg_restore: creating SEQUENCE OWNED BY "public.matricula_matricula_seq"
  4111. pg_restore: creating TABLE "public.meio_pagamento"
  4112. pg_restore: [archiver (db)] Error from TOC entry 1110; 1259 47400622 TABLE meio_pagamento postgres
  4113. pg_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.  
  4125. pg_restore: creating SEQUENCE "public.meio_pagamento_seq_meio_pagamento_seq"
  4126. pg_restore: [archiver (db)] Error from TOC entry 1111; 1259 47400627 SEQUENCE meio_pagamento_seq_meio_pagamento_seq postgres
  4127. pg_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.  
  4137. pg_restore: creating SEQUENCE OWNED BY "public.meio_pagamento_seq_meio_pagamento_seq"
  4138. pg_restore: creating TABLE "public.menu"
  4139. pg_restore: [archiver (db)] Error from TOC entry 1112; 1259 47400629 TABLE menu postgres
  4140. pg_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.  
  4152. pg_restore: creating SEQUENCE "public.menu_seq_menu_seq"
  4153. pg_restore: [archiver (db)] Error from TOC entry 1113; 1259 47400633 SEQUENCE menu_seq_menu_seq postgres
  4154. pg_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.  
  4164. pg_restore: creating SEQUENCE OWNED BY "public.menu_seq_menu_seq"
  4165. pg_restore: creating TABLE "public.movimento"
  4166. pg_restore: [archiver (db)] Error from TOC entry 1114; 1259 47400635 TABLE movimento postgres
  4167. pg_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.  
  4212. pg_restore: creating TABLE "public.dne"
  4213. pg_restore: [archiver (db)] Error from TOC entry 1080; 1259 47400512 TABLE dne postgres
  4214. pg_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.  
  4228. pg_restore: creating SEQUENCE "public.dne_seq_dne_seq"
  4229. pg_restore: [archiver (db)] Error from TOC entry 1081; 1259 47400515 SEQUENCE dne_seq_dne_seq postgres
  4230. pg_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.  
  4240. pg_restore: creating SEQUENCE OWNED BY "public.dne_seq_dne_seq"
  4241. pg_restore: creating TABLE "public.escolaridade"
  4242. pg_restore: [archiver (db)] Error from TOC entry 1082; 1259 47400517 TABLE escolaridade postgres
  4243. pg_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.  
  4251. pg_restore: creating SEQUENCE "public.escolaridade_seq_escolaridade_seq"
  4252. pg_restore: [archiver (db)] Error from TOC entry 1083; 1259 47400520 SEQUENCE escolaridade_seq_escolaridade_seq postgres
  4253. pg_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.  
  4263. pg_restore: creating SEQUENCE OWNED BY "public.escolaridade_seq_escolaridade_seq"
  4264. pg_restore: creating TABLE "public.estado"
  4265. pg_restore: [archiver (db)] Error from TOC entry 1084; 1259 47400522 TABLE estado postgres
  4266. pg_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.  
  4275. pg_restore: creating SEQUENCE "public.estado_seq_estado_seq"
  4276. pg_restore: [archiver (db)] Error from TOC entry 1085; 1259 47400525 SEQUENCE estado_seq_estado_seq postgres
  4277. pg_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.  
  4287. pg_restore: creating SEQUENCE OWNED BY "public.estado_seq_estado_seq"
  4288. pg_restore: creating TABLE "public.evento"
  4289. pg_restore: [archiver (db)] Error from TOC entry 1086; 1259 47400527 TABLE evento postgres
  4290. pg_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.  
  4317. pg_restore: creating TABLE "public.evento_local"
  4318. pg_restore: [archiver (db)] Error from TOC entry 1087; 1259 47400532 TABLE evento_local postgres
  4319. pg_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.  
  4332. pg_restore: creating SEQUENCE "public.evento_local_seq_evento_local_seq"
  4333. pg_restore: [archiver (db)] Error from TOC entry 1088; 1259 47400539 SEQUENCE evento_local_seq_evento_local_seq postgres
  4334. pg_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.  
  4344. pg_restore: creating SEQUENCE OWNED BY "public.evento_local_seq_evento_local_seq"
  4345. pg_restore: creating TABLE "public.evento_objetivo"
  4346. pg_restore: [archiver (db)] Error from TOC entry 1089; 1259 47400541 TABLE evento_objetivo postgres
  4347. pg_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.  
  4357. pg_restore: creating SEQUENCE "public.evento_objetivo_seq_evento_objetivo_seq"
  4358. pg_restore: [archiver (db)] Error from TOC entry 1090; 1259 47400548 SEQUENCE evento_objetivo_seq_evento_objetivo_seq postgres
  4359. pg_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.  
  4369. pg_restore: creating SEQUENCE OWNED BY "public.evento_objetivo_seq_evento_objetivo_seq"
  4370. pg_restore: creating TABLE "public.evento_produto"
  4371. pg_restore: [archiver (db)] Error from TOC entry 1091; 1259 47400550 TABLE evento_produto postgres
  4372. pg_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.  
  4386. pg_restore: creating SEQUENCE "public.evento_produto_seq_evento_produto_seq"
  4387. pg_restore: [archiver (db)] Error from TOC entry 1092; 1259 47400557 SEQUENCE evento_produto_seq_evento_produto_seq postgres
  4388. pg_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.  
  4398. pg_restore: creating SEQUENCE OWNED BY "public.evento_produto_seq_evento_produto_seq"
  4399. pg_restore: creating SEQUENCE "public.evento_seq_evento_seq"
  4400. pg_restore: [archiver (db)] Error from TOC entry 1093; 1259 47400559 SEQUENCE evento_seq_evento_seq postgres
  4401. pg_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.  
  4411. pg_restore: creating SEQUENCE OWNED BY "public.evento_seq_evento_seq"
  4412. pg_restore: creating TABLE "public.faixa_salarial"
  4413. pg_restore: [archiver (db)] Error from TOC entry 1094; 1259 47400561 TABLE faixa_salarial postgres
  4414. pg_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.  
  4422. pg_restore: creating SEQUENCE "public.faixa_salarial_seq_faixa_salarial_seq"
  4423. pg_restore: [archiver (db)] Error from TOC entry 1095; 1259 47400567 SEQUENCE faixa_salarial_seq_faixa_salarial_seq postgres
  4424. pg_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.  
  4434. pg_restore: creating SEQUENCE OWNED BY "public.faixa_salarial_seq_faixa_salarial_seq"
  4435. pg_restore: creating TABLE "public.forma_pagamento"
  4436. pg_restore: [archiver (db)] Error from TOC entry 1096; 1259 47400569 TABLE forma_pagamento postgres
  4437. pg_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.  
  4447. pg_restore: creating SEQUENCE "public.forma_pagamento_seq_forma_pagamento_seq"
  4448. pg_restore: [archiver (db)] Error from TOC entry 1097; 1259 47400574 SEQUENCE forma_pagamento_seq_forma_pagamento_seq postgres
  4449. pg_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.  
  4459. pg_restore: creating SEQUENCE OWNED BY "public.forma_pagamento_seq_forma_pagamento_seq"
  4460. pg_restore: creating TABLE "public.ingresso"
  4461. pg_restore: [archiver (db)] Error from TOC entry 1098; 1259 47400576 TABLE ingresso postgres
  4462. pg_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.  
  4488. pg_restore: creating TABLE "public.ingresso_numero"
  4489. pg_restore: [archiver (db)] Error from TOC entry 1099; 1259 47400584 TABLE ingresso_numero postgres
  4490. pg_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.  
  4500. pg_restore: creating SEQUENCE "public.ingresso_seq_ingresso_seq"
  4501. pg_restore: [archiver (db)] Error from TOC entry 1100; 1259 47400588 SEQUENCE ingresso_seq_ingresso_seq postgres
  4502. pg_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.  
  4512. pg_restore: creating SEQUENCE OWNED BY "public.ingresso_seq_ingresso_seq"
  4513. pg_restore: creating TABLE "public.instituicao_financeira"
  4514. pg_restore: [archiver (db)] Error from TOC entry 1101; 1259 47400590 TABLE instituicao_financeira postgres
  4515. pg_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.  
  4527. pg_restore: creating SEQUENCE "public.seq_seq_liberacao"
  4528. pg_restore: [archiver (db)] Error from TOC entry 1102; 1259 47400594 SEQUENCE seq_seq_liberacao postgres
  4529. pg_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.  
  4539. pg_restore: creating TABLE "public.liberacao"
  4540. pg_restore: [archiver (db)] Error from TOC entry 1103; 1259 47400596 TABLE liberacao postgres
  4541. pg_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.  
  4556. pg_restore: creating SEQUENCE "public.seq_liberacao_historico"
  4557. pg_restore: [archiver (db)] Error from TOC entry 1104; 1259 47400601 SEQUENCE seq_liberacao_historico postgres
  4558. pg_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.  
  4568. pg_restore: creating TABLE "public.liberacao_historico"
  4569. pg_restore: [archiver (db)] Error from TOC entry 1105; 1259 47400603 TABLE liberacao_historico postgres
  4570. pg_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.  
  4587. pg_restore: creating TABLE "public.matricula"
  4588. pg_restore: [archiver (db)] Error from TOC entry 1106; 1259 47400608 TABLE matricula postgres
  4589. pg_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.  
  4630. pg_restore: creating TABLE "public.movimento_cobranca"
  4631. pg_restore: [archiver (db)] Error from TOC entry 1107; 1259 47400614 TABLE movimento_cobranca postgres
  4632. pg_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.  
  4650. pg_restore: creating SEQUENCE "public.matricula_cobranca_seq_matricula_cobranca_seq"
  4651. pg_restore: [archiver (db)] Error from TOC entry 1108; 1259 47400618 SEQUENCE matricula_cobranca_seq_matricula_cobranca_seq postgres
  4652. pg_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.  
  4662. pg_restore: creating SEQUENCE OWNED BY "public.matricula_cobranca_seq_matricula_cobranca_seq"
  4663. pg_restore: creating SEQUENCE "public.matricula_matricula_seq"
  4664. pg_restore: [archiver (db)] Error from TOC entry 1109; 1259 47400620 SEQUENCE matricula_matricula_seq postgres
  4665. pg_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.  
  4675. pg_restore: creating SEQUENCE OWNED BY "public.matricula_matricula_seq"
  4676. pg_restore: creating TABLE "public.meio_pagamento"
  4677. pg_restore: [archiver (db)] Error from TOC entry 1110; 1259 47400622 TABLE meio_pagamento postgres
  4678. pg_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.  
  4690. pg_restore: creating SEQUENCE "public.meio_pagamento_seq_meio_pagamento_seq"
  4691. pg_restore: [archiver (db)] Error from TOC entry 1111; 1259 47400627 SEQUENCE meio_pagamento_seq_meio_pagamento_seq postgres
  4692. pg_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.  
  4702. pg_restore: creating SEQUENCE OWNED BY "public.meio_pagamento_seq_meio_pagamento_seq"
  4703. pg_restore: creating TABLE "public.menu"
  4704. pg_restore: [archiver (db)] Error from TOC entry 1112; 1259 47400629 TABLE menu postgres
  4705. pg_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.  
  4717. pg_restore: creating SEQUENCE "public.menu_seq_menu_seq"
  4718. pg_restore: [archiver (db)] Error from TOC entry 1113; 1259 47400633 SEQUENCE menu_seq_menu_seq postgres
  4719. pg_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.  
  4729. pg_restore: creating SEQUENCE OWNED BY "public.menu_seq_menu_seq"
  4730. pg_restore: creating TABLE "public.movimento"
  4731. pg_restore: [archiver (db)] Error from TOC entry 1114; 1259 47400635 TABLE movimento postgres
  4732. pg_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.  
  4748. pg_restore: creating TABLE "public.movimento_item"
  4749. pg_restore: [archiver (db)] Error from TOC entry 1115; 1259 47400640 TABLE movimento_item postgres
  4750. pg_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.  
  4765. pg_restore: creating SEQUENCE "public.movimento_item_seq_movimento_item_seq"
  4766. pg_restore: [archiver (db)] Error from TOC entry 1116; 1259 47400644 SEQUENCE movimento_item_seq_movimento_item_seq postgres
  4767. pg_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.  
  4777. pg_restore: creating SEQUENCE OWNED BY "public.movimento_item_seq_movimento_item_seq"
  4778. pg_restore: creating TABLE "public.movimento_pagamento"
  4779. pg_restore: [archiver (db)] Error from TOC entry 1117; 1259 47400646 TABLE movimento_pagamento postgres
  4780. pg_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.  
  4794. pg_restore: creating SEQUENCE "public.movimento_pagamento_seq_movimento_pagamento_seq"
  4795. pg_restore: [archiver (db)] Error from TOC entry 1118; 1259 47400650 SEQUENCE movimento_pagamento_seq_movimento_pagamento_seq postgres
  4796. pg_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.  
  4806. pg_restore: creating SEQUENCE OWNED BY "public.movimento_pagamento_seq_movimento_pagamento_seq"
  4807. pg_restore: creating SEQUENCE "public.movimento_seq_movimento_seq"
  4808. pg_restore: [archiver (db)] Error from TOC entry 1119; 1259 47400652 SEQUENCE movimento_seq_movimento_seq postgres
  4809. pg_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.  
  4819. pg_restore: creating SEQUENCE OWNED BY "public.movimento_seq_movimento_seq"
  4820. pg_restore: creating TABLE "public.objeto"
  4821. pg_restore: [archiver (db)] Error from TOC entry 1120; 1259 47400654 TABLE objeto postgres
  4822. pg_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.  
  4836. pg_restore: creating SEQUENCE "public.objeto_seq_objeto_seq"
  4837. pg_restore: [archiver (db)] Error from TOC entry 1121; 1259 47400659 SEQUENCE objeto_seq_objeto_seq postgres
  4838. pg_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.  
  4848. pg_restore: creating SEQUENCE OWNED BY "public.objeto_seq_objeto_seq"
  4849. pg_restore: creating TABLE "public.obs_matricula"
  4850. pg_restore: [archiver (db)] Error from TOC entry 1122; 1259 47400661 TABLE obs_matricula postgres
  4851. pg_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.  
  4863. pg_restore: creating SEQUENCE "public.obs_matricula_matricula_seq"
  4864. pg_restore: [archiver (db)] Error from TOC entry 1123; 1259 47400668 SEQUENCE obs_matricula_matricula_seq postgres
  4865. pg_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.  
  4875. pg_restore: creating SEQUENCE OWNED BY "public.obs_matricula_matricula_seq"
  4876. pg_restore: creating SEQUENCE "public.obs_matricula_seq_obs_matricula_seq"
  4877. pg_restore: [archiver (db)] Error from TOC entry 1124; 1259 47400670 SEQUENCE obs_matricula_seq_obs_matricula_seq postgres
  4878. pg_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.  
  4888. pg_restore: creating SEQUENCE OWNED BY "public.obs_matricula_seq_obs_matricula_seq"
  4889. pg_restore: creating TABLE "public.pais"
  4890. pg_restore: [archiver (db)] Error from TOC entry 1125; 1259 47400672 TABLE pais postgres
  4891. pg_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.  
  4899. pg_restore: creating SEQUENCE "public.pais_seq_pais_seq"
  4900. pg_restore: [archiver (db)] Error from TOC entry 1126; 1259 47400675 SEQUENCE pais_seq_pais_seq postgres
  4901. pg_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.  
  4911. pg_restore: creating SEQUENCE OWNED BY "public.pais_seq_pais_seq"
  4912. pg_restore: creating TABLE "public.perfil"
  4913. pg_restore: [archiver (db)] Error from TOC entry 1127; 1259 47400677 TABLE perfil postgres
  4914. pg_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.  
  4924. pg_restore: creating TABLE "public.perfil_objeto"
  4925. pg_restore: [archiver (db)] Error from TOC entry 1128; 1259 47400681 TABLE perfil_objeto postgres
  4926. pg_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.  
  4937. pg_restore: creating SEQUENCE "public.perfil_objeto_seq_perfil_objeto_seq"
  4938. pg_restore: [archiver (db)] Error from TOC entry 1129; 1259 47400686 SEQUENCE perfil_objeto_seq_perfil_objeto_seq postgres
  4939. pg_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.  
  4949. pg_restore: creating SEQUENCE OWNED BY "public.perfil_objeto_seq_perfil_objeto_seq"
  4950. pg_restore: creating SEQUENCE "public.perfil_seq_perfil_seq"
  4951. pg_restore: [archiver (db)] Error from TOC entry 1130; 1259 47400688 SEQUENCE perfil_seq_perfil_seq postgres
  4952. pg_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.  
  4962. pg_restore: creating SEQUENCE OWNED BY "public.perfil_seq_perfil_seq"
  4963. pg_restore: creating TABLE "public.pessoa"
  4964. pg_restore: [archiver (db)] Error from TOC entry 1131; 1259 47400690 TABLE pessoa postgres
  4965. pg_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.  
  5015. pg_restore: creating TABLE "public.pessoa_dados_pagamento"
  5016. pg_restore: [archiver (db)] Error from TOC entry 1132; 1259 47400709 TABLE pessoa_dados_pagamento postgres
  5017. pg_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.  
  5039. pg_restore: creating SEQUENCE "public.pessoa_dados_pagamento_seq_pessoa_dados_pagamento_seq"
  5040. pg_restore: [archiver (db)] Error from TOC entry 1133; 1259 47400712 SEQUENCE pessoa_dados_pagamento_seq_pessoa_dados_pagamento_seq postgres
  5041. pg_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.  
  5051. pg_restore: creating SEQUENCE OWNED BY "public.pessoa_dados_pagamento_seq_pessoa_dados_pagamento_seq"
  5052. pg_restore: creating SEQUENCE "public.pessoa_seq_pessoa_seq"
  5053. pg_restore: [archiver (db)] Error from TOC entry 1134; 1259 47400714 SEQUENCE pessoa_seq_pessoa_seq postgres
  5054. pg_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.  
  5064. pg_restore: creating SEQUENCE OWNED BY "public.pessoa_seq_pessoa_seq"
  5065. pg_restore: creating TABLE "public.pessoa_vinculo"
  5066. pg_restore: [archiver (db)] Error from TOC entry 1135; 1259 47400716 TABLE pessoa_vinculo postgres
  5067. pg_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.  
  5081. pg_restore: creating SEQUENCE "public.pessoa_vinculo_seq_pessoa_vinculo_seq"
  5082. pg_restore: [archiver (db)] Error from TOC entry 1136; 1259 47400721 SEQUENCE pessoa_vinculo_seq_pessoa_vinculo_seq postgres
  5083. pg_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.  
  5093. pg_restore: creating SEQUENCE OWNED BY "public.pessoa_vinculo_seq_pessoa_vinculo_seq"
  5094. pg_restore: creating TABLE "public.plano_pgto"
  5095. pg_restore: [archiver (db)] Error from TOC entry 1137; 1259 47400723 TABLE plano_pgto acbf
  5096. pg_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.  
  5107. pg_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.  
  5111. pg_restore: creating SEQUENCE "public.plano_pgto_seq_plano_pgto_seq"
  5112. pg_restore: [archiver (db)] Error from TOC entry 1138; 1259 47400727 SEQUENCE plano_pgto_seq_plano_pgto_seq acbf
  5113. pg_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.  
  5123. pg_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.  
  5127. pg_restore: creating SEQUENCE OWNED BY "public.plano_pgto_seq_plano_pgto_seq"
  5128. pg_restore: creating TABLE "public.portao"
  5129. pg_restore: [archiver (db)] Error from TOC entry 1139; 1259 47400729 TABLE portao postgres
  5130. pg_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.  
  5141. pg_restore: creating SEQUENCE "public.portao_seq_portao_seq_1"
  5142. pg_restore: [archiver (db)] Error from TOC entry 1140; 1259 47400733 SEQUENCE portao_seq_portao_seq_1 postgres
  5143. pg_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.  
  5153. pg_restore: creating SEQUENCE OWNED BY "public.portao_seq_portao_seq_1"
  5154. pg_restore: creating TABLE "public.produto"
  5155. pg_restore: [archiver (db)] Error from TOC entry 1141; 1259 47400735 TABLE produto postgres
  5156. pg_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.  
  5172. pg_restore: creating TABLE "public.produto_catraca"
  5173. pg_restore: [archiver (db)] Error from TOC entry 1142; 1259 47400742 TABLE produto_catraca postgres
  5174. pg_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.  
  5186. pg_restore: creating SEQUENCE "public.produto_catraca_seq_produto_catraca_seq"
  5187. pg_restore: [archiver (db)] Error from TOC entry 1143; 1259 47400746 SEQUENCE produto_catraca_seq_produto_catraca_seq postgres
  5188. pg_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.  
  5198. pg_restore: creating SEQUENCE OWNED BY "public.produto_catraca_seq_produto_catraca_seq"
  5199. pg_restore: creating TABLE "public.produto_classe"
  5200. pg_restore: [archiver (db)] Error from TOC entry 1144; 1259 47400748 TABLE produto_classe postgres
  5201. pg_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.  
  5211. pg_restore: creating SEQUENCE "public.produto_classe_seq_produto_classe_seq"
  5212. pg_restore: [archiver (db)] Error from TOC entry 1145; 1259 47400752 SEQUENCE produto_classe_seq_produto_classe_seq postgres
  5213. pg_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.  
  5223. pg_restore: creating SEQUENCE OWNED BY "public.produto_classe_seq_produto_classe_seq"
  5224. pg_restore: creating TABLE "public.produto_configuracao"
  5225. pg_restore: [archiver (db)] Error from TOC entry 1146; 1259 47400754 TABLE produto_configuracao postgres
  5226. pg_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.  
  5238. pg_restore: creating SEQUENCE "public.produto_configuracao_seq_produto_configuracao_seq"
  5239. pg_restore: [archiver (db)] Error from TOC entry 1147; 1259 47400759 SEQUENCE produto_configuracao_seq_produto_configuracao_seq postgres
  5240. pg_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.  
  5250. pg_restore: creating SEQUENCE OWNED BY "public.produto_configuracao_seq_produto_configuracao_seq"
  5251. pg_restore: creating TABLE "public.produto_contrato"
  5252. pg_restore: [archiver (db)] Error from TOC entry 1148; 1259 47400761 TABLE produto_contrato postgres
  5253. pg_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.  
  5265. pg_restore: creating SEQUENCE "public.produto_contrato_seq_produto_contrato_seq_1"
  5266. pg_restore: [archiver (db)] Error from TOC entry 1149; 1259 47400768 SEQUENCE produto_contrato_seq_produto_contrato_seq_1 postgres
  5267. pg_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.  
  5277. pg_restore: creating SEQUENCE OWNED BY "public.produto_contrato_seq_produto_contrato_seq_1"
  5278. pg_restore: creating TABLE "public.produto_escolinha_turma"
  5279. pg_restore: [archiver (db)] Error from TOC entry 1192; 1259 49893175 TABLE produto_escolinha_turma postgres
  5280. pg_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.  
  5292. pg_restore: creating SEQUENCE "public.produto_escolinha_turma_seq_produto_escolinha_turma_seq"
  5293. pg_restore: [archiver (db)] Error from TOC entry 1191; 1259 49893173 SEQUENCE produto_escolinha_turma_seq_produto_escolinha_turma_seq postgres
  5294. pg_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.  
  5304. pg_restore: creating SEQUENCE OWNED BY "public.produto_escolinha_turma_seq_produto_escolinha_turma_seq"
  5305. pg_restore: creating TABLE "public.produto_plano_pgto"
  5306. pg_restore: [archiver (db)] Error from TOC entry 1150; 1259 47400770 TABLE produto_plano_pgto acbf
  5307. pg_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.  
  5319. pg_restore: creating TABLE "public.movimento_item"
  5320. pg_restore: [archiver (db)] Error from TOC entry 1115; 1259 47400640 TABLE movimento_item postgres
  5321. pg_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.  
  5336. pg_restore: creating SEQUENCE "public.movimento_item_seq_movimento_item_seq"
  5337. pg_restore: [archiver (db)] Error from TOC entry 1116; 1259 47400644 SEQUENCE movimento_item_seq_movimento_item_seq postgres
  5338. pg_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.  
  5348. pg_restore: creating SEQUENCE OWNED BY "public.movimento_item_seq_movimento_item_seq"
  5349. pg_restore: creating TABLE "public.movimento_pagamento"
  5350. pg_restore: [archiver (db)] Error from TOC entry 1117; 1259 47400646 TABLE movimento_pagamento postgres
  5351. pg_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.  
  5365. pg_restore: creating SEQUENCE "public.movimento_pagamento_seq_movimento_pagamento_seq"
  5366. pg_restore: [archiver (db)] Error from TOC entry 1118; 1259 47400650 SEQUENCE movimento_pagamento_seq_movimento_pagamento_seq postgres
  5367. pg_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.  
  5377. pg_restore: creating SEQUENCE OWNED BY "public.movimento_pagamento_seq_movimento_pagamento_seq"
  5378. pg_restore: creating SEQUENCE "public.movimento_seq_movimento_seq"
  5379. pg_restore: [archiver (db)] Error from TOC entry 1119; 1259 47400652 SEQUENCE movimento_seq_movimento_seq postgres
  5380. pg_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.  
  5390. pg_restore: creating SEQUENCE OWNED BY "public.movimento_seq_movimento_seq"
  5391. pg_restore: creating TABLE "public.objeto"
  5392. pg_restore: [archiver (db)] Error from TOC entry 1120; 1259 47400654 TABLE objeto postgres
  5393. pg_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.  
  5407. pg_restore: creating SEQUENCE "public.objeto_seq_objeto_seq"
  5408. pg_restore: [archiver (db)] Error from TOC entry 1121; 1259 47400659 SEQUENCE objeto_seq_objeto_seq postgres
  5409. pg_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.  
  5419. pg_restore: creating SEQUENCE OWNED BY "public.objeto_seq_objeto_seq"
  5420. pg_restore: creating TABLE "public.obs_matricula"
  5421. pg_restore: [archiver (db)] Error from TOC entry 1122; 1259 47400661 TABLE obs_matricula postgres
  5422. pg_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.  
  5434. pg_restore: creating SEQUENCE "public.obs_matricula_matricula_seq"
  5435. pg_restore: [archiver (db)] Error from TOC entry 1123; 1259 47400668 SEQUENCE obs_matricula_matricula_seq postgres
  5436. pg_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.  
  5446. pg_restore: creating SEQUENCE OWNED BY "public.obs_matricula_matricula_seq"
  5447. pg_restore: creating SEQUENCE "public.obs_matricula_seq_obs_matricula_seq"
  5448. pg_restore: [archiver (db)] Error from TOC entry 1124; 1259 47400670 SEQUENCE obs_matricula_seq_obs_matricula_seq postgres
  5449. pg_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.  
  5459. pg_restore: creating SEQUENCE OWNED BY "public.obs_matricula_seq_obs_matricula_seq"
  5460. pg_restore: creating TABLE "public.pais"
  5461. pg_restore: [archiver (db)] Error from TOC entry 1125; 1259 47400672 TABLE pais postgres
  5462. pg_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.  
  5470. pg_restore: creating SEQUENCE "public.pais_seq_pais_seq"
  5471. pg_restore: [archiver (db)] Error from TOC entry 1126; 1259 47400675 SEQUENCE pais_seq_pais_seq postgres
  5472. pg_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.  
  5482. pg_restore: creating SEQUENCE OWNED BY "public.pais_seq_pais_seq"
  5483. pg_restore: creating TABLE "public.perfil"
  5484. pg_restore: [archiver (db)] Error from TOC entry 1127; 1259 47400677 TABLE perfil postgres
  5485. pg_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.  
  5495. pg_restore: creating TABLE "public.perfil_objeto"
  5496. pg_restore: [archiver (db)] Error from TOC entry 1128; 1259 47400681 TABLE perfil_objeto postgres
  5497. pg_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.  
  5508. pg_restore: creating SEQUENCE "public.perfil_objeto_seq_perfil_objeto_seq"
  5509. pg_restore: [archiver (db)] Error from TOC entry 1129; 1259 47400686 SEQUENCE perfil_objeto_seq_perfil_objeto_seq postgres
  5510. pg_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.  
  5520. pg_restore: creating SEQUENCE OWNED BY "public.perfil_objeto_seq_perfil_objeto_seq"
  5521. pg_restore: creating SEQUENCE "public.perfil_seq_perfil_seq"
  5522. pg_restore: [archiver (db)] Error from TOC entry 1130; 1259 47400688 SEQUENCE perfil_seq_perfil_seq postgres
  5523. pg_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.  
  5533. pg_restore: creating SEQUENCE OWNED BY "public.perfil_seq_perfil_seq"
  5534. pg_restore: creating TABLE "public.pessoa"
  5535. pg_restore: [archiver (db)] Error from TOC entry 1131; 1259 47400690 TABLE pessoa postgres
  5536. pg_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.  
  5586. pg_restore: creating TABLE "public.pessoa_dados_pagamento"
  5587. pg_restore: [archiver (db)] Error from TOC entry 1132; 1259 47400709 TABLE pessoa_dados_pagamento postgres
  5588. pg_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.  
  5610. pg_restore: creating SEQUENCE "public.pessoa_dados_pagamento_seq_pessoa_dados_pagamento_seq"
  5611. pg_restore: [archiver (db)] Error from TOC entry 1133; 1259 47400712 SEQUENCE pessoa_dados_pagamento_seq_pessoa_dados_pagamento_seq postgres
  5612. pg_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.  
  5622. pg_restore: creating SEQUENCE OWNED BY "public.pessoa_dados_pagamento_seq_pessoa_dados_pagamento_seq"
  5623. pg_restore: creating SEQUENCE "public.pessoa_seq_pessoa_seq"
  5624. pg_restore: [archiver (db)] Error from TOC entry 1134; 1259 47400714 SEQUENCE pessoa_seq_pessoa_seq postgres
  5625. pg_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.  
  5635. pg_restore: creating SEQUENCE OWNED BY "public.pessoa_seq_pessoa_seq"
  5636. pg_restore: creating TABLE "public.pessoa_vinculo"
  5637. pg_restore: [archiver (db)] Error from TOC entry 1135; 1259 47400716 TABLE pessoa_vinculo postgres
  5638. pg_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.  
  5652. pg_restore: creating SEQUENCE "public.pessoa_vinculo_seq_pessoa_vinculo_seq"
  5653. pg_restore: [archiver (db)] Error from TOC entry 1136; 1259 47400721 SEQUENCE pessoa_vinculo_seq_pessoa_vinculo_seq postgres
  5654. pg_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.  
  5664. pg_restore: creating SEQUENCE OWNED BY "public.pessoa_vinculo_seq_pessoa_vinculo_seq"
  5665. pg_restore: creating TABLE "public.plano_pgto"
  5666. pg_restore: [archiver (db)] Error from TOC entry 1137; 1259 47400723 TABLE plano_pgto acbf
  5667. pg_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.  
  5678. pg_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.  
  5682. pg_restore: creating SEQUENCE "public.plano_pgto_seq_plano_pgto_seq"
  5683. pg_restore: [archiver (db)] Error from TOC entry 1138; 1259 47400727 SEQUENCE plano_pgto_seq_plano_pgto_seq acbf
  5684. pg_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.  
  5694. pg_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.  
  5698. pg_restore: creating SEQUENCE OWNED BY "public.plano_pgto_seq_plano_pgto_seq"
  5699. pg_restore: creating TABLE "public.portao"
  5700. pg_restore: [archiver (db)] Error from TOC entry 1139; 1259 47400729 TABLE portao postgres
  5701. pg_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.  
  5712. pg_restore: creating SEQUENCE "public.portao_seq_portao_seq_1"
  5713. pg_restore: [archiver (db)] Error from TOC entry 1140; 1259 47400733 SEQUENCE portao_seq_portao_seq_1 postgres
  5714. pg_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.  
  5724. pg_restore: creating SEQUENCE OWNED BY "public.portao_seq_portao_seq_1"
  5725. pg_restore: creating TABLE "public.produto"
  5726. pg_restore: [archiver (db)] Error from TOC entry 1141; 1259 47400735 TABLE produto postgres
  5727. pg_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.  
  5743. pg_restore: creating TABLE "public.produto_catraca"
  5744. pg_restore: [archiver (db)] Error from TOC entry 1142; 1259 47400742 TABLE produto_catraca postgres
  5745. pg_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.  
  5757. pg_restore: creating SEQUENCE "public.produto_catraca_seq_produto_catraca_seq"
  5758. pg_restore: [archiver (db)] Error from TOC entry 1143; 1259 47400746 SEQUENCE produto_catraca_seq_produto_catraca_seq postgres
  5759. pg_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.  
  5769. pg_restore: creating SEQUENCE OWNED BY "public.produto_catraca_seq_produto_catraca_seq"
  5770. pg_restore: creating TABLE "public.produto_classe"
  5771. pg_restore: [archiver (db)] Error from TOC entry 1144; 1259 47400748 TABLE produto_classe postgres
  5772. pg_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.  
  5782. pg_restore: creating SEQUENCE "public.produto_classe_seq_produto_classe_seq"
  5783. pg_restore: [archiver (db)] Error from TOC entry 1145; 1259 47400752 SEQUENCE produto_classe_seq_produto_classe_seq postgres
  5784. pg_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.  
  5794. pg_restore: creating SEQUENCE OWNED BY "public.produto_classe_seq_produto_classe_seq"
  5795. pg_restore: creating TABLE "public.produto_configuracao"
  5796. pg_restore: [archiver (db)] Error from TOC entry 1146; 1259 47400754 TABLE produto_configuracao postgres
  5797. pg_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.  
  5809. pg_restore: creating SEQUENCE "public.produto_configuracao_seq_produto_configuracao_seq"
  5810. pg_restore: [archiver (db)] Error from TOC entry 1147; 1259 47400759 SEQUENCE produto_configuracao_seq_produto_configuracao_seq postgres
  5811. pg_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.  
  5821. pg_restore: creating SEQUENCE OWNED BY "public.produto_configuracao_seq_produto_configuracao_seq"
  5822. pg_restore: creating TABLE "public.produto_contrato"
  5823. pg_restore: [archiver (db)] Error from TOC entry 1148; 1259 47400761 TABLE produto_contrato postgres
  5824. pg_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.  
  5836. pg_restore: creating SEQUENCE "public.produto_contrato_seq_produto_contrato_seq_1"
  5837. pg_restore: [archiver (db)] Error from TOC entry 1149; 1259 47400768 SEQUENCE produto_contrato_seq_produto_contrato_seq_1 postgres
  5838. pg_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.  
  5848. pg_restore: creating SEQUENCE OWNED BY "public.produto_contrato_seq_produto_contrato_seq_1"
  5849. pg_restore: creating TABLE "public.produto_escolinha_turma"
  5850. pg_restore: [archiver (db)] Error from TOC entry 1192; 1259 49893175 TABLE produto_escolinha_turma postgres
  5851. pg_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.  
  5863. pg_restore: creating SEQUENCE "public.produto_escolinha_turma_seq_produto_escolinha_turma_seq"
  5864. pg_restore: [archiver (db)] Error from TOC entry 1191; 1259 49893173 SEQUENCE produto_escolinha_turma_seq_produto_escolinha_turma_seq postgres
  5865. pg_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.  
  5875. pg_restore: creating SEQUENCE OWNED BY "public.produto_escolinha_turma_seq_produto_escolinha_turma_seq"
  5876. pg_restore: creating TABLE "public.produto_plano_pgto"
  5877. pg_restore: [archiver (db)] Error from TOC entry 1150; 1259 47400770 TABLE produto_plano_pgto acbf
  5878. pg_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.  
  5889. pg_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.  
  5893. pg_restore: creating SEQUENCE "public.produto_plano_pgto_seq_produto_plano_pgto_seq"
  5894. pg_restore: [archiver (db)] Error from TOC entry 1151; 1259 47400774 SEQUENCE produto_plano_pgto_seq_produto_plano_pgto_seq acbf
  5895. pg_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.  
  5905. pg_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.  
  5909. pg_restore: creating SEQUENCE OWNED BY "public.produto_plano_pgto_seq_produto_plano_pgto_seq"
  5910. pg_restore: creating SEQUENCE "public.produto_seq_produto_seq"
  5911. pg_restore: [archiver (db)] Error from TOC entry 1152; 1259 47400776 SEQUENCE produto_seq_produto_seq postgres
  5912. pg_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.  
  5922. pg_restore: creating SEQUENCE OWNED BY "public.produto_seq_produto_seq"
  5923. pg_restore: creating TABLE "public.produto_taxa"
  5924. pg_restore: [archiver (db)] Error from TOC entry 1153; 1259 47400778 TABLE produto_taxa postgres
  5925. pg_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.  
  5949. pg_restore: creating SEQUENCE "public.produto_taxa_seq_produto_taxa_seq"
  5950. pg_restore: [archiver (db)] Error from TOC entry 1154; 1259 47400786 SEQUENCE produto_taxa_seq_produto_taxa_seq postgres
  5951. pg_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.  
  5961. pg_restore: creating SEQUENCE OWNED BY "public.produto_taxa_seq_produto_taxa_seq"
  5962. pg_restore: creating TABLE "public.profissao"
  5963. pg_restore: [archiver (db)] Error from TOC entry 1155; 1259 47400788 TABLE profissao postgres
  5964. pg_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.  
  5974. pg_restore: creating SEQUENCE "public.profissao_seq_profissao_seq_1"
  5975. pg_restore: [archiver (db)] Error from TOC entry 1156; 1259 47400792 SEQUENCE profissao_seq_profissao_seq_1 postgres
  5976. pg_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.  
  5986. pg_restore: creating SEQUENCE OWNED BY "public.profissao_seq_profissao_seq_1"
  5987. pg_restore: creating TABLE "public.remessa"
  5988. pg_restore: [archiver (db)] Error from TOC entry 1157; 1259 47400794 TABLE remessa postgres
  5989. pg_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.  
  6002. pg_restore: creating TABLE "public.remessa_item"
  6003. pg_restore: [archiver (db)] Error from TOC entry 1158; 1259 47400797 TABLE remessa_item postgres
  6004. pg_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.  
  6019. pg_restore: creating SEQUENCE "public.remessa_item_seq_remessa_item_seq"
  6020. pg_restore: [archiver (db)] Error from TOC entry 1159; 1259 47400800 SEQUENCE remessa_item_seq_remessa_item_seq postgres
  6021. pg_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.  
  6031. pg_restore: creating SEQUENCE OWNED BY "public.remessa_item_seq_remessa_item_seq"
  6032. pg_restore: creating SEQUENCE "public.remessa_seq_remessa_seq"
  6033. pg_restore: [archiver (db)] Error from TOC entry 1160; 1259 47400802 SEQUENCE remessa_seq_remessa_seq postgres
  6034. pg_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.  
  6044. pg_restore: creating SEQUENCE OWNED BY "public.remessa_seq_remessa_seq"
  6045. pg_restore: creating TABLE "public.renda_familiar"
  6046. pg_restore: [archiver (db)] Error from TOC entry 1161; 1259 47400804 TABLE renda_familiar postgres
  6047. pg_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.  
  6055. pg_restore: creating SEQUENCE "public.renda_familiar_seq_renda_familiar_seq"
  6056. pg_restore: [archiver (db)] Error from TOC entry 1162; 1259 47400807 SEQUENCE renda_familiar_seq_renda_familiar_seq postgres
  6057. pg_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.  
  6067. pg_restore: creating SEQUENCE OWNED BY "public.renda_familiar_seq_renda_familiar_seq"
  6068. pg_restore: creating TABLE "public.sangria"
  6069. pg_restore: [archiver (db)] Error from TOC entry 1163; 1259 47400809 TABLE sangria postgres
  6070. pg_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.  
  6083. pg_restore: creating SEQUENCE "public.sangria_seq_sangria_seq"
  6084. pg_restore: [archiver (db)] Error from TOC entry 1164; 1259 47400814 SEQUENCE sangria_seq_sangria_seq postgres
  6085. pg_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.  
  6095. pg_restore: creating SEQUENCE OWNED BY "public.sangria_seq_sangria_seq"
  6096. pg_restore: creating SEQUENCE "public.seq_competencia"
  6097. pg_restore: [archiver (db)] Error from TOC entry 1165; 1259 47400816 SEQUENCE seq_competencia postgres
  6098. pg_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.  
  6108. pg_restore: creating SEQUENCE "public.seq_conta"
  6109. pg_restore: [archiver (db)] Error from TOC entry 1166; 1259 47400818 SEQUENCE seq_conta postgres
  6110. pg_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.  
  6120. pg_restore: creating SEQUENCE "public.seq_ingresso_numero"
  6121. pg_restore: [archiver (db)] Error from TOC entry 1167; 1259 47400820 SEQUENCE seq_ingresso_numero postgres
  6122. pg_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.  
  6132. pg_restore: creating SEQUENCE "public.seq_instituicao_financeira"
  6133. pg_restore: [archiver (db)] Error from TOC entry 1168; 1259 47400822 SEQUENCE seq_instituicao_financeira postgres
  6134. pg_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.  
  6144. pg_restore: creating SEQUENCE OWNED BY "public.seq_instituicao_financeira"
  6145. pg_restore: creating SEQUENCE "public.seq_nosso_numero"
  6146. pg_restore: [archiver (db)] Error from TOC entry 1169; 1259 47400824 SEQUENCE seq_nosso_numero postgres
  6147. pg_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.  
  6157. pg_restore: creating SEQUENCE "public.seq_voucher"
  6158. pg_restore: [archiver (db)] Error from TOC entry 1170; 1259 47400826 SEQUENCE seq_voucher postgres
  6159. pg_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.  
  6169. pg_restore: creating TABLE "public.sessao"
  6170. pg_restore: [archiver (db)] Error from TOC entry 1171; 1259 47400828 TABLE sessao postgres
  6171. pg_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.  
  6185. pg_restore: creating TABLE "public.sessao_evento_produto"
  6186. pg_restore: [archiver (db)] Error from TOC entry 1172; 1259 47400832 TABLE sessao_evento_produto postgres
  6187. pg_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.  
  6201. pg_restore: creating SEQUENCE "public.sessao_evento_produto_seq_sessao_evento_produto_seq"
  6202. pg_restore: [archiver (db)] Error from TOC entry 1173; 1259 47400837 SEQUENCE sessao_evento_produto_seq_sessao_evento_produto_seq postgres
  6203. pg_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.  
  6213. pg_restore: creating SEQUENCE OWNED BY "public.sessao_evento_produto_seq_sessao_evento_produto_seq"
  6214. pg_restore: creating SEQUENCE "public.sessao_seq_sessao_seq"
  6215. pg_restore: [archiver (db)] Error from TOC entry 1174; 1259 47400839 SEQUENCE sessao_seq_sessao_seq postgres
  6216. pg_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.  
  6226. pg_restore: creating SEQUENCE OWNED BY "public.sessao_seq_sessao_seq"
  6227. pg_restore: creating TABLE "public.setor"
  6228. pg_restore: [archiver (db)] Error from TOC entry 1175; 1259 47400841 TABLE setor postgres
  6229. pg_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.  
  6239. pg_restore: creating SEQUENCE "public.setor_seq_setor_seq_1"
  6240. pg_restore: [archiver (db)] Error from TOC entry 1176; 1259 47400845 SEQUENCE setor_seq_setor_seq_1 postgres
  6241. pg_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.  
  6251. pg_restore: creating SEQUENCE OWNED BY "public.setor_seq_setor_seq_1"
  6252. pg_restore: creating TABLE "public.socio_tmp"
  6253. pg_restore: [archiver (db)] Error from TOC entry 1177; 1259 47400847 TABLE socio_tmp postgres
  6254. pg_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.  
  6262. pg_restore: creating TABLE "public.taxa"
  6263. pg_restore: [archiver (db)] Error from TOC entry 1178; 1259 47400853 TABLE taxa postgres
  6264. pg_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.  
  6275. pg_restore: creating COMMENT "public.TABLE taxa"
  6276. pg_restore: creating SEQUENCE "public.taxa_seq_taxa_seq"
  6277. pg_restore: [archiver (db)] Error from TOC entry 1179; 1259 47400857 SEQUENCE taxa_seq_taxa_seq postgres
  6278. pg_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.  
  6288. pg_restore: creating SEQUENCE OWNED BY "public.taxa_seq_taxa_seq"
  6289. pg_restore: creating TABLE "public.tmp_importacao_socio"
  6290. pg_restore: [archiver (db)] Error from TOC entry 1180; 1259 47400859 TABLE tmp_importacao_socio postgres
  6291. pg_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.  
  6303. pg_restore: creating TABLE "public.tmp_socio"
  6304. pg_restore: [archiver (db)] Error from TOC entry 1181; 1259 47400862 TABLE tmp_socio postgres
  6305. pg_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.  
  6314. pg_restore: creating TABLE "public.troco"
  6315. pg_restore: [archiver (db)] Error from TOC entry 1182; 1259 47400865 TABLE troco postgres
  6316. pg_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.  
  6329. pg_restore: creating SEQUENCE "public.troco_seq_troco_seq"
  6330. pg_restore: [archiver (db)] Error from TOC entry 1183; 1259 47400870 SEQUENCE troco_seq_troco_seq postgres
  6331. pg_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.  
  6341. pg_restore: creating SEQUENCE OWNED BY "public.troco_seq_troco_seq"
  6342. pg_restore: creating TABLE "public.usuario"
  6343. pg_restore: [archiver (db)] Error from TOC entry 1184; 1259 47400872 TABLE usuario postgres
  6344. pg_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.  
  6363. pg_restore: creating SEQUENCE "public.usuario_seq_usuario_seq"
  6364. pg_restore: [archiver (db)] Error from TOC entry 1185; 1259 47400879 SEQUENCE usuario_seq_usuario_seq postgres
  6365. pg_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.  
  6375. pg_restore: creating SEQUENCE OWNED BY "public.usuario_seq_usuario_seq"
  6376. pg_restore: creating TABLE "public.usuario_tipo"
  6377. pg_restore: [archiver (db)] Error from TOC entry 1186; 1259 47400881 TABLE usuario_tipo postgres
  6378. pg_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.  
  6388. pg_restore: creating SEQUENCE "public.usuario_tipo_seq_usuario_tipo_seq"
  6389. pg_restore: [archiver (db)] Error from TOC entry 1187; 1259 47400886 SEQUENCE usuario_tipo_seq_usuario_tipo_seq postgres
  6390. pg_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.  
  6400. pg_restore: creating SEQUENCE OWNED BY "public.usuario_tipo_seq_usuario_tipo_seq"
  6401. pg_restore: creating TABLE "public.vinculo"
  6402. pg_restore: [archiver (db)] Error from TOC entry 1188; 1259 47400888 TABLE vinculo postgres
  6403. pg_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.  
  6413. pg_restore: creating SEQUENCE "public.vinculo_seq_vinculo_seq"
  6414. pg_restore: [archiver (db)] Error from TOC entry 1189; 1259 47400892 SEQUENCE vinculo_seq_vinculo_seq postgres
  6415. pg_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.  
  6425. pg_restore: creating SEQUENCE OWNED BY "public.vinculo_seq_vinculo_seq"
  6426. pg_restore: creating TABLE "public.voucher"
  6427. pg_restore: [archiver (db)] Error from TOC entry 1190; 1259 47400894 TABLE voucher postgres
  6428. pg_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.  
  6449. pg_restore: creating DEFAULT "public.acesso seq_acesso"
  6450. pg_restore: creating DEFAULT "public.acesso_historico seq_acesso_historico"
  6451. pg_restore: creating DEFAULT "public.assento seq_assento"
  6452. pg_restore: creating DEFAULT "public.baixa seq_baixa"
  6453. pg_restore: creating DEFAULT "public.bilheteria seq_bilheteria"
  6454. pg_restore: creating DEFAULT "public.boleto_macro seq_boleto_macro"
  6455. pg_restore: creating DEFAULT "public.cadeira seq_cadeira"
  6456. pg_restore: creating DEFAULT "public.camarote seq_camarote"
  6457. pg_restore: creating DEFAULT "public.catraca seq_catraca"
  6458. pg_restore: creating DEFAULT "public.clube seq_clube"
  6459. pg_restore: creating DEFAULT "public.cobranca seq_cobranca"
  6460. pg_restore: creating DEFAULT "public.cobranca_retorno seq_cobranca_retorno"
  6461. pg_restore: creating DEFAULT "public.cobranca_titulo seq_cobranca_titulo"
  6462. pg_restore: creating DEFAULT "public.cobranca_titulo_item seq_cobranca_titulo_item"
  6463. pg_restore: creating DEFAULT "public.competicao seq_competicao"
  6464. pg_restore: creating DEFAULT "public.competicao_edicao seq_competicao_edicao"
  6465. pg_restore: creating DEFAULT "public.dne seq_dne"
  6466. pg_restore: creating DEFAULT "public.escolaridade seq_escolaridade"
  6467. pg_restore: creating DEFAULT "public.estado seq_estado"
  6468. pg_restore: creating DEFAULT "public.evento seq_evento"
  6469. pg_restore: creating DEFAULT "public.evento_local seq_evento_local"
  6470. pg_restore: creating DEFAULT "public.evento_objetivo seq_evento_objetivo"
  6471. pg_restore: creating DEFAULT "public.evento_produto seq_evento_produto"
  6472. pg_restore: creating DEFAULT "public.faixa_salarial seq_faixa_salarial"
  6473. pg_restore: creating DEFAULT "public.forma_pagamento seq_forma_pagamento"
  6474. pg_restore: creating DEFAULT "public.ingresso seq_ingresso"
  6475. pg_restore: creating DEFAULT "public.instituicao_financeira seq_instituicao_financeira"
  6476. pg_restore: creating DEFAULT "public.meio_pagamento seq_meio_pagamento"
  6477. pg_restore: creating DEFAULT "public.menu seq_menu"
  6478. pg_restore: creating DEFAULT "public.movimento seq_movimento"
  6479. pg_restore: creating DEFAULT "public.movimento_cobranca seq_movimento_cobranca"
  6480. pg_restore: creating DEFAULT "public.movimento_item seq_movimento_item"
  6481. pg_restore: creating DEFAULT "public.movimento_pagamento seq_movimento_pagamento"
  6482. pg_restore: creating DEFAULT "public.objeto seq_objeto"
  6483. pg_restore: creating DEFAULT "public.obs_matricula seq_obs_matricula"
  6484. pg_restore: creating DEFAULT "public.obs_matricula matricula"
  6485. pg_restore: creating DEFAULT "public.pais seq_pais"
  6486. pg_restore: creating DEFAULT "public.perfil seq_perfil"
  6487. pg_restore: creating DEFAULT "public.perfil_objeto seq_perfil_objeto"
  6488. pg_restore: creating DEFAULT "public.pessoa seq_pessoa"
  6489. pg_restore: creating DEFAULT "public.pessoa_dados_pagamento seq_pessoa_dados_pagamento"
  6490. pg_restore: creating DEFAULT "public.pessoa_vinculo seq_pessoa_vinculo"
  6491. pg_restore: creating DEFAULT "public.plano_pgto seq_plano_pgto"
  6492. pg_restore: creating DEFAULT "public.portao seq_portao"
  6493. pg_restore: creating DEFAULT "public.produto seq_produto"
  6494. pg_restore: creating DEFAULT "public.produto_catraca seq_produto_catraca"
  6495. pg_restore: creating DEFAULT "public.produto_classe seq_produto_classe"
  6496. pg_restore: creating DEFAULT "public.produto_configuracao seq_produto_configuracao"
  6497. pg_restore: creating DEFAULT "public.produto_contrato seq_produto_contrato"
  6498. pg_restore: creating DEFAULT "public.produto_escolinha_turma seq_produto_escolinha_turma"
  6499. pg_restore: creating DEFAULT "public.produto_plano_pgto seq_produto_plano_pgto"
  6500. pg_restore: creating DEFAULT "public.produto_taxa seq_produto_taxa"
  6501. pg_restore: creating DEFAULT "public.profissao seq_profissao"
  6502. pg_restore: creating DEFAULT "public.remessa seq_remessa"
  6503. pg_restore: creating DEFAULT "public.remessa_item seq_remessa_item"
  6504. pg_restore: creating DEFAULT "public.renda_familiar seq_renda_familiar"
  6505. pg_restore: creating DEFAULT "public.sangria seq_sangria"
  6506. pg_restore: creating DEFAULT "public.sessao seq_sessao"
  6507. pg_restore: creating DEFAULT "public.sessao_evento_produto seq_sessao_evento_produto"
  6508. pg_restore: creating DEFAULT "public.setor seq_setor"
  6509. pg_restore: creating DEFAULT "public.taxa seq_taxa"
  6510. pg_restore: creating DEFAULT "public.troco seq_troco"
  6511. pg_restore: creating DEFAULT "public.usuario seq_usuario"
  6512. pg_restore: creating DEFAULT "public.usuario_tipo seq_usuario_tipo"
  6513. pg_restore: creating DEFAULT "public.vinculo seq_vinculo"
  6514. pg_restore: processing data for table "public.acesso"
  6515. pg_restore: [archiver (db)] Error from TOC entry 6602; 0 47400346 TABLE DATA acesso postgres
  6516. pg_restore: [archiver (db)] COPY failed for table "acesso": ERROR:  duplicate key value violates unique constraint "acesso_pkey"
  6517. DETAIL:  Key (seq_acesso)=(5596) already exists.
  6518. CONTEXT:  COPY acesso, line 1
  6519. pg_restore: processing data for table "public.acesso_historico"
  6520. pg_restore: [archiver (db)] Error from TOC entry 6603; 0 47400350 TABLE DATA acesso_historico postgres
  6521. pg_restore: [archiver (db)] COPY failed for table "acesso_historico": ERROR:  duplicate key value violates unique constraint "acesso_historico_pkey"
  6522. DETAIL:  Key (seq_acesso_historico)=(2775) already exists.
  6523. CONTEXT:  COPY acesso_historico, line 1
  6524. pg_restore: processing data for table "public.assento"
  6525. pg_restore: processing data for table "public.baixa"
  6526. pg_restore: [archiver (db)] Error from TOC entry 6608; 0 47400368 TABLE DATA baixa postgres
  6527. pg_restore: [archiver (db)] COPY failed for table "baixa": ERROR:  duplicate key value violates unique constraint "baixa_pkey"
  6528. DETAIL:  Key (seq_baixa)=(1) already exists.
  6529. CONTEXT:  COPY baixa, line 1
  6530. pg_restore: processing data for table "public.bilheteria"
  6531. pg_restore: [archiver (db)] Error from TOC entry 6610; 0 47400376 TABLE DATA bilheteria postgres
  6532. pg_restore: [archiver (db)] COPY failed for table "bilheteria": ERROR:  duplicate key value violates unique constraint "seq_bilheteria"
  6533. DETAIL:  Key (seq_bilheteria)=(1) already exists.
  6534. CONTEXT:  COPY bilheteria, line 1
  6535. pg_restore: processing data for table "public.boleto_macro"
  6536. pg_restore: [archiver (db)] Error from TOC entry 6612; 0 47400385 TABLE DATA boleto_macro postgres
  6537. pg_restore: [archiver (db)] COPY failed for table "boleto_macro": ERROR:  duplicate key value violates unique constraint "boleto_macro_pkey"
  6538. DETAIL:  Key (seq_boleto_macro)=(1) already exists.
  6539. CONTEXT:  COPY boleto_macro, line 1
  6540. pg_restore: processing data for table "public.cadeira"
  6541. pg_restore: [archiver (db)] Error from TOC entry 6614; 0 47400390 TABLE DATA cadeira postgres
  6542. pg_restore: [archiver (db)] COPY failed for table "cadeira": ERROR:  duplicate key value violates unique constraint "seq_cadeira"
  6543. DETAIL:  Key (seq_cadeira)=(1) already exists.
  6544. CONTEXT:  COPY cadeira, line 1
  6545. pg_restore: processing data for table "public.camarote"
  6546. pg_restore: [archiver (db)] Error from TOC entry 6616; 0 47400399 TABLE DATA camarote postgres
  6547. pg_restore: [archiver (db)] COPY failed for table "camarote": ERROR:  duplicate key value violates unique constraint "seq_camarote"
  6548. DETAIL:  Key (seq_camarote)=(3) already exists.
  6549. CONTEXT:  COPY camarote, line 2
  6550. pg_restore: processing data for table "public.cartao"
  6551. pg_restore: processing data for table "public.catraca"
  6552. pg_restore: [archiver (db)] Error from TOC entry 6620; 0 47400412 TABLE DATA catraca postgres
  6553. pg_restore: [archiver (db)] COPY failed for table "catraca": ERROR:  duplicate key value violates unique constraint "seq_catraca"
  6554. DETAIL:  Key (seq_catraca)=(3) already exists.
  6555. CONTEXT:  COPY catraca, line 1
  6556. pg_restore: processing data for table "public.ci_sessions"
  6557. pg_restore: [archiver (db)] Error from TOC entry 6622; 0 47400418 TABLE DATA ci_sessions postgres
  6558. pg_restore: [archiver (db)] COPY failed for table "ci_sessions": ERROR:  duplicate key value violates unique constraint "ci_sessions_pkey"
  6559. DETAIL:  Key (session_id)=(3a6077b85042964b4b2ef9e1746467a7) already exists.
  6560. CONTEXT:  COPY ci_sessions, line 1
  6561. pg_restore: processing data for table "public.clube"
  6562. pg_restore: [archiver (db)] Error from TOC entry 6623; 0 47400427 TABLE DATA clube postgres
  6563. pg_restore: [archiver (db)] COPY failed for table "clube": ERROR:  duplicate key value violates unique constraint "seq_clube"
  6564. DETAIL:  Key (seq_clube)=(1) already exists.
  6565. CONTEXT:  COPY clube, line 1
  6566. pg_restore: processing data for table "public.cobranca"
  6567. pg_restore: processing data for table "public.cobranca_retorno"
  6568. pg_restore: [archiver (db)] Error from TOC entry 6626; 0 47400441 TABLE DATA cobranca_retorno postgres
  6569. pg_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.  
  6572. pg_restore: processing data for table "public.cobranca_titulo"
  6573. pg_restore: [archiver (db)] Error from TOC entry 6629; 0 47400450 TABLE DATA cobranca_titulo postgres
  6574. pg_restore: [archiver (db)] COPY failed for table "cobranca_titulo": ERROR:  duplicate key value violates unique constraint "seq_cobranca_titulo"
  6575. DETAIL:  Key (seq_cobranca_titulo)=(67) already exists.
  6576. CONTEXT:  COPY cobranca_titulo, line 64
  6577. pg_restore: processing data for table "public.cobranca_titulo_item"
  6578. pg_restore: [archiver (db)] Error from TOC entry 6630; 0 47400457 TABLE DATA cobranca_titulo_item postgres
  6579. pg_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"
  6580. DETAIL:  Key (seq_movimento_cobranca)=(54200) is not present in table "movimento_cobranca".
  6581. pg_restore: processing data for table "public.competencia"
  6582. pg_restore: [archiver (db)] Error from TOC entry 6633; 0 47400465 TABLE DATA competencia postgres
  6583. pg_restore: [archiver (db)] COPY failed for table "competencia": ERROR:  duplicate key value violates unique constraint "competencia_pkey"
  6584. DETAIL:  Key (competencia)=(0390) already exists.
  6585. CONTEXT:  COPY competencia, line 1
  6586. pg_restore: processing data for table "public.competicao"
  6587. pg_restore: [archiver (db)] Error from TOC entry 6634; 0 47400472 TABLE DATA competicao postgres
  6588. pg_restore: [archiver (db)] COPY failed for table "competicao": ERROR:  duplicate key value violates unique constraint "seq_competicao"
  6589. DETAIL:  Key (seq_competicao)=(1) already exists.
  6590. CONTEXT:  COPY competicao, line 1
  6591. pg_restore: processing data for table "public.competicao_edicao"
  6592. pg_restore: [archiver (db)] Error from TOC entry 6635; 0 47400480 TABLE DATA competicao_edicao postgres
  6593. pg_restore: [archiver (db)] COPY failed for table "competicao_edicao": ERROR:  duplicate key value violates unique constraint "seq_competicao_edicao"
  6594. DETAIL:  Key (seq_competicao_edicao)=(2) already exists.
  6595. CONTEXT:  COPY competicao_edicao, line 1
  6596. pg_restore: processing data for table "public.conta"
  6597. pg_restore: [archiver (db)] Error from TOC entry 6638; 0 47400492 TABLE DATA conta postgres
  6598. pg_restore: [archiver (db)] COPY failed for table "conta": ERROR:  duplicate key value violates unique constraint "conta_pkey"
  6599. DETAIL:  Key (seq_conta)=(4) already exists.
  6600. CONTEXT:  COPY conta, line 1
  6601. pg_restore: processing data for table "public.dbf_cartoes_ecnh"
  6602. pg_restore: processing data for table "public.dbf_pessoas_ecnh"
  6603. pg_restore: processing data for table "public.dne"
  6604. pg_restore: [archiver (db)] Error from TOC entry 6641; 0 47400512 TABLE DATA dne postgres
  6605. pg_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.  
  6608. pg_restore: processing data for table "public.escolaridade"
  6609. pg_restore: [archiver (db)] Error from TOC entry 6643; 0 47400517 TABLE DATA escolaridade postgres
  6610. pg_restore: [archiver (db)] COPY failed for table "escolaridade": ERROR:  duplicate key value violates unique constraint "escolaridade_pkey"
  6611. DETAIL:  Key (seq_escolaridade)=(1) already exists.
  6612. CONTEXT:  COPY escolaridade, line 1
  6613. pg_restore: processing data for table "public.estado"
  6614. pg_restore: [archiver (db)] Error from TOC entry 6645; 0 47400522 TABLE DATA estado postgres
  6615. pg_restore: [archiver (db)] COPY failed for table "estado": ERROR:  duplicate key value violates unique constraint "estado_pkey"
  6616. DETAIL:  Key (seq_estado)=(1) already exists.
  6617. CONTEXT:  COPY estado, line 1
  6618. pg_restore: processing data for table "public.evento"
  6619. pg_restore: [archiver (db)] Error from TOC entry 6647; 0 47400527 TABLE DATA evento postgres
  6620. pg_restore: [archiver (db)] COPY failed for table "evento": ERROR:  relation "evento" does not exist
  6621. LINE 1: SELECT (select max(coalesce(even_ref,0)) + 1 from evento)
  6622.                                                           ^
  6623. QUERY:  SELECT (select max(coalesce(even_ref,0)) + 1 from evento)
  6624. CONTEXT:  PL/pgSQL function public.fnc_carrega_even_ref() line 3 at assignment
  6625. pg_restore: processing data for table "public.evento_local"
  6626. pg_restore: [archiver (db)] Error from TOC entry 6648; 0 47400532 TABLE DATA evento_local postgres
  6627. pg_restore: [archiver (db)] COPY failed for table "evento_local": ERROR:  duplicate key value violates unique constraint "seq_evento_local"
  6628. DETAIL:  Key (seq_evento_local)=(1) already exists.
  6629. CONTEXT:  COPY evento_local, line 1
  6630. pg_restore: processing data for table "public.evento_objetivo"
  6631. pg_restore: processing data for table "public.evento_produto"
  6632. pg_restore: processing data for table "public.faixa_salarial"
  6633. pg_restore: [archiver (db)] Error from TOC entry 6655; 0 47400561 TABLE DATA faixa_salarial postgres
  6634. pg_restore: [archiver (db)] COPY failed for table "faixa_salarial": ERROR:  duplicate key value violates unique constraint "faixa_salarial_pkey"
  6635. DETAIL:  Key (seq_faixa_salarial)=(1) already exists.
  6636. CONTEXT:  COPY faixa_salarial, line 1
  6637. pg_restore: processing data for table "public.forma_pagamento"
  6638. pg_restore: [archiver (db)] Error from TOC entry 6657; 0 47400569 TABLE DATA forma_pagamento postgres
  6639. pg_restore: [archiver (db)] COPY failed for table "forma_pagamento": ERROR:  duplicate key value violates unique constraint "seq_forma_pagamento"
  6640. DETAIL:  Key (seq_forma_pagamento)=(1) already exists.
  6641. CONTEXT:  COPY forma_pagamento, line 1
  6642. pg_restore: processing data for table "public.ingresso"
  6643. pg_restore: processing data for table "public.ingresso_numero"
  6644. pg_restore: [archiver (db)] Error from TOC entry 6660; 0 47400584 TABLE DATA ingresso_numero postgres
  6645. pg_restore: [archiver (db)] COPY failed for table "ingresso_numero": ERROR:  duplicate key value violates unique constraint "ingresso_numero_pkey"
  6646. DETAIL:  Key (ingresso_numero)=(10000000024812) already exists.
  6647. CONTEXT:  COPY ingresso_numero, line 1
  6648. pg_restore: processing data for table "public.instituicao_financeira"
  6649. pg_restore: [archiver (db)] Error from TOC entry 6662; 0 47400590 TABLE DATA instituicao_financeira postgres
  6650. pg_restore: [archiver (db)] COPY failed for table "instituicao_financeira": ERROR:  duplicate key value violates unique constraint "instituicao_financeira_seq_instituicao_financeira"
  6651. DETAIL:  Key (seq_instituicao_financeira)=(1) already exists.
  6652. CONTEXT:  COPY instituicao_financeira, line 1
  6653. pg_restore: processing data for table "public.liberacao"
  6654. pg_restore: processing data for table "public.liberacao_historico"
  6655. pg_restore: [archiver (db)] Error from TOC entry 6666; 0 47400603 TABLE DATA liberacao_historico postgres
  6656. pg_restore: [archiver (db)] COPY failed for table "liberacao_historico": ERROR:  duplicate key value violates unique constraint "seq_liberacao_historico_pkey"
  6657. DETAIL:  Key (seq_liberacao_historico)=(1) already exists.
  6658. CONTEXT:  COPY liberacao_historico, line 1
  6659. pg_restore: processing data for table "public.matricula"
  6660. pg_restore: [archiver (db)] Error from TOC entry 6667; 0 47400608 TABLE DATA matricula postgres
  6661. pg_restore: [archiver (db)] COPY failed for table "matricula": ERROR:  duplicate key value violates unique constraint "matricula_pkey"
  6662. DETAIL:  Key (matricula)=(1711) already exists.
  6663. CONTEXT:  COPY matricula, line 1
  6664. pg_restore: processing data for table "public.meio_pagamento"
  6665. pg_restore: [archiver (db)] Error from TOC entry 6671; 0 47400622 TABLE DATA meio_pagamento postgres
  6666. pg_restore: [archiver (db)] COPY failed for table "meio_pagamento": ERROR:  duplicate key value violates unique constraint "seq_meio_pagamento"
  6667. DETAIL:  Key (seq_meio_pagamento)=(1) already exists.
  6668. CONTEXT:  COPY meio_pagamento, line 1
  6669. pg_restore: processing data for table "public.menu"
  6670. pg_restore: [archiver (db)] Error from TOC entry 6673; 0 47400629 TABLE DATA menu postgres
  6671. pg_restore: [archiver (db)] COPY failed for table "menu": ERROR:  duplicate key value violates unique constraint "menu_pkey"
  6672. DETAIL:  Key (seq_menu)=(4) already exists.
  6673. CONTEXT:  COPY menu, line 1
  6674. pg_restore: processing data for table "public.movimento"
  6675. pg_restore: [archiver (db)] Error from TOC entry 6675; 0 47400635 TABLE DATA movimento postgres
  6676. pg_restore: [archiver (db)] COPY failed for table "movimento": ERROR:  duplicate key value violates unique constraint "seq_movimento"
  6677. DETAIL:  Key (seq_movimento)=(55896) already exists.
  6678. CONTEXT:  COPY movimento, line 4511
  6679. pg_restore: processing data for table "public.movimento_cobranca"
  6680. pg_restore: [archiver (db)] Error from TOC entry 6668; 0 47400614 TABLE DATA movimento_cobranca postgres
  6681. pg_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"
  6682. DETAIL:  Key (matricula)=(2281) is not present in table "matricula".
  6683. pg_restore: processing data for table "public.movimento_item"
  6684. pg_restore: [archiver (db)] Error from TOC entry 6676; 0 47400640 TABLE DATA movimento_item postgres
  6685. pg_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"
  6686. DETAIL:  Key (seq_movimento_cobranca)=(54200) is not present in table "movimento_cobranca".
  6687. pg_restore: processing data for table "public.movimento_pagamento"
  6688. pg_restore: [archiver (db)] Error from TOC entry 6678; 0 47400646 TABLE DATA movimento_pagamento postgres
  6689. pg_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"
  6690. DETAIL:  Key (seq_movimento)=(51513) is not present in table "movimento".
  6691. pg_restore: processing data for table "public.objeto"
  6692. pg_restore: [archiver (db)] Error from TOC entry 6681; 0 47400654 TABLE DATA objeto postgres
  6693. pg_restore: [archiver (db)] COPY failed for table "objeto": ERROR:  duplicate key value violates unique constraint "seq_objeto"
  6694. DETAIL:  Key (seq_objeto)=(4) already exists.
  6695. CONTEXT:  COPY objeto, line 1
  6696. pg_restore: processing data for table "public.obs_matricula"
  6697. pg_restore: processing data for table "public.pais"
  6698. pg_restore: [archiver (db)] Error from TOC entry 6686; 0 47400672 TABLE DATA pais postgres
  6699. pg_restore: [archiver (db)] COPY failed for table "pais": ERROR:  duplicate key value violates unique constraint "pais_pkey"
  6700. DETAIL:  Key (seq_pais)=(1) already exists.
  6701. CONTEXT:  COPY pais, line 1
  6702. pg_restore: processing data for table "public.perfil"
  6703. pg_restore: [archiver (db)] Error from TOC entry 6688; 0 47400677 TABLE DATA perfil postgres
  6704. pg_restore: [archiver (db)] COPY failed for table "perfil": ERROR:  duplicate key value violates unique constraint "seq_perfil"
  6705. DETAIL:  Key (seq_perfil)=(1) already exists.
  6706. CONTEXT:  COPY perfil, line 1
  6707. pg_restore: processing data for table "public.perfil_objeto"
  6708. pg_restore: [archiver (db)] Error from TOC entry 6689; 0 47400681 TABLE DATA perfil_objeto postgres
  6709. pg_restore: [archiver (db)] COPY failed for table "perfil_objeto": ERROR:  duplicate key value violates unique constraint "seq_perfil_objeto"
  6710. DETAIL:  Key (seq_perfil_objeto)=(1) already exists.
  6711. CONTEXT:  COPY perfil_objeto, line 1
  6712. pg_restore: processing data for table "public.pessoa"
  6713. pg_restore: [archiver (db)] Error from TOC entry 6692; 0 47400690 TABLE DATA pessoa postgres
  6714. pg_restore: [archiver (db)] COPY failed for table "pessoa": ERROR:  duplicate key value violates unique constraint "seq_pessoa"
  6715. DETAIL:  Key (seq_pessoa)=(2368) already exists.
  6716. CONTEXT:  COPY pessoa, line 1
  6717. pg_restore: processing data for table "public.pessoa_dados_pagamento"
  6718. pg_restore: [archiver (db)] Error from TOC entry 6693; 0 47400709 TABLE DATA pessoa_dados_pagamento postgres
  6719. pg_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"
  6720. DETAIL:  Key (seq_pessoa)=(2663) is not present in table "pessoa".
  6721. pg_restore: processing data for table "public.pessoa_vinculo"
  6722. pg_restore: processing data for table "public.plano_pgto"
  6723. pg_restore: [archiver (db)] Error from TOC entry 6698; 0 47400723 TABLE DATA plano_pgto acbf
  6724. pg_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"
  6725. DETAIL:  Key (seq_produto)=(331) is not present in table "produto".
  6726. pg_restore: processing data for table "public.portao"
  6727. pg_restore: [archiver (db)] Error from TOC entry 6700; 0 47400729 TABLE DATA portao postgres
  6728. pg_restore: [archiver (db)] COPY failed for table "portao": ERROR:  duplicate key value violates unique constraint "seq_portao"
  6729. DETAIL:  Key (seq_portao)=(3) already exists.
  6730. CONTEXT:  COPY portao, line 1
  6731. pg_restore: processing data for table "public.produto"
  6732. pg_restore: [archiver (db)] Error from TOC entry 6702; 0 47400735 TABLE DATA produto postgres
  6733. pg_restore: [archiver (db)] COPY failed for table "produto": ERROR:  duplicate key value violates unique constraint "seq_produto"
  6734. DETAIL:  Key (seq_produto)=(1) already exists.
  6735. CONTEXT:  COPY produto, line 1
  6736. pg_restore: processing data for table "public.produto_catraca"
  6737. pg_restore: processing data for table "public.produto_classe"
  6738. pg_restore: [archiver (db)] Error from TOC entry 6705; 0 47400748 TABLE DATA produto_classe postgres
  6739. pg_restore: [archiver (db)] COPY failed for table "produto_classe": ERROR:  duplicate key value violates unique constraint "produto_classe_pkey"
  6740. DETAIL:  Key (seq_produto_classe)=(1) already exists.
  6741. CONTEXT:  COPY produto_classe, line 1
  6742. pg_restore: processing data for table "public.produto_configuracao"
  6743. pg_restore: [archiver (db)] Error from TOC entry 6707; 0 47400754 TABLE DATA produto_configuracao postgres
  6744. pg_restore: [archiver (db)] COPY failed for table "produto_configuracao": ERROR:  duplicate key value violates unique constraint "pk_produto_configuracao"
  6745. DETAIL:  Key (seq_produto_configuracao)=(1) already exists.
  6746. CONTEXT:  COPY produto_configuracao, line 1
  6747. pg_restore: processing data for table "public.produto_contrato"
  6748. pg_restore: [archiver (db)] Error from TOC entry 6709; 0 47400761 TABLE DATA produto_contrato postgres
  6749. pg_restore: [archiver (db)] COPY failed for table "produto_contrato": ERROR:  duplicate key value violates unique constraint "seq_produto_contrato"
  6750. DETAIL:  Key (seq_produto_contrato)=(1) already exists.
  6751. CONTEXT:  COPY produto_contrato, line 1
  6752. pg_restore: processing data for table "public.produto_escolinha_turma"
  6753. pg_restore: [archiver (db)] Error from TOC entry 6753; 0 49893175 TABLE DATA produto_escolinha_turma postgres
  6754. pg_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"
  6755. DETAIL:  Key (seq_produto)=(331) is not present in table "produto".
  6756. pg_restore: processing data for table "public.produto_plano_pgto"
  6757. pg_restore: [archiver (db)] Error from TOC entry 6711; 0 47400770 TABLE DATA produto_plano_pgto acbf
  6758. pg_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"
  6759. DETAIL:  Key (seq_plano_pgto)=(24) is not present in table "plano_pgto".
  6760. pg_restore: processing data for table "public.produto_taxa"
  6761. pg_restore: [archiver (db)] Error from TOC entry 6714; 0 47400778 TABLE DATA produto_taxa postgres
  6762. pg_restore: [archiver (db)] COPY failed for table "produto_taxa": ERROR:  duplicate key value violates unique constraint "seq_produto_taxa"
  6763. DETAIL:  Key (seq_produto_taxa)=(26) already exists.
  6764. CONTEXT:  COPY produto_taxa, line 1
  6765. pg_restore: processing data for table "public.profissao"
  6766. pg_restore: [archiver (db)] Error from TOC entry 6716; 0 47400788 TABLE DATA profissao postgres
  6767. pg_restore: [archiver (db)] COPY failed for table "profissao": ERROR:  duplicate key value violates unique constraint "seq_profissao"
  6768. DETAIL:  Key (seq_profissao)=(2) already exists.
  6769. CONTEXT:  COPY profissao, line 1
  6770. pg_restore: processing data for table "public.remessa"
  6771. pg_restore: [archiver (db)] Error from TOC entry 6718; 0 47400794 TABLE DATA remessa postgres
  6772. pg_restore: [archiver (db)] COPY failed for table "remessa": ERROR:  duplicate key value violates unique constraint "remessa_pkey"
  6773. DETAIL:  Key (seq_remessa)=(-1) already exists.
  6774. CONTEXT:  COPY remessa, line 1
  6775. pg_restore: processing data for table "public.remessa_item"
  6776. pg_restore: processing data for table "public.renda_familiar"
  6777. pg_restore: [archiver (db)] Error from TOC entry 6722; 0 47400804 TABLE DATA renda_familiar postgres
  6778. pg_restore: [archiver (db)] COPY failed for table "renda_familiar": ERROR:  duplicate key value violates unique constraint "renda_familiar_pkey"
  6779. DETAIL:  Key (seq_renda_familiar)=(1) already exists.
  6780. CONTEXT:  COPY renda_familiar, line 1
  6781. pg_restore: processing data for table "public.sangria"
  6782. pg_restore: processing data for table "public.sessao"
  6783. pg_restore: processing data for table "public.sessao_evento_produto"
  6784. pg_restore: processing data for table "public.setor"
  6785. pg_restore: [archiver (db)] Error from TOC entry 6736; 0 47400841 TABLE DATA setor postgres
  6786. pg_restore: [archiver (db)] COPY failed for table "setor": ERROR:  duplicate key value violates unique constraint "seq_setor"
  6787. DETAIL:  Key (seq_setor)=(1) already exists.
  6788. CONTEXT:  COPY setor, line 1
  6789. pg_restore: processing data for table "public.socio_tmp"
  6790. pg_restore: processing data for table "public.taxa"
  6791. pg_restore: [archiver (db)] Error from TOC entry 6739; 0 47400853 TABLE DATA taxa postgres
  6792. pg_restore: [archiver (db)] COPY failed for table "taxa": ERROR:  duplicate key value violates unique constraint "seq_taxa"
  6793. DETAIL:  Key (seq_taxa)=(5) already exists.
  6794. CONTEXT:  COPY taxa, line 4
  6795. pg_restore: processing data for table "public.tmp_importacao_socio"
  6796. pg_restore: processing data for table "public.tmp_socio"
  6797. pg_restore: processing data for table "public.troco"
  6798. pg_restore: processing data for table "public.usuario"
  6799. pg_restore: [archiver (db)] Error from TOC entry 6745; 0 47400872 TABLE DATA usuario postgres
  6800. pg_restore: [archiver (db)] COPY failed for table "usuario": ERROR:  duplicate key value violates unique constraint "seq_usuario"
  6801. DETAIL:  Key (seq_usuario)=(6) already exists.
  6802. CONTEXT:  COPY usuario, line 1
  6803. pg_restore: processing data for table "public.usuario_tipo"
  6804. pg_restore: [archiver (db)] Error from TOC entry 6747; 0 47400881 TABLE DATA usuario_tipo postgres
  6805. pg_restore: [archiver (db)] COPY failed for table "usuario_tipo": ERROR:  duplicate key value violates unique constraint "seq_usuario_tipo"
  6806. DETAIL:  Key (seq_usuario_tipo)=(1) already exists.
  6807. CONTEXT:  COPY usuario_tipo, line 1
  6808. pg_restore: processing data for table "public.vinculo"
  6809. pg_restore: [archiver (db)] Error from TOC entry 6749; 0 47400888 TABLE DATA vinculo postgres
  6810. pg_restore: [archiver (db)] COPY failed for table "vinculo": ERROR:  duplicate key value violates unique constraint "pk_vinculo"
  6811. DETAIL:  Key (seq_vinculo)=(1) already exists.
  6812. CONTEXT:  COPY vinculo, line 1
  6813. pg_restore: processing data for table "public.voucher"
  6814. pg_restore: executing SEQUENCE SET acesso_historico_seq_acesso_historico_seq
  6815. pg_restore: executing SEQUENCE SET acesso_seq_acesso_seq
  6816. pg_restore: executing SEQUENCE SET assento_seq_assento_seq
  6817. pg_restore: executing SEQUENCE SET baixa_seq_baixa_seq
  6818. pg_restore: executing SEQUENCE SET bilheteria_seq_bilheteria_seq
  6819. pg_restore: executing SEQUENCE SET boleto_macro_seq_boleto_macro_seq
  6820. pg_restore: executing SEQUENCE SET cadeira_seq_cadeira_seq_1
  6821. pg_restore: executing SEQUENCE SET camarote_seq_camarote_seq_1
  6822. pg_restore: executing SEQUENCE SET catraca_seq_catraca_seq
  6823. pg_restore: executing SEQUENCE SET clube_seq_clube_seq
  6824. pg_restore: executing SEQUENCE SET cobranca_retorno_seq_cobranca_retorno_seq_1
  6825. pg_restore: executing SEQUENCE SET cobranca_seq_cobranca_seq
  6826. pg_restore: executing SEQUENCE SET cobranca_titulo_item_seq_cobranca_titulo_item_seq_1
  6827. pg_restore: executing SEQUENCE SET cobranca_titulo_seq_cobranca_titulo_seq
  6828. pg_restore: executing SEQUENCE SET competicao_edicao_seq_competicao_edicao_seq
  6829. pg_restore: executing SEQUENCE SET competicao_seq_competicao_seq
  6830. pg_restore: executing SEQUENCE SET dne_seq_dne_seq
  6831. pg_restore: executing SEQUENCE SET escolaridade_seq_escolaridade_seq
  6832. pg_restore: executing SEQUENCE SET estado_seq_estado_seq
  6833. pg_restore: executing SEQUENCE SET evento_local_seq_evento_local_seq
  6834. pg_restore: executing SEQUENCE SET evento_objetivo_seq_evento_objetivo_seq
  6835. pg_restore: executing SEQUENCE SET evento_produto_seq_evento_produto_seq
  6836. pg_restore: executing SEQUENCE SET evento_seq_evento_seq
  6837. pg_restore: executing SEQUENCE SET faixa_salarial_seq_faixa_salarial_seq
  6838. pg_restore: executing SEQUENCE SET forma_pagamento_seq_forma_pagamento_seq
  6839. pg_restore: executing SEQUENCE SET ingresso_seq_ingresso_seq
  6840. pg_restore: executing SEQUENCE SET matricula_cobranca_seq_matricula_cobranca_seq
  6841. pg_restore: executing SEQUENCE SET matricula_matricula_seq
  6842. pg_restore: executing SEQUENCE SET meio_pagamento_seq_meio_pagamento_seq
  6843. pg_restore: executing SEQUENCE SET menu_seq_menu_seq
  6844. pg_restore: executing SEQUENCE SET movimento_item_seq_movimento_item_seq
  6845. pg_restore: executing SEQUENCE SET movimento_pagamento_seq_movimento_pagamento_seq
  6846. pg_restore: executing SEQUENCE SET movimento_seq_movimento_seq
  6847. pg_restore: executing SEQUENCE SET objeto_seq_objeto_seq
  6848. pg_restore: executing SEQUENCE SET obs_matricula_matricula_seq
  6849. pg_restore: executing SEQUENCE SET obs_matricula_seq_obs_matricula_seq
  6850. pg_restore: executing SEQUENCE SET pais_seq_pais_seq
  6851. pg_restore: executing SEQUENCE SET perfil_objeto_seq_perfil_objeto_seq
  6852. pg_restore: executing SEQUENCE SET perfil_seq_perfil_seq
  6853. pg_restore: executing SEQUENCE SET pessoa_dados_pagamento_seq_pessoa_dados_pagamento_seq
  6854. pg_restore: executing SEQUENCE SET pessoa_seq_pessoa_seq
  6855. pg_restore: executing SEQUENCE SET pessoa_vinculo_seq_pessoa_vinculo_seq
  6856. pg_restore: executing SEQUENCE SET plano_pgto_seq_plano_pgto_seq
  6857. pg_restore: executing SEQUENCE SET portao_seq_portao_seq_1
  6858. pg_restore: executing SEQUENCE SET produto_catraca_seq_produto_catraca_seq
  6859. pg_restore: executing SEQUENCE SET produto_classe_seq_produto_classe_seq
  6860. pg_restore: executing SEQUENCE SET produto_configuracao_seq_produto_configuracao_seq
  6861. pg_restore: executing SEQUENCE SET produto_contrato_seq_produto_contrato_seq_1
  6862. pg_restore: executing SEQUENCE SET produto_escolinha_turma_seq_produto_escolinha_turma_seq
  6863. pg_restore: executing SEQUENCE SET produto_plano_pgto_seq_produto_plano_pgto_seq
  6864. pg_restore: executing SEQUENCE SET produto_seq_produto_seq
  6865. pg_restore: executing SEQUENCE SET produto_taxa_seq_produto_taxa_seq
  6866. pg_restore: executing SEQUENCE SET profissao_seq_profissao_seq_1
  6867. pg_restore: executing SEQUENCE SET remessa_item_seq_remessa_item_seq
  6868. pg_restore: executing SEQUENCE SET remessa_seq_remessa_seq
  6869. pg_restore: executing SEQUENCE SET renda_familiar_seq_renda_familiar_seq
  6870. pg_restore: executing SEQUENCE SET sangria_seq_sangria_seq
  6871. pg_restore: executing SEQUENCE SET seq_cartao2
  6872. pg_restore: executing SEQUENCE SET seq_competencia
  6873. pg_restore: executing SEQUENCE SET seq_conta
  6874. pg_restore: executing SEQUENCE SET seq_ingresso_numero
  6875. pg_restore: executing SEQUENCE SET seq_instituicao_financeira
  6876. pg_restore: executing SEQUENCE SET seq_liberacao_historico
  6877. pg_restore: executing SEQUENCE SET seq_nosso_numero
  6878. pg_restore: executing SEQUENCE SET seq_seq_liberacao
  6879. pg_restore: executing SEQUENCE SET seq_voucher
  6880. pg_restore: executing SEQUENCE SET sessao_evento_produto_seq_sessao_evento_produto_seq
  6881. pg_restore: executing SEQUENCE SET sessao_seq_sessao_seq
  6882. pg_restore: executing SEQUENCE SET setor_seq_setor_seq_1
  6883. pg_restore: executing SEQUENCE SET taxa_seq_taxa_seq
  6884. pg_restore: executing SEQUENCE SET troco_seq_troco_seq
  6885. pg_restore: executing SEQUENCE SET usuario_seq_usuario_seq
  6886. pg_restore: executing SEQUENCE SET usuario_tipo_seq_usuario_tipo_seq
  6887. pg_restore: executing SEQUENCE SET vinculo_seq_vinculo_seq
  6888. pg_restore: creating CONSTRAINT "public.acesso_historico acesso_historico_pkey"
  6889. pg_restore: [archiver (db)] Error from TOC entry 6262; 2606 49604315 CONSTRAINT acesso_historico acesso_historico_pkey postgres
  6890. pg_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.  
  6896. pg_restore: creating CONSTRAINT "public.acesso acesso_pkey"
  6897. pg_restore: [archiver (db)] Error from TOC entry 6260; 2606 49604317 CONSTRAINT acesso acesso_pkey postgres
  6898. pg_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.  
  6904. pg_restore: creating CONSTRAINT "public.baixa baixa_pkey"
  6905. pg_restore: [archiver (db)] Error from TOC entry 6266; 2606 49604319 CONSTRAINT baixa baixa_pkey postgres
  6906. pg_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.  
  6912. pg_restore: creating CONSTRAINT "public.boleto_macro boleto_macro_pkey"
  6913. pg_restore: [archiver (db)] Error from TOC entry 6270; 2606 49604321 CONSTRAINT boleto_macro boleto_macro_pkey postgres
  6914. pg_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.  
  6920. pg_restore: creating CONSTRAINT "public.ci_sessions ci_sessions_pkey"
  6921. pg_restore: [archiver (db)] Error from TOC entry 6280; 2606 49604323 CONSTRAINT ci_sessions ci_sessions_pkey postgres
  6922. pg_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.  
  6928. pg_restore: creating CONSTRAINT "public.competencia competencia_pkey"
  6929. pg_restore: [archiver (db)] Error from TOC entry 6292; 2606 49604325 CONSTRAINT competencia competencia_pkey postgres
  6930. pg_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.  
  6936. pg_restore: creating CONSTRAINT "public.conta conta_pkey"
  6937. pg_restore: [archiver (db)] Error from TOC entry 6298; 2606 49604327 CONSTRAINT conta conta_pkey postgres
  6938. pg_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.  
  6944. pg_restore: creating CONSTRAINT "public.dne dne_pkey"
  6945. pg_restore: [archiver (db)] Error from TOC entry 6302; 2606 49604329 CONSTRAINT dne dne_pkey postgres
  6946. pg_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.  
  6952. pg_restore: creating CONSTRAINT "public.escolaridade escolaridade_pkey"
  6953. pg_restore: [archiver (db)] Error from TOC entry 6304; 2606 49604331 CONSTRAINT escolaridade escolaridade_pkey postgres
  6954. pg_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.  
  6960. pg_restore: creating CONSTRAINT "public.estado estado_pkey"
  6961. pg_restore: [archiver (db)] Error from TOC entry 6306; 2606 49604333 CONSTRAINT estado estado_pkey postgres
  6962. pg_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.  
  6968. pg_restore: creating CONSTRAINT "public.evento_objetivo evento_objetivo_pkey"
  6969. pg_restore: [archiver (db)] Error from TOC entry 6312; 2606 49604335 CONSTRAINT evento_objetivo evento_objetivo_pkey postgres
  6970. pg_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.  
  6976. pg_restore: creating CONSTRAINT "public.faixa_salarial faixa_salarial_pkey"
  6977. pg_restore: [archiver (db)] Error from TOC entry 6316; 2606 49604337 CONSTRAINT faixa_salarial faixa_salarial_pkey postgres
  6978. pg_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.  
  6984. pg_restore: creating CONSTRAINT "public.ingresso_numero ingresso_numero_pkey"
  6985. pg_restore: [archiver (db)] Error from TOC entry 6322; 2606 49604339 CONSTRAINT ingresso_numero ingresso_numero_pkey postgres
  6986. pg_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.  
  6992. pg_restore: creating CONSTRAINT "public.instituicao_financeira instituicao_financeira_seq_instituicao_financeira"
  6993. pg_restore: [archiver (db)] Error from TOC entry 6324; 2606 49604341 CONSTRAINT instituicao_financeira instituicao_financeira_seq_instituicao_financeira postgres
  6994. pg_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.  
  7000. pg_restore: creating CONSTRAINT "public.liberacao liberacao_pkey"
  7001. pg_restore: [archiver (db)] Error from TOC entry 6326; 2606 49604343 CONSTRAINT liberacao liberacao_pkey postgres
  7002. pg_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.  
  7008. pg_restore: creating CONSTRAINT "public.matricula matricula_pkey"
  7009. pg_restore: [archiver (db)] Error from TOC entry 6330; 2606 49604345 CONSTRAINT matricula matricula_pkey postgres
  7010. pg_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.  
  7016. pg_restore: creating CONSTRAINT "public.menu menu_pkey"
  7017. pg_restore: [archiver (db)] Error from TOC entry 6336; 2606 49604347 CONSTRAINT menu menu_pkey postgres
  7018. pg_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.  
  7024. pg_restore: creating CONSTRAINT "public.obs_matricula obs_matricula_pkey"
  7025. pg_restore: [archiver (db)] Error from TOC entry 6348; 2606 49604349 CONSTRAINT obs_matricula obs_matricula_pkey postgres
  7026. pg_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.  
  7032. pg_restore: creating CONSTRAINT "public.pais pais_pkey"
  7033. pg_restore: [archiver (db)] Error from TOC entry 6350; 2606 49604351 CONSTRAINT pais pais_pkey postgres
  7034. pg_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.  
  7040. pg_restore: creating CONSTRAINT "public.pessoa_dados_pagamento pessoa_dados_pagamento_pkey"
  7041. pg_restore: [archiver (db)] Error from TOC entry 6358; 2606 49604353 CONSTRAINT pessoa_dados_pagamento pessoa_dados_pagamento_pkey postgres
  7042. pg_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.  
  7048. pg_restore: creating CONSTRAINT "public.produto_configuracao pk_produto_configuracao"
  7049. pg_restore: [archiver (db)] Error from TOC entry 6372; 2606 49604355 CONSTRAINT produto_configuracao pk_produto_configuracao postgres
  7050. pg_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.  
  7056. pg_restore: creating CONSTRAINT "public.vinculo pk_vinculo"
  7057. pg_restore: [archiver (db)] Error from TOC entry 6404; 2606 49604357 CONSTRAINT vinculo pk_vinculo postgres
  7058. pg_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.  
  7064. pg_restore: creating CONSTRAINT "public.plano_pgto plano_pgto_pkey"
  7065. pg_restore: [archiver (db)] Error from TOC entry 6362; 2606 49604359 CONSTRAINT plano_pgto plano_pgto_pkey acbf
  7066. pg_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.  
  7072. pg_restore: creating CONSTRAINT "public.produto_classe produto_classe_pkey"
  7073. pg_restore: [archiver (db)] Error from TOC entry 6370; 2606 49604361 CONSTRAINT produto_classe produto_classe_pkey postgres
  7074. pg_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.  
  7080. pg_restore: creating CONSTRAINT "public.produto_plano_pgto produto_plano_pgto_pkey"
  7081. pg_restore: [archiver (db)] Error from TOC entry 6376; 2606 49604363 CONSTRAINT produto_plano_pgto produto_plano_pgto_pkey acbf
  7082. pg_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.  
  7088. pg_restore: creating CONSTRAINT "public.remessa_item remessa_item_pkey"
  7089. pg_restore: [archiver (db)] Error from TOC entry 6384; 2606 49604365 CONSTRAINT remessa_item remessa_item_pkey postgres
  7090. pg_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.  
  7096. pg_restore: creating CONSTRAINT "public.remessa remessa_pkey"
  7097. pg_restore: [archiver (db)] Error from TOC entry 6382; 2606 49604367 CONSTRAINT remessa remessa_pkey postgres
  7098. pg_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.  
  7104. pg_restore: creating CONSTRAINT "public.renda_familiar renda_familiar_pkey"
  7105. pg_restore: [archiver (db)] Error from TOC entry 6386; 2606 49604369 CONSTRAINT renda_familiar renda_familiar_pkey postgres
  7106. pg_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.  
  7112. pg_restore: creating CONSTRAINT "public.assento seq_assento"
  7113. pg_restore: [archiver (db)] Error from TOC entry 6264; 2606 49604371 CONSTRAINT assento seq_assento postgres
  7114. pg_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.  
  7120. pg_restore: creating CONSTRAINT "public.bilheteria seq_bilheteria"
  7121. pg_restore: [archiver (db)] Error from TOC entry 6268; 2606 49604373 CONSTRAINT bilheteria seq_bilheteria postgres
  7122. pg_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.  
  7128. pg_restore: creating CONSTRAINT "public.cadeira seq_cadeira"
  7129. pg_restore: [archiver (db)] Error from TOC entry 6272; 2606 49604375 CONSTRAINT cadeira seq_cadeira postgres
  7130. pg_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.  
  7136. pg_restore: creating CONSTRAINT "public.camarote seq_camarote"
  7137. pg_restore: [archiver (db)] Error from TOC entry 6274; 2606 49604377 CONSTRAINT camarote seq_camarote postgres
  7138. pg_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.  
  7144. pg_restore: creating CONSTRAINT "public.cartao seq_cartao"
  7145. pg_restore: [archiver (db)] Error from TOC entry 6276; 2606 49604379 CONSTRAINT cartao seq_cartao postgres
  7146. pg_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.  
  7152. pg_restore: creating CONSTRAINT "public.catraca seq_catraca"
  7153. pg_restore: [archiver (db)] Error from TOC entry 6278; 2606 49604381 CONSTRAINT catraca seq_catraca postgres
  7154. pg_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.  
  7160. pg_restore: creating CONSTRAINT "public.clube seq_clube"
  7161. pg_restore: [archiver (db)] Error from TOC entry 6282; 2606 49604383 CONSTRAINT clube seq_clube postgres
  7162. pg_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.  
  7168. pg_restore: creating CONSTRAINT "public.cobranca seq_cobranca"
  7169. pg_restore: [archiver (db)] Error from TOC entry 6284; 2606 49604385 CONSTRAINT cobranca seq_cobranca postgres
  7170. pg_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.  
  7176. pg_restore: creating CONSTRAINT "public.cobranca_retorno seq_cobranca_retorno"
  7177. pg_restore: [archiver (db)] Error from TOC entry 6286; 2606 49604387 CONSTRAINT cobranca_retorno seq_cobranca_retorno postgres
  7178. pg_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.  
  7184. pg_restore: creating CONSTRAINT "public.cobranca_titulo seq_cobranca_titulo"
  7185. pg_restore: [archiver (db)] Error from TOC entry 6288; 2606 49604389 CONSTRAINT cobranca_titulo seq_cobranca_titulo postgres
  7186. pg_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.  
  7192. pg_restore: creating CONSTRAINT "public.cobranca_titulo_item seq_cobranca_titulo_item"
  7193. pg_restore: [archiver (db)] Error from TOC entry 6290; 2606 49604391 CONSTRAINT cobranca_titulo_item seq_cobranca_titulo_item postgres
  7194. pg_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.  
  7200. pg_restore: creating CONSTRAINT "public.competicao seq_competicao"
  7201. pg_restore: [archiver (db)] Error from TOC entry 6294; 2606 49604393 CONSTRAINT competicao seq_competicao postgres
  7202. pg_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.  
  7208. pg_restore: creating CONSTRAINT "public.competicao_edicao seq_competicao_edicao"
  7209. pg_restore: [archiver (db)] Error from TOC entry 6296; 2606 49604395 CONSTRAINT competicao_edicao seq_competicao_edicao postgres
  7210. pg_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.  
  7216. pg_restore: creating CONSTRAINT "public.evento seq_evento"
  7217. pg_restore: [archiver (db)] Error from TOC entry 6308; 2606 49604397 CONSTRAINT evento seq_evento postgres
  7218. pg_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.  
  7224. pg_restore: creating CONSTRAINT "public.evento_local seq_evento_local"
  7225. pg_restore: [archiver (db)] Error from TOC entry 6310; 2606 49604399 CONSTRAINT evento_local seq_evento_local postgres
  7226. pg_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.  
  7232. pg_restore: creating CONSTRAINT "public.evento_produto seq_evento_produto"
  7233. pg_restore: [archiver (db)] Error from TOC entry 6314; 2606 49604401 CONSTRAINT evento_produto seq_evento_produto postgres
  7234. pg_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.  
  7240. pg_restore: creating CONSTRAINT "public.forma_pagamento seq_forma_pagamento"
  7241. pg_restore: [archiver (db)] Error from TOC entry 6318; 2606 49604403 CONSTRAINT forma_pagamento seq_forma_pagamento postgres
  7242. pg_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.  
  7248. pg_restore: creating CONSTRAINT "public.ingresso seq_ingresso"
  7249. pg_restore: [archiver (db)] Error from TOC entry 6320; 2606 49604405 CONSTRAINT ingresso seq_ingresso postgres
  7250. pg_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.  
  7256. pg_restore: creating CONSTRAINT "public.liberacao_historico seq_liberacao_historico_pkey"
  7257. pg_restore: [archiver (db)] Error from TOC entry 6328; 2606 49604407 CONSTRAINT liberacao_historico seq_liberacao_historico_pkey postgres
  7258. pg_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.  
  7264. pg_restore: creating CONSTRAINT "public.movimento_cobranca seq_matricula_cobranca"
  7265. pg_restore: [archiver (db)] Error from TOC entry 6332; 2606 49604409 CONSTRAINT movimento_cobranca seq_matricula_cobranca postgres
  7266. pg_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.  
  7272. pg_restore: creating CONSTRAINT "public.meio_pagamento seq_meio_pagamento"
  7273. pg_restore: [archiver (db)] Error from TOC entry 6334; 2606 49604411 CONSTRAINT meio_pagamento seq_meio_pagamento postgres
  7274. pg_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.  
  7280. pg_restore: creating CONSTRAINT "public.movimento seq_movimento"
  7281. pg_restore: [archiver (db)] Error from TOC entry 6340; 2606 49604413 CONSTRAINT movimento seq_movimento postgres
  7282. pg_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.  
  7288. pg_restore: creating CONSTRAINT "public.movimento_item seq_movimento_item"
  7289. pg_restore: [archiver (db)] Error from TOC entry 6342; 2606 49604415 CONSTRAINT movimento_item seq_movimento_item postgres
  7290. pg_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.  
  7296. pg_restore: creating CONSTRAINT "public.movimento_pagamento seq_movimento_pagamento"
  7297. pg_restore: [archiver (db)] Error from TOC entry 6344; 2606 49604417 CONSTRAINT movimento_pagamento seq_movimento_pagamento postgres
  7298. pg_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.  
  7304. pg_restore: creating CONSTRAINT "public.objeto seq_objeto"
  7305. pg_restore: [archiver (db)] Error from TOC entry 6346; 2606 49604419 CONSTRAINT objeto seq_objeto postgres
  7306. pg_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.  
  7312. pg_restore: creating CONSTRAINT "public.perfil seq_perfil"
  7313. pg_restore: [archiver (db)] Error from TOC entry 6352; 2606 49604421 CONSTRAINT perfil seq_perfil postgres
  7314. pg_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.  
  7320. pg_restore: creating CONSTRAINT "public.perfil_objeto seq_perfil_objeto"
  7321. pg_restore: [archiver (db)] Error from TOC entry 6354; 2606 49604423 CONSTRAINT perfil_objeto seq_perfil_objeto postgres
  7322. pg_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.  
  7328. pg_restore: creating CONSTRAINT "public.pessoa seq_pessoa"
  7329. pg_restore: [archiver (db)] Error from TOC entry 6356; 2606 49604425 CONSTRAINT pessoa seq_pessoa postgres
  7330. pg_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.  
  7336. pg_restore: creating CONSTRAINT "public.pessoa_vinculo seq_pessoa_vinculo"
  7337. pg_restore: [archiver (db)] Error from TOC entry 6360; 2606 49604427 CONSTRAINT pessoa_vinculo seq_pessoa_vinculo postgres
  7338. pg_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.  
  7344. pg_restore: creating CONSTRAINT "public.portao seq_portao"
  7345. pg_restore: [archiver (db)] Error from TOC entry 6364; 2606 49604429 CONSTRAINT portao seq_portao postgres
  7346. pg_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.  
  7352. pg_restore: creating CONSTRAINT "public.produto seq_produto"
  7353. pg_restore: [archiver (db)] Error from TOC entry 6366; 2606 49604431 CONSTRAINT produto seq_produto postgres
  7354. pg_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.  
  7360. pg_restore: creating CONSTRAINT "public.produto_catraca seq_produto_catraca"
  7361. pg_restore: [archiver (db)] Error from TOC entry 6368; 2606 49604433 CONSTRAINT produto_catraca seq_produto_catraca postgres
  7362. pg_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.  
  7368. pg_restore: creating CONSTRAINT "public.produto_contrato seq_produto_contrato"
  7369. pg_restore: [archiver (db)] Error from TOC entry 6374; 2606 49604435 CONSTRAINT produto_contrato seq_produto_contrato postgres
  7370. pg_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.  
  7376. pg_restore: creating CONSTRAINT "public.produto_taxa seq_produto_taxa"
  7377. pg_restore: [archiver (db)] Error from TOC entry 6378; 2606 49604437 CONSTRAINT produto_taxa seq_produto_taxa postgres
  7378. pg_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.  
  7384. pg_restore: creating CONSTRAINT "public.profissao seq_profissao"
  7385. pg_restore: [archiver (db)] Error from TOC entry 6380; 2606 49604439 CONSTRAINT profissao seq_profissao postgres
  7386. pg_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.  
  7392. pg_restore: creating CONSTRAINT "public.sangria seq_sangria"
  7393. pg_restore: [archiver (db)] Error from TOC entry 6388; 2606 49604441 CONSTRAINT sangria seq_sangria postgres
  7394. pg_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.  
  7400. pg_restore: creating CONSTRAINT "public.sessao seq_sessao"
  7401. pg_restore: [archiver (db)] Error from TOC entry 6390; 2606 49604443 CONSTRAINT sessao seq_sessao postgres
  7402. pg_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.  
  7408. pg_restore: creating CONSTRAINT "public.sessao_evento_produto seq_sessao_evento_produto"
  7409. pg_restore: [archiver (db)] Error from TOC entry 6392; 2606 49604445 CONSTRAINT sessao_evento_produto seq_sessao_evento_produto postgres
  7410. pg_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.  
  7416. pg_restore: creating CONSTRAINT "public.setor seq_setor"
  7417. pg_restore: [archiver (db)] Error from TOC entry 6394; 2606 49604447 CONSTRAINT setor seq_setor postgres
  7418. pg_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.  
  7424. pg_restore: creating CONSTRAINT "public.taxa seq_taxa"
  7425. pg_restore: [archiver (db)] Error from TOC entry 6396; 2606 49604449 CONSTRAINT taxa seq_taxa postgres
  7426. pg_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.  
  7432. pg_restore: creating CONSTRAINT "public.troco seq_troco"
  7433. pg_restore: [archiver (db)] Error from TOC entry 6398; 2606 49604451 CONSTRAINT troco seq_troco postgres
  7434. pg_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.  
  7440. pg_restore: creating CONSTRAINT "public.usuario seq_usuario"
  7441. pg_restore: [archiver (db)] Error from TOC entry 6400; 2606 49604453 CONSTRAINT usuario seq_usuario postgres
  7442. pg_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.  
  7448. pg_restore: creating CONSTRAINT "public.usuario_tipo seq_usuario_tipo"
  7449. pg_restore: [archiver (db)] Error from TOC entry 6402; 2606 49604455 CONSTRAINT usuario_tipo seq_usuario_tipo postgres
  7450. pg_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.  
  7456. pg_restore: creating CONSTRAINT "public.voucher voucher_pkey"
  7457. pg_restore: [archiver (db)] Error from TOC entry 6406; 2606 49604457 CONSTRAINT voucher voucher_pkey postgres
  7458. pg_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.  
  7464. pg_restore: creating INDEX "public.dne_cep_idx"
  7465. pg_restore: [archiver (db)] Error from TOC entry 6299; 1259 49606689 INDEX dne_cep_idx postgres
  7466. pg_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.  
  7471. pg_restore: creating INDEX "public.dne_localidade_uf_idx"
  7472. pg_restore: [archiver (db)] Error from TOC entry 6300; 1259 49606690 INDEX dne_localidade_uf_idx postgres
  7473. pg_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.  
  7478. pg_restore: creating INDEX "public.fki_"
  7479. pg_restore: [archiver (db)] Error from TOC entry 6337; 1259 49606691 INDEX fki_ postgres
  7480. pg_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.  
  7485. pg_restore: creating INDEX "public.fki_usuario_movimento"
  7486. pg_restore: [archiver (db)] Error from TOC entry 6338; 1259 49606692 INDEX fki_usuario_movimento postgres
  7487. pg_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.  
  7492. pg_restore: creating TRIGGER "public.evento trg_carrega_even_ref"
  7493. pg_restore: [archiver (db)] Error from TOC entry 6481; 2620 49606693 TRIGGER evento trg_carrega_even_ref postgres
  7494. pg_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.  
  7499. pg_restore: creating TRIGGER "public.cobranca_titulo trg_cobranca_titulo_bu"
  7500. pg_restore: [archiver (db)] Error from TOC entry 6480; 2620 49606694 TRIGGER cobranca_titulo trg_cobranca_titulo_bu postgres
  7501. pg_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.  
  7506. pg_restore: creating TRIGGER "public.sessao trg_depois_inserir_sessao"
  7507. pg_restore: [archiver (db)] Error from TOC entry 6484; 2620 49606695 TRIGGER sessao trg_depois_inserir_sessao postgres
  7508. pg_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.  
  7513. pg_restore: creating TRIGGER "public.movimento trg_estorna_movimento"
  7514. pg_restore: [archiver (db)] Error from TOC entry 6482; 2620 49606696 TRIGGER movimento trg_estorna_movimento postgres
  7515. pg_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.  
  7520. pg_restore: creating TRIGGER "public.movimento_item trg_gera_ingressos"
  7521. pg_restore: [archiver (db)] Error from TOC entry 6483; 2620 49606697 TRIGGER movimento_item trg_gera_ingressos postgres
  7522. pg_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.  
  7525. ALTER TABLE public.movimento_item DISABLE TRIGGER trg_gera_ingressos;
  7526.  
  7527.  
  7528.  
  7529. pg_restore: creating FK CONSTRAINT "public.ingresso assento_ingresso_fk"
  7530. pg_restore: [archiver (db)] Error from TOC entry 6426; 2606 49606698 FK CONSTRAINT ingresso assento_ingresso_fk postgres
  7531. pg_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.  
  7537. pg_restore: creating FK CONSTRAINT "public.sessao bilheteria_sessao_fk"
  7538. pg_restore: [archiver (db)] Error from TOC entry 6470; 2606 49606703 FK CONSTRAINT sessao bilheteria_sessao_fk postgres
  7539. pg_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.  
  7545. pg_restore: creating FK CONSTRAINT "public.matricula cadeira_matricula_fk"
  7546. pg_restore: [archiver (db)] Error from TOC entry 6433; 2606 49606708 FK CONSTRAINT matricula cadeira_matricula_fk postgres
  7547. pg_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.  
  7553. pg_restore: creating FK CONSTRAINT "public.matricula camarote_matricula_fk"
  7554. pg_restore: [archiver (db)] Error from TOC entry 6432; 2606 49606713 FK CONSTRAINT matricula camarote_matricula_fk postgres
  7555. pg_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.  
  7561. pg_restore: creating FK CONSTRAINT "public.ingresso cartao_ingresso_fk"
  7562. pg_restore: [archiver (db)] Error from TOC entry 6425; 2606 49606718 FK CONSTRAINT ingresso cartao_ingresso_fk postgres
  7563. pg_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.  
  7569. pg_restore: creating FK CONSTRAINT "public.produto_catraca catraca_produto_catraca_fk"
  7570. pg_restore: [archiver (db)] Error from TOC entry 6462; 2606 49606723 FK CONSTRAINT produto_catraca catraca_produto_catraca_fk postgres
  7571. pg_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.  
  7577. pg_restore: creating FK CONSTRAINT "public.evento clube_evento_fk"
  7578. pg_restore: [archiver (db)] Error from TOC entry 6419; 2606 49606728 FK CONSTRAINT evento clube_evento_fk postgres
  7579. pg_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.  
  7585. pg_restore: creating FK CONSTRAINT "public.cobranca_titulo cobranca_retorno_cobranca_titulo_fk"
  7586. pg_restore: [archiver (db)] Error from TOC entry 6411; 2606 49606733 FK CONSTRAINT cobranca_titulo cobranca_retorno_cobranca_titulo_fk postgres
  7587. pg_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.  
  7593. pg_restore: creating FK CONSTRAINT "public.cobranca_titulo_item cobranca_titulo_cobranca_titulo_item_fk"
  7594. pg_restore: [archiver (db)] Error from TOC entry 6413; 2606 49606738 FK CONSTRAINT cobranca_titulo_item cobranca_titulo_cobranca_titulo_item_fk postgres
  7595. pg_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.  
  7601. pg_restore: creating FK CONSTRAINT "public.cobranca_titulo_item cobranca_titulo_item_seq_movimento_cobranca_fkey"
  7602. pg_restore: [archiver (db)] Error from TOC entry 6412; 2606 49606743 FK CONSTRAINT cobranca_titulo_item cobranca_titulo_item_seq_movimento_cobranca_fkey postgres
  7603. pg_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.  
  7609. pg_restore: creating FK CONSTRAINT "public.competicao_edicao competicao_competicao_edicao_fk"
  7610. pg_restore: [archiver (db)] Error from TOC entry 6414; 2606 49606748 FK CONSTRAINT competicao_edicao competicao_competicao_edicao_fk postgres
  7611. pg_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.  
  7617. pg_restore: creating FK CONSTRAINT "public.evento_produto evento_evento_produto_fk"
  7618. pg_restore: [archiver (db)] Error from TOC entry 6421; 2606 49606753 FK CONSTRAINT evento_produto evento_evento_produto_fk postgres
  7619. pg_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.  
  7625. pg_restore: creating FK CONSTRAINT "public.evento evento_local_evento_fk"
  7626. pg_restore: [archiver (db)] Error from TOC entry 6418; 2606 49606758 FK CONSTRAINT evento evento_local_evento_fk postgres
  7627. pg_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.  
  7633. pg_restore: creating FK CONSTRAINT "public.evento evento_objetivo"
  7634. pg_restore: [archiver (db)] Error from TOC entry 6417; 2606 49606763 FK CONSTRAINT evento evento_objetivo postgres
  7635. pg_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.  
  7641. pg_restore: creating FK CONSTRAINT "public.sessao_evento_produto evento_produto_sessao_evento_produto_fk"
  7642. pg_restore: [archiver (db)] Error from TOC entry 6473; 2606 49606768 FK CONSTRAINT sessao_evento_produto evento_produto_sessao_evento_produto_fk postgres
  7643. pg_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.  
  7649. pg_restore: creating FK CONSTRAINT "public.evento evento_seq_competicao_edicao_fkey"
  7650. pg_restore: [archiver (db)] Error from TOC entry 6416; 2606 49606773 FK CONSTRAINT evento evento_seq_competicao_edicao_fkey postgres
  7651. pg_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.  
  7657. pg_restore: creating FK CONSTRAINT "public.conta fk_conta_conta_pai"
  7658. pg_restore: [archiver (db)] Error from TOC entry 6415; 2606 49606778 FK CONSTRAINT conta fk_conta_conta_pai postgres
  7659. pg_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.  
  7665. pg_restore: creating FK CONSTRAINT "public.produto fk_produto_configuracao"
  7666. pg_restore: [archiver (db)] Error from TOC entry 6460; 2606 49606783 FK CONSTRAINT produto fk_produto_configuracao postgres
  7667. pg_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.  
  7673. pg_restore: creating FK CONSTRAINT "public.meio_pagamento forma_pagamento_meio_pagamento_fk"
  7674. pg_restore: [archiver (db)] Error from TOC entry 6437; 2606 49606788 FK CONSTRAINT meio_pagamento forma_pagamento_meio_pagamento_fk postgres
  7675. pg_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.  
  7681. pg_restore: creating FK CONSTRAINT "public.pessoa_dados_pagamento forma_pagamento_pessoa_dados_pagamento_fk"
  7682. pg_restore: [archiver (db)] Error from TOC entry 6454; 2606 49606793 FK CONSTRAINT pessoa_dados_pagamento forma_pagamento_pessoa_dados_pagamento_fk postgres
  7683. pg_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.  
  7689. pg_restore: creating FK CONSTRAINT "public.ingresso ingresso_ingresso_fk"
  7690. pg_restore: [archiver (db)] Error from TOC entry 6424; 2606 49606798 FK CONSTRAINT ingresso ingresso_ingresso_fk postgres
  7691. pg_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.  
  7697. pg_restore: creating FK CONSTRAINT "public.ingresso ingresso_movimento_item_fk"
  7698. pg_restore: [archiver (db)] Error from TOC entry 6423; 2606 49606803 FK CONSTRAINT ingresso ingresso_movimento_item_fk postgres
  7699. pg_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.  
  7705. pg_restore: creating FK CONSTRAINT "public.pessoa_dados_pagamento instituicao_financeira_pessoa_dados_pagamento_fk"
  7706. pg_restore: [archiver (db)] Error from TOC entry 6453; 2606 49606808 FK CONSTRAINT pessoa_dados_pagamento instituicao_financeira_pessoa_dados_pagamento_fk postgres
  7707. pg_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.  
  7713. pg_restore: creating FK CONSTRAINT "public.liberacao liberacao_seq_produto_fk"
  7714. pg_restore: [archiver (db)] Error from TOC entry 6427; 2606 49606813 FK CONSTRAINT liberacao liberacao_seq_produto_fk postgres
  7715. pg_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.  
  7721. pg_restore: creating FK CONSTRAINT "public.cartao matricula_cartao_fk"
  7722. pg_restore: [archiver (db)] Error from TOC entry 6408; 2606 49606818 FK CONSTRAINT cartao matricula_cartao_fk postgres
  7723. pg_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.  
  7729. pg_restore: creating FK CONSTRAINT "public.movimento_cobranca matricula_matricula_cobranca_fk"
  7730. pg_restore: [archiver (db)] Error from TOC entry 6436; 2606 49606823 FK CONSTRAINT movimento_cobranca matricula_matricula_cobranca_fk postgres
  7731. pg_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.  
  7737. pg_restore: creating FK CONSTRAINT "public.obs_matricula matricula_obs_matricula_fk"
  7738. pg_restore: [archiver (db)] Error from TOC entry 6448; 2606 49606828 FK CONSTRAINT obs_matricula matricula_obs_matricula_fk postgres
  7739. pg_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.  
  7745. pg_restore: creating FK CONSTRAINT "public.matricula matricula_plano_pgto"
  7746. pg_restore: [archiver (db)] Error from TOC entry 6431; 2606 49606833 FK CONSTRAINT matricula matricula_plano_pgto postgres
  7747. pg_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.  
  7753. pg_restore: creating FK CONSTRAINT "public.menu menu_objeto_fkey"
  7754. pg_restore: [archiver (db)] Error from TOC entry 6438; 2606 49606838 FK CONSTRAINT menu menu_objeto_fkey postgres
  7755. pg_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.  
  7761. pg_restore: creating FK CONSTRAINT "public.movimento_cobranca movimento_cobranca_seq_pessoa_fkey"
  7762. pg_restore: [archiver (db)] Error from TOC entry 6435; 2606 49606843 FK CONSTRAINT movimento_cobranca movimento_cobranca_seq_pessoa_fkey postgres
  7763. pg_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.  
  7769. pg_restore: creating FK CONSTRAINT "public.movimento_item movimento_item_seq_movimento_cobranca_fkey"
  7770. pg_restore: [archiver (db)] Error from TOC entry 6444; 2606 49606848 FK CONSTRAINT movimento_item movimento_item_seq_movimento_cobranca_fkey postgres
  7771. pg_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.  
  7777. pg_restore: creating FK CONSTRAINT "public.movimento_item movimento_item_seq_sessao_evento_produto_fkey"
  7778. pg_restore: [archiver (db)] Error from TOC entry 6443; 2606 49606853 FK CONSTRAINT movimento_item movimento_item_seq_sessao_evento_produto_fkey postgres
  7779. pg_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.  
  7785. pg_restore: creating FK CONSTRAINT "public.movimento_item movimento_movimento_item_fk"
  7786. pg_restore: [archiver (db)] Error from TOC entry 6442; 2606 49606858 FK CONSTRAINT movimento_item movimento_movimento_item_fk postgres
  7787. pg_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.  
  7793. pg_restore: creating FK CONSTRAINT "public.movimento_pagamento movimento_movimento_pagamento_fk"
  7794. pg_restore: [archiver (db)] Error from TOC entry 6447; 2606 49606863 FK CONSTRAINT movimento_pagamento movimento_movimento_pagamento_fk postgres
  7795. pg_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.  
  7801. pg_restore: creating FK CONSTRAINT "public.movimento movimento_operador_fkey"
  7802. pg_restore: [archiver (db)] Error from TOC entry 6440; 2606 49606868 FK CONSTRAINT movimento movimento_operador_fkey postgres
  7803. pg_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.  
  7809. pg_restore: creating FK CONSTRAINT "public.movimento_pagamento movimento_pagamento_seq_forma_pagamento_fkey"
  7810. pg_restore: [archiver (db)] Error from TOC entry 6446; 2606 49606873 FK CONSTRAINT movimento_pagamento movimento_pagamento_seq_forma_pagamento_fkey postgres
  7811. pg_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.  
  7817. pg_restore: creating FK CONSTRAINT "public.movimento_pagamento movimento_pagamento_seq_meio_pagamento_fkey"
  7818. pg_restore: [archiver (db)] Error from TOC entry 6445; 2606 49606878 FK CONSTRAINT movimento_pagamento movimento_pagamento_seq_meio_pagamento_fkey postgres
  7819. pg_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.  
  7825. pg_restore: creating FK CONSTRAINT "public.movimento movimento_seq_pessoa_fkey"
  7826. pg_restore: [archiver (db)] Error from TOC entry 6439; 2606 49606883 FK CONSTRAINT movimento movimento_seq_pessoa_fkey postgres
  7827. pg_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.  
  7833. pg_restore: creating FK CONSTRAINT "public.perfil_objeto objeto_perfil_objeto_fk"
  7834. pg_restore: [archiver (db)] Error from TOC entry 6450; 2606 49606888 FK CONSTRAINT perfil_objeto objeto_perfil_objeto_fk postgres
  7835. pg_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.  
  7841. pg_restore: creating FK CONSTRAINT "public.perfil_objeto perfil_perfil_objeto_fk"
  7842. pg_restore: [archiver (db)] Error from TOC entry 6449; 2606 49606893 FK CONSTRAINT perfil_objeto perfil_perfil_objeto_fk postgres
  7843. pg_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.  
  7849. pg_restore: creating FK CONSTRAINT "public.usuario perfil_usuario_fk"
  7850. pg_restore: [archiver (db)] Error from TOC entry 6478; 2606 49606898 FK CONSTRAINT usuario perfil_usuario_fk postgres
  7851. pg_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.  
  7857. pg_restore: creating FK CONSTRAINT "public.matricula pessoa_dados_pagamento_matricula"
  7858. pg_restore: [archiver (db)] Error from TOC entry 6430; 2606 49606903 FK CONSTRAINT matricula pessoa_dados_pagamento_matricula postgres
  7859. pg_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.  
  7865. pg_restore: creating FK CONSTRAINT "public.ingresso pessoa_ingresso_fk"
  7866. pg_restore: [archiver (db)] Error from TOC entry 6422; 2606 49606908 FK CONSTRAINT ingresso pessoa_ingresso_fk postgres
  7867. pg_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.  
  7873. pg_restore: creating FK CONSTRAINT "public.matricula pessoa_matricula_fk"
  7874. pg_restore: [archiver (db)] Error from TOC entry 6429; 2606 49606913 FK CONSTRAINT matricula pessoa_matricula_fk postgres
  7875. pg_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.  
  7881. pg_restore: creating FK CONSTRAINT "public.pessoa_dados_pagamento pessoa_pessoa_dados_pagamento_fk"
  7882. pg_restore: [archiver (db)] Error from TOC entry 6452; 2606 49606918 FK CONSTRAINT pessoa_dados_pagamento pessoa_pessoa_dados_pagamento_fk postgres
  7883. pg_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.  
  7889. pg_restore: creating FK CONSTRAINT "public.usuario pessoa_usuario_fk"
  7890. pg_restore: [archiver (db)] Error from TOC entry 6477; 2606 49606923 FK CONSTRAINT usuario pessoa_usuario_fk postgres
  7891. pg_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.  
  7897. pg_restore: creating FK CONSTRAINT "public.pessoa_vinculo pessoa_vinculo_pessoa_fk"
  7898. pg_restore: [archiver (db)] Error from TOC entry 6456; 2606 49606928 FK CONSTRAINT pessoa_vinculo pessoa_vinculo_pessoa_fk postgres
  7899. pg_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.  
  7905. pg_restore: creating FK CONSTRAINT "public.pessoa_vinculo pessoa_vinculo_vinculo_fk"
  7906. pg_restore: [archiver (db)] Error from TOC entry 6455; 2606 49606933 FK CONSTRAINT pessoa_vinculo pessoa_vinculo_vinculo_fk postgres
  7907. pg_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.  
  7913. pg_restore: creating FK CONSTRAINT "public.plano_pgto plano_pgto_seq_produto_fkey"
  7914. pg_restore: [archiver (db)] Error from TOC entry 6457; 2606 49606938 FK CONSTRAINT plano_pgto plano_pgto_seq_produto_fkey acbf
  7915. pg_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.  
  7921. pg_restore: creating FK CONSTRAINT "public.catraca portao_catraca_fk"
  7922. pg_restore: [archiver (db)] Error from TOC entry 6409; 2606 49606943 FK CONSTRAINT catraca portao_catraca_fk postgres
  7923. pg_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.  
  7929. pg_restore: creating FK CONSTRAINT "public.produto produto_contrato_produto_fk"
  7930. pg_restore: [archiver (db)] Error from TOC entry 6459; 2606 49606948 FK CONSTRAINT produto produto_contrato_produto_fk postgres
  7931. pg_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.  
  7937. pg_restore: creating FK CONSTRAINT "public.evento_produto produto_evento_produto_fk"
  7938. pg_restore: [archiver (db)] Error from TOC entry 6420; 2606 49606953 FK CONSTRAINT evento_produto produto_evento_produto_fk postgres
  7939. pg_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.  
  7945. pg_restore: creating FK CONSTRAINT "public.matricula produto_matricula_fk"
  7946. pg_restore: [archiver (db)] Error from TOC entry 6428; 2606 49606958 FK CONSTRAINT matricula produto_matricula_fk postgres
  7947. pg_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.  
  7953. pg_restore: creating FK CONSTRAINT "public.produto_plano_pgto produto_plano_pgto_seq_plano_pgto_fkey"
  7954. pg_restore: [archiver (db)] Error from TOC entry 6464; 2606 49606963 FK CONSTRAINT produto_plano_pgto produto_plano_pgto_seq_plano_pgto_fkey acbf
  7955. pg_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.  
  7961. pg_restore: creating FK CONSTRAINT "public.produto_plano_pgto produto_plano_pgto_seq_produto_taxa_fkey"
  7962. pg_restore: [archiver (db)] Error from TOC entry 6463; 2606 49606968 FK CONSTRAINT produto_plano_pgto produto_plano_pgto_seq_produto_taxa_fkey acbf
  7963. pg_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.  
  7969. pg_restore: creating FK CONSTRAINT "public.produto_catraca produto_produto_catraca_fk"
  7970. pg_restore: [archiver (db)] Error from TOC entry 6461; 2606 49606973 FK CONSTRAINT produto_catraca produto_produto_catraca_fk postgres
  7971. pg_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.  
  7977. pg_restore: creating FK CONSTRAINT "public.produto_taxa produto_produto_taxa_fk"
  7978. pg_restore: [archiver (db)] Error from TOC entry 6466; 2606 49606978 FK CONSTRAINT produto_taxa produto_produto_taxa_fk postgres
  7979. pg_restore: [archiver (db)] could not execute query: ERROR:  insert or update on table "produto_taxa" violates foreign key constraint "produto_produto_taxa_fk"
  7980. DETAIL:  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.  
  7986. pg_restore: creating FK CONSTRAINT "public.produto_escolinha_turma produto_produto_taxa_fk"
  7987. pg_restore: [archiver (db)] Error from TOC entry 6479; 2606 49893180 FK CONSTRAINT produto_escolinha_turma produto_produto_taxa_fk postgres
  7988. pg_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.  
  7994. pg_restore: creating FK CONSTRAINT "public.movimento_cobranca produto_taxa_matricula_cobranca_fk"
  7995. pg_restore: [archiver (db)] Error from TOC entry 6434; 2606 49606983 FK CONSTRAINT movimento_cobranca produto_taxa_matricula_cobranca_fk postgres
  7996. pg_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.  
  8002. pg_restore: creating FK CONSTRAINT "public.movimento_item produto_taxa_movimento_item_fk"
  8003. pg_restore: [archiver (db)] Error from TOC entry 6441; 2606 49606988 FK CONSTRAINT movimento_item produto_taxa_movimento_item_fk postgres
  8004. pg_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.  
  8010. pg_restore: creating FK CONSTRAINT "public.pessoa profissao_pessoa_fk"
  8011. pg_restore: [archiver (db)] Error from TOC entry 6451; 2606 49606993 FK CONSTRAINT pessoa profissao_pessoa_fk postgres
  8012. pg_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.  
  8018. pg_restore: creating FK CONSTRAINT "public.cobranca_titulo remessa_cobranca_titulo_fk"
  8019. pg_restore: [archiver (db)] Error from TOC entry 6410; 2606 49606998 FK CONSTRAINT cobranca_titulo remessa_cobranca_titulo_fk postgres
  8020. pg_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.  
  8026. pg_restore: creating FK CONSTRAINT "public.sangria sessao_sangria_fk"
  8027. pg_restore: [archiver (db)] Error from TOC entry 6468; 2606 49607003 FK CONSTRAINT sangria sessao_sangria_fk postgres
  8028. pg_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.  
  8034. pg_restore: creating FK CONSTRAINT "public.sessao_evento_produto sessao_sessao_evento_produto_fk"
  8035. pg_restore: [archiver (db)] Error from TOC entry 6472; 2606 49607008 FK CONSTRAINT sessao_evento_produto sessao_sessao_evento_produto_fk postgres
  8036. pg_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.  
  8042. pg_restore: creating FK CONSTRAINT "public.troco sessao_troco_fk"
  8043. pg_restore: [archiver (db)] Error from TOC entry 6475; 2606 49607013 FK CONSTRAINT troco sessao_troco_fk postgres
  8044. pg_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.  
  8050. pg_restore: creating FK CONSTRAINT "public.assento setor_assento_fk"
  8051. pg_restore: [archiver (db)] Error from TOC entry 6407; 2606 49607018 FK CONSTRAINT assento setor_assento_fk postgres
  8052. pg_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.  
  8058. pg_restore: creating FK CONSTRAINT "public.portao setor_portao_fk"
  8059. pg_restore: [archiver (db)] Error from TOC entry 6458; 2606 49607023 FK CONSTRAINT portao setor_portao_fk postgres
  8060. pg_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.  
  8066. pg_restore: creating FK CONSTRAINT "public.produto_taxa taxa_produto_taxa_fk"
  8067. pg_restore: [archiver (db)] Error from TOC entry 6465; 2606 49607028 FK CONSTRAINT produto_taxa taxa_produto_taxa_fk postgres
  8068. pg_restore: [archiver (db)] could not execute query: ERROR:  insert or update on table "produto_taxa" violates foreign key constraint "taxa_produto_taxa_fk"
  8069. DETAIL:  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.  
  8075. pg_restore: creating FK CONSTRAINT "public.sangria usuario_sangria_fk"
  8076. pg_restore: [archiver (db)] Error from TOC entry 6467; 2606 49607033 FK CONSTRAINT sangria usuario_sangria_fk postgres
  8077. pg_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.  
  8083. pg_restore: creating FK CONSTRAINT "public.sessao_evento_produto usuario_sessao_evento_produto_fk"
  8084. pg_restore: [archiver (db)] Error from TOC entry 6471; 2606 49607038 FK CONSTRAINT sessao_evento_produto usuario_sessao_evento_produto_fk postgres
  8085. pg_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.  
  8091. pg_restore: creating FK CONSTRAINT "public.sessao usuario_sessao_fk"
  8092. pg_restore: [archiver (db)] Error from TOC entry 6469; 2606 49607043 FK CONSTRAINT sessao usuario_sessao_fk postgres
  8093. pg_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.  
  8099. pg_restore: creating FK CONSTRAINT "public.usuario usuario_tipo_usuario_fk"
  8100. pg_restore: [archiver (db)] Error from TOC entry 6476; 2606 49607048 FK CONSTRAINT usuario usuario_tipo_usuario_fk postgres
  8101. pg_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.  
  8107. pg_restore: creating FK CONSTRAINT "public.troco usuario_troco_fk"
  8108. pg_restore: [archiver (db)] Error from TOC entry 6474; 2606 49607053 FK CONSTRAINT troco usuario_troco_fk postgres
  8109. pg_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.  
  8115. WARNING: errors ignored on restore: 394
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement