Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 96E36632815 for ; Thu, 25 Mar 2010 11:30:52 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 18252-02 for ; Thu, 25 Mar 2010 14:30:32 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pv0-f174.google.com (mail-pv0-f174.google.com [74.125.83.174]) by mail.postgresql.org (Postfix) with ESMTP id A3A55631B0A for ; Thu, 25 Mar 2010 11:30:41 -0300 (ADT) Received: by pva18 with SMTP id 18so730951pva.19 for ; Thu, 25 Mar 2010 07:30:39 -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:message-id:subject:from:to:cc:content-type; bh=QQMvwZEMxjv7H9Yt79b83S21tnja5o9v/3Sk+YdS+jg=; b=HW/dC4TIsVMZrdoJlxLMS3E1C+eLCuiAVkECatlqVfcnvlyTlxX9cRXFQgPzZYXTAz R3ag3UNGvp5LLVO0/So27X7U/EY1SL4Zlx4Pd4HMl3L+V5JiK/mioYW3aCEvQrITX5be gmUo6FnwClpk0Q1yDaNxmpBKpUtgZO+1CVdXs= 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=Kdqy7JooTIyvmTfFNRRQ4Cmvsn3aHvObi57E1aI25E/QSsa9h26Yl2WYfgNUfYFrhV Aii51DUMUAkq0rEWa0uIfrCO3BON2jZasYwWuiLN16dMIJPTcoY7LZWUSVIZGw6/Xq/z LvWDE7XrdfK3DGw7uTpfj5orLdD8AYTB1cFkU= MIME-Version: 1.0 Received: by 10.140.255.6 with SMTP id c6mr3882417rvi.126.1269527439799; Thu, 25 Mar 2010 07:30:39 -0700 (PDT) In-Reply-To: <4BAA95DC.3030707@iol.ie> References: <4a92b0c31003241448r3efc833ep7036d2ba90f8d39f@mail.gmail.com> <4BAA8A3A.2060403@iol.ie> <4a92b0c31003241501s7582c8d0h6b57cde596b9b613@mail.gmail.com> <4BAA8D72.5030808@iol.ie> <4a92b0c31003241539i69266a2q6c0bbfd620861ac2@mail.gmail.com> <4BAA95DC.3030707@iol.ie> Date: Thu, 25 Mar 2010 08:30:39 -0600 Message-ID: <4a92b0c31003250730t50dce085ia36ac110a2f0fec0@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=000e0cd1059e14f7670482a0e4e1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.598 tagged_above=-10 required=5 tests=BAYES_00=-2.599, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 201003/915 X-Sequence-Number: 160908 --000e0cd1059e14f7670482a0e4e1 Content-Type: text/plain; charset=ISO-8859-1 Thank you very much for your help and so soon answears. I will try using the solutions you suggest. best regards, karina On Wed, Mar 24, 2010 at 4:44 PM, Raymond O'Donnell wrote: > On 24/03/2010 22:39, Karina Guardado wrote: > > 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 strings 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 : > > I suppose it depends on what the format of the data is.... the example > you posted is HTML, which is pure text, so could be stored in a VARCHAR > or TEXT column. > > Ray. > > > -- > Raymond O'Donnell :: Galway :: Ireland > rod@iol.ie > --000e0cd1059e14f7670482a0e4e1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thank you very much=A0 for your help and so soon answears. I will try using= the solutions you suggest.

best regards,

karina

On Wed, Mar 24, 2010 at 4:44 PM, Raymond O'D= onnell <rod@iol.ie&g= t; wrote:
On 24/03/2010 22:39, Karina Guardado wrote:
> You know I need to design a table where some attributes have a data ty= pe
> that allow me to store =A0text 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 =A0If character varying is used without length specifier, the typ= e
> accepts strings of any size. So this is useful for me when only text h= as
> to be stored but when the user wants to store information mixed with > tables like the following :

I suppose it depends on what the format of the data is.... the exampl= e
you posted is HTML, which is pure text, so could be stored in a VARCHAR
or TEXT column.

Ray.


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

--000e0cd1059e14f7670482a0e4e1--