Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id E3DD563278C for ; Wed, 24 Mar 2010 19:04:20 -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 68190-07-4 for ; Wed, 24 Mar 2010 22:04:03 +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 5456B634B15 for ; Wed, 24 Mar 2010 19:04:07 -0300 (ADT) Received: (qmail 30496 invoked by uid 399); 24 Mar 2010 22:04:05 -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:04:05 -0000 X-Originating-IP: 109.78.19.128 Message-ID: <4BAA8C54.1060907@iol.ie> Date: Wed, 24 Mar 2010 22:04:04 +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.076 tagged_above=-10 required=5 tests=AWL=-0.077, BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 201003/883 X-Sequence-Number: 160876 On 24/03/2010 22:01, Karina Guardado wrote: > for example something like the following : > > *Table 9-25. Date/Time Operators* > > Operator Example Result > + date '2001-09-28' + integer '7' date '2001-10-05' > + date '2001-09-28' + interval '1 hour' timestamp '2001-09-28 01:00:00' > + date '2001-09-28' + time '03:00' timestamp '2001-09-28 03:00:00' > + interval '1 day' + interval '1 hour' interval '1 day 01:00:00' > + timestamp '2001-09-28 01:00' + interval '23 hours' timestamp > '2001-09-29 00:00:00' > + time '01:00' + interval '3 hours' time '04:00:00' > - - interval '23 hours' interval '-23:00:00' > - date '2001-10-01' - date '2001-09-28' integer '3' > - date '2001-10-01' - integer '7' date '2001-09-24' > - date '2001-09-28' - interval '1 hour' timestamp '2001-09-27 23:00:00' > - time '05:00' - time '03:00' interval '02:00:00' > - time '05:00' - interval '2 hours' time '03:00:00' > - timestamp '2001-09-28 23:00' - interval '23 hours' timestamp > '2001-09-28 00:00:00' > - interval '1 day' - interval '1 hour' interval '1 day -01:00:00' > - timestamp '2001-09-29 03:00' - timestamp '2001-09-27 12:00' interval > '1 day 15:00:00' > * 900 * interval '1 second' interval '00:15:00' > * 21 * interval '1 day' interval '21 days' > * double precision '3.5' * interval '1 hour' interval '03:30:00' > / interval '1 hour' / double precision '1.5' interval '00:40:00' > > > > is it possible? or is better to use an atached file and store it ? and > what should be the data type to store a file that can be xls, doc, pdf > for example. Sorry, I still don't get it... what *exactly* are you trying to do? Ray. -- Raymond O'Donnell :: Galway :: Ireland rod@iol.ie