Re: Field Size

From: "Marc A(dot) Leith" <marc(at)redboxdata(dot)com>
To: "Ganesan Kanavathy" <ganesh(at)magnusquest(dot)com>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>, "pgsql-sql(at)postgresql(dot)org" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Field Size
Date: 2003-12-08 13:03:12
Message-ID: 20031208130328.28EC730AE1C@appsrv1.nuvergence.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-sql

If you define the field as CHAR, 1000 bytes will be consumed.

If you define the field as VARCHAR, on sufficient bytes to store the contents will be used.

Marc

--Original Message Text---
From: Ganesan Kanavathy
Date: Mon, 8 Dec 2003 20:56:06 +0800

Clean Clean DocumentEmail MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-
colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-
orphan; font-size:10.0pt; font-family:"Times New Roman";}

Can anyone tell me, what harm would setting a field size to 1000 characters do to the size?

By increasing the size, will the database require more space? Or does it only consume space if there is data in the field only?

Regards,

Ganesan

Marc A. Leith
President
redboxdata inc.

e-mail: marc(at)redboxdata(dot)com
cell: (416) 737 0045

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Jerrianna Fox 2003-12-08 13:04:14 Question
Previous Message Ganesan Kanavathy 2003-12-08 12:56:06 Re: Field Size

Browse pgsql-sql by date

  From Date Subject
Next Message Somasekhar Bangalore 2003-12-08 13:06:57 Re: Field Size
Previous Message Ganesan Kanavathy 2003-12-08 12:56:06 Re: Field Size