Search Postgresql Archives

Re: varchar(n) VS text

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Jun 26, 12:16 am, t...@xxxxxxxxxxxxx (Tom Lane) wrote:
> "Pierre Thibaudeau" <pierd...@xxxxxxxxx> 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



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux