Em Sex, Fevereiro 8, 2008 13:38, Diana Adamatti escreveu: > Pessoal, > estou tentando criar diversas tabelas no Postgres 8.2 via script SQL. > Em 10 tabelas, consegui realizar a criação sem problemas. Contudo, > três delas deram o seguinte erro: > > ERROR: out of memory > SQL state: 53200 > Detail: Failed on request of size 1048576. > > > Eu alterei os parâmetros do postgresql.conf referentes a memória, mas > não adiantou: > > shared_buffers = 2048MB # min 128kB or > max_connections*16kB > # (change requires restart) > temp_buffers = 2048MB # min 800kB > #max_prepared_transactions = 5 # can be 0 or more > # (change requires restart) > # Note: increasing max_prepared_transactions costs ~600 bytes of shared memory > # per transaction slot, plus lock space (see max_locks_per_transaction). > work_mem = 256MB # min 64kB > maintenance_work_mem = 256MB # min 1MB > max_stack_depth = 512MB # min 100kB > > As tabelas têm um número de registro grande e têm tamanho (em sql) de 26Mb. > Alguém tem alguma sugestão sobre o porque do erro? O que devo alterar?
Vc esta usando linux ou windows? Seu computador tem qto de memoria total? Vc tentou criar a tabela pelo psql (psql -d database -f script -U user)? Depois seria bom que vc revesse suas configuracoes de memória [1]. [1] http://www.postgresql.org.br/Documenta%C3%A7%C3%A3o?action=AttachFile&do=get&target=postgresql.conf.pdf AVISO DE CONFIDENCIALIDADE! Esta mensagem pode conter informacao confidencial e/ou privilegiada. Se voce nao for o destinatario ou a pessoa autorizada a receber esta mensagem, nao devera utilizar, copiar, alterar, divulgar a informacao nela contida ou tomar qualquer acao baseada nessas informacoes. Se voce recebeu esta mensagem por engano, por favor avise imediatamente o emitente,respondendo ao e-mail e em seguida apague-o. Agradecemos sua cooperacao. This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose, change or take any action based on this message or any information herein. If you have received this message in error, please notify the sender immediately by replying this e-mail and delete this message. Thank you for your cooperation. _______________________________________________ pgbr-geral mailing list [email protected] https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
