Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 031F46326C7 for ; Wed, 24 Mar 2010 19:09:25 -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 68955-01-5 for ; Wed, 24 Mar 2010 22:09:08 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail2.hosting.digiweb.ie (mail2.hosting.digiweb.ie [89.234.64.43]) by mail.postgresql.org (Postfix) with ESMTP id 4316D633CBA for ; Wed, 24 Mar 2010 19:08:55 -0300 (ADT) Received: (qmail 31881 invoked by uid 399); 24 Mar 2010 22:08:52 -0000 Received: from unknown (HELO ?127.0.0.1?) (music@galwaycathedral.ie@109.78.19.128) by mail2.hosting.digiweb.ie with ESMTPAM; 24 Mar 2010 22:08:52 -0000 X-Originating-IP: 109.78.19.128 Message-ID: <4BAA8D72.5030808@iol.ie> Date: Wed, 24 Mar 2010 22:08:50 +0000 From: Raymond O'Donnell Reply-To: rod@iol.ie User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.8) Gecko/20100227 Lightning/1.0b1 Thunderbird/3.0.3 MIME-Version: 1.0 To: Karina Guardado CC: pgsql-general@postgresql.org Subject: Re: data type to store a lot of text and tables of data References: <4a92b0c31003241448r3efc833ep7036d2ba90f8d39f@mail.gmail.com> <4BAA8A3A.2060403@iol.ie> <4a92b0c31003241501s7582c8d0h6b57cde596b9b613@mail.gmail.com> In-Reply-To: <4a92b0c31003241501s7582c8d0h6b57cde596b9b613@mail.gmail.com> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 100324-1, 24/03/2010), Outbound message X-Antivirus-Status: Clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.07 tagged_above=-10 required=5 tests=AWL=-0.071, BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 201003/884 X-Sequence-Number: 160877 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