Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 572CB6329E2 for ; Wed, 24 Mar 2010 19:39:37 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 54069-08 for ; Wed, 24 Mar 2010 22:39:26 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-gw0-f46.google.com (mail-gw0-f46.google.com [74.125.83.46]) by mail.postgresql.org (Postfix) with ESMTP id B500F632517 for ; Wed, 24 Mar 2010 19:39:26 -0300 (ADT) Received: by gwaa18 with SMTP id a18so2193858gwa.19 for ; Wed, 24 Mar 2010 15:39:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:cc:content-type; bh=Nbx3QF3/n6OqDfDiG3WG3JaVmk4s+MhaQu77WAroybM=; b=KashrqufAm8pthyy7ZyvG2+S51c72f6TAVXxwnXBEzzWV6heRioXJbJviJ7urDnGBN RaBZNTFGZoBHNeiN8C02W5iz2x9wZ7tCDJe/aFOVYvRVTVecbGepPKPIejJe1nOdbi+d 4yhVTdzYIYINdBFfxOUyGblIKnECnSuh6XxU8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=HtO8ciEM6O6a9eZCbP/GiAAELG3m0xqq3/5kgzJYa0npf3GDMJ2vgh+jEFaSHXWnm6 nXtfs1Brx1DsFUkInOYsVtl1k2BYzAHGDEaq9zS97ksvDOkcbdG1D8kS4Jo2H47rZzJi gW+dPvVPx6CSRN9Ii9WGVZV1c5i3ANIUgRaI8= MIME-Version: 1.0 Received: by 10.150.228.13 with HTTP; Wed, 24 Mar 2010 15:39:25 -0700 (PDT) In-Reply-To: <4BAA8D72.5030808@iol.ie> References: <4a92b0c31003241448r3efc833ep7036d2ba90f8d39f@mail.gmail.com> <4BAA8A3A.2060403@iol.ie> <4a92b0c31003241501s7582c8d0h6b57cde596b9b613@mail.gmail.com> <4BAA8D72.5030808@iol.ie> Date: Wed, 24 Mar 2010 16:39:25 -0600 Received: by 10.151.93.17 with SMTP id v17mr382994ybl.101.1269470365346; Wed, 24 Mar 2010 15:39:25 -0700 (PDT) Message-ID: <4a92b0c31003241539i69266a2q6c0bbfd620861ac2@mail.gmail.com> Subject: Re: data type to store a lot of text and tables of data From: Karina Guardado To: rod@iol.ie Cc: pgsql-general@postgresql.org Content-Type: multipart/alternative; boundary=000e0cd3559a2deed40482939a32 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.002 tagged_above=-10 required=5 tests=BAYES_50=0.001, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 201003/886 X-Sequence-Number: 160879 --000e0cd3559a2deed40482939a32 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable You know I need to design a table where some attributes have a data type that allow me to store text mixed with tables and other information. I use PHP code to get the information and store it in to the database so I wonder if this is posible to do. I found in the link you provided me that If character varying is used without length specifier, the type accepts string= s of any size. So this is useful for me when only text has to be stored but when the user wants to store information mixed with tables like the following : Reciba un respetuoso saludo y deseo de =E9xitos en sus actividades. El moti= vo de la presente es para solicitarle se realice una correcci=F3n en el plan d= e mantenimiento preventivo y correctivo de fotocopiadoras, duplicadores e impresoras debido a que en el Centro de C=F3mputo aparecen, seg=FAn el repo= rte, 4 impresoras asignadas y en realidad solamente tenemos dos que son las que detallo a continuaci=F3n: Impresora Marca Modelo No. De Inventario Observaciones X HP LaserJet 1300 12040-3701-080-0005 Si aparece en el listado. X HP LaserJet 3055 12040-0603-080-0002 No aparece en el listado I hope this help, thanks a lot, karina On Wed, Mar 24, 2010 at 4:08 PM, Raymond O'Donnell wrote: > On 24/03/2010 22:01, Karina Guardado wrote: > > > what should be the data type to store a file that can be xls, doc, pdf > > for example. > > Sorry, I missed this bit - for binary files you can use the bytea type. > Look under "Binary data types" in the docs. > > Ray. > > > -- > Raymond O'Donnell :: Galway :: Ireland > rod@iol.ie > --000e0cd3559a2deed40482939a32 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable You know I need to design a table where some attributes have a data type that allow me to store=A0 text mixed with tables and other information. I use PHP code to get the information and store it in to the d= atabase so I wonder if this is posible to do. I found in the link you provi= ded me that=A0 If character varying is used without length specifier, t= he type accepts strings of any size. So this is useful for me when only tex= t has to be stored but when the user wants to store information mixed with = tables like the following :


Reciba un respetuoso saludo y deseo de =E9xitos en sus actividades. El motivo de la presente es para soli= citarle se realice una correcci=F3n en el plan de mantenimiento preventivo y correc= tivo de fotocopiadoras, duplicadores e impresoras debido a que en el Centro de C=F3mputo aparecen, seg=FAn el reporte, 4 impresoras asignadas y en realida= d solamente tenemos dos que son las que detallo a continuaci=F3n:

=A0

Impresora

Marca

Modelo

No. De Inventario

Observaciones

=A0=A0=A0=A0=A0=A0 X

HP

LaserJet 1300

12040-3701-080-0005

Si aparece en el listado.

=A0=A0=A0=A0=A0=A0 X

HP

LaserJet 3055

12040-0603-080-0002

No aparece en el listado

=A0


I hope = this help,


thanks a lot,


karina




<= div class=3D"gmail_quote"> On Wed, Mar 24, 2010 at 4:08 PM, Raymond O'Donnell &l= t;rod@iol.ie> wrote:
On 24/03/2010 22:01, Karina Guardado wrote:

> what should be the data type to store a file t= hat can be xls, doc, pdf
> for example.

Sorry, I missed this bit - for binary files you can use the bytea typ= e.
Look under "Binary data types" in the docs.

Ray.


--
Raymond O'Donnell :: Galway :: Ireland
rod@iol.ie

--000e0cd3559a2deed40482939a32--