Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 390DD633CBA for ; Wed, 24 Mar 2010 19:02:03 -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 67861-03 for ; Wed, 24 Mar 2010 22:01:46 +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 990DE63278C for ; Wed, 24 Mar 2010 19:01:51 -0300 (ADT) Received: by gwaa18 with SMTP id a18so2174789gwa.19 for ; Wed, 24 Mar 2010 15:01:50 -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=zaz9sFneZtd/EcUYNHydPm7Ijjeonopj3tFpzZZ9iIQ=; b=kzf5uPHr8obLVn626QyyWqUq2eZsgtxKmjLhREyItUbFIyEHLaZODkdvpEDQuAZ9sG gafd2wor0/WYOtKEkXWGP1pxsPx3qDTDqhC/R43opYx63VvPQgWN18vUaCamqg+fAVao TydOqXJxN6fdh8Ev2S5+oSPcPqRZ2Mm17EsjY= 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=j7FcYv017GdLhQcCd6eMGOr30lWTG86YDq7QzJ+ZfTZNKjf31TUj4AenwJ6tKyqfYa oCKsNNwVPFogTtPx+nCO9p3m+kz3bD0YuK1vG0dQPBRfYTHWg8MhrxstcUbvMhbwbb5E AD8SOSh5vMIkQQAVXHMSki/Q4b4cHn93kqoTg= MIME-Version: 1.0 Received: by 10.150.228.13 with HTTP; Wed, 24 Mar 2010 15:01:48 -0700 (PDT) In-Reply-To: <4BAA8A3A.2060403@iol.ie> References: <4a92b0c31003241448r3efc833ep7036d2ba90f8d39f@mail.gmail.com> <4BAA8A3A.2060403@iol.ie> Date: Wed, 24 Mar 2010 16:01:48 -0600 Received: by 10.150.179.1 with SMTP id b1mr354947ybf.78.1269468108616; Wed, 24 Mar 2010 15:01:48 -0700 (PDT) Message-ID: <4a92b0c31003241501s7582c8d0h6b57cde596b9b613@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=000e0cd51bbaae327504829313a1 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/882 X-Sequence-Number: 160875 --000e0cd51bbaae327504829313a1 Content-Type: text/plain; charset=ISO-8859-1 for example something like the following : *Table 9-25. Date/Time Operators* OperatorExampleResult + 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. On Wed, Mar 24, 2010 at 3:55 PM, Raymond O'Donnell wrote: > On 24/03/2010 21:48, Karina Guardado wrote: > > Hi, > > > > Is there a special data type to use to store a lot of text and tables of > > data in a column or attribute? > > For large amounts of text, just use the TEXT data type: > > http://www.postgresql.org/docs/8.4/static/datatype-character.html > > Not sure what you mean by "tables of data". > > Ray. > > > -- > Raymond O'Donnell :: Galway :: Ireland > rod@iol.ie > --000e0cd51bbaae327504829313a1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable for example something like the following :

Table 9-25. Date/Ti= me Operators

= = = =

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.

On Wed, Mar 24, 2010 at 3:55 PM, Raymond O'D= onnell <rod@iol.ie&g= t; wrote:
On 24/03/2010 21:48, Karina Guardado wrote:
> Hi,
>
> Is there a special data type to use to store a lot of text and tables = of
> data in a column or attribute?

For large amounts of text, just use the TEXT data type:

=A0 =A0http://www.postgresql.org/docs/8.4/static/data= type-character.html

Not sure what you mean by "tables of data".

Ray.


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

--000e0cd51bbaae327504829313a1--
OperatorExampleResult
+ date '= 2001-09-28' + integer '7'da= te '2001-10-05'
+= date '2001-09-28' + interval '1 hour&= #39;timestamp '2001-09-28 01:00:00&= #39;
+ date '2001-09-28' + time '03:00' timestamp '2001-09-28 03:00:00'
+ i= nterval '1 day' + interval '1 hour'interval '1 day 01:00:00'
+ t= imestamp '2001-09-28 01:00' + interval '23 hours'timestamp '2001-09-29 00:00:00'
+ time &= #39;01:00' + interval '3 hours'time '04:00:00'
-<= /tt> - interval '23 hours'interval '-23:00:00'
- date '2001-10-01&#= 39; - date '2001-09-28' integer '3'
- date '2001-10-01&= #39; - integer '7'date '200= 1-09-24'
- d= ate '2001-09-28' - interval '1 hour'timestamp '2001-09-27 23:00:00'
= - time '05:00' - time '03:00'<= /td>interval '02:00:00'
- time '= ;05:00' - interval '2 hours' time '03:00:00'
- timestamp '20= 01-09-28 23:00' - interval '23 hours'timestamp '2001-09-28 00:00:00'
- i= nterval '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 precisi= on '3.5' * interval '1 hour'interval '03:30:00'
/ i= nterval '1 hour' / double precision '1.5'interval '00:40:00'