Re: varchar(n) VS text

From: Kev <kevinjamesfield(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: varchar(n) VS text
Date: 2007-06-26 11:36:08
Message-ID: 1182857768.298640.272710@w5g2000hsg.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Jun 26, 12:16 am, t(dot)(dot)(dot)(at)sss(dot)pgh(dot)pa(dot)us (Tom Lane) wrote:
> "Pierre Thibaudeau" <pierd(dot)(dot)(dot)(at)gmail(dot)com> writes:
> > I am puzzling over this issue:
> > 1) Is there ever ANY reason to prefer "varchar(n)" to "text" as a column type?
>
> In words of one syllable: no.

If you have any input from untrusted sources (like in a web app)
wouldn't it be easier to attack the server if you had a text field,
like by sending a couple TB of data over that pgsql then needs to
store, on a server that doesn't have that amount of space?

Er...I guess the web server would then be the cap? Or whatever other
tiers you had between the client and pgsql?

Kev

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rafal Pietrak 2007-06-26 12:28:27 Re: a JOIN on same table, but 'slided over'
Previous Message don romanos 2007-06-26 09:49:25