TABLE videos
(
  id integer NOT NULL,
  description text,
  name text,
  author text,
  tags text,
  license character(1),
  width integer,
  height integer,
  length integer,
  dateinsertion date,
  extension text,
  bitrate integer,
  framerate double precision,
  duration text,
  standard text,
  video bytea,
  thumbnail bytea,
  CONSTRAINT videos_pkey PRIMARY KEY (id)
)


A tupla que queria consultar o campo "video" tem 55MB


Antonio

On 8/6/07, Leandro Guimarães Faria Corcete DUTRA <[EMAIL PROTECTED]> wrote:
>
> RFC 1855!
>
>
> Em Seg, 2007-08-06 às 10:34 -0300, Antonio Nascimento escreveu:
> > SO: Windows XP
> >
> > EXPLAIN ANALYZE select * from videos where id =4
> > "Index Scan using videos_pkey on videos  (cost=0.00..8.27 rows=1
> > width=325) (actual time=0.023..0.027 rows=1 loops=1)"
> > "  Index Cond: (id = 4)"
> > "Total runtime: 0.106 ms"
>
>         O custo é baixíßimo, visto que retorna apenas uma tupla.
>
>
> > Contudo me expressei mal quando disse "trava"... Testei um bytea com
> > 55MB e quando rodei o select aparece o seguinte:
> >
> > ERROR: out of memory
> > SQL state: 53200
> > Detail: Failed on request of size 268435456.
>
>         Por acaso eßa tabela inclui algum objeto enorme?
>
>         Por favor, cole a estrutura da tabela e quaisquer logs relevantes
> — em
> texto simples, respondendo após o texto respondido!
>
> --
> Leandro Guimarães Faria Corcete DUTRA  <[EMAIL PROTECTED]>
> Atech Fundação Aplicação de Tecnologias Críticas  SP, BR
> msnim:[EMAIL PROTECTED]
> skype:leandro.gfc.dutra?chat     +55 (11) 3040 7300 r151
>
>
> - - - - -
>
> Politica de Privacidade: Esta mensagem pode conter informacao confidencial
> e/ou privilegiada. Se voce nao for o destinatario ou a pessoa autorizada a
> receber esta mensagem, nao pode usar, copiar ou divulgar as informacoes nela
> contidas ou tomar qualquer acao baseada nessas informacoes. Se voce recebeu
> esta mensagem por engano, por favor avise imediatamente o remetente,
> respondendo o e-mail e em seguida apague-o. Agradecemos sua cooperacao.
>
> Privacy Policy: 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 or take any action based on
> this message or any information herein. If you have received this message in
> error, please advise the sender immediately by reply e-mail and delete this
> message. Thank you for your cooperation.
> _______________________________________________
> pgbr-geral mailing list
> pgbr-geral@listas.postgresql.org.br
> https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
>
_______________________________________________
pgbr-geral mailing list
pgbr-geral@listas.postgresql.org.br
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a