Re: Regarding varchar max length in postgres

From: Durgamahesh Manne <maheshpostgres9(at)gmail(dot)com>
To: spam_eater(at)gmx(dot)net
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Regarding varchar max length in postgres
Date: 2018-10-15 10:20:56
Message-ID: CAJCZkoKOBPq6E5gKaKKgd5PBgzr9B2xoVFUVrgTbXtoTVCJamQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Oct 15, 2018 at 3:11 PM Thomas Kellerer <spam_eater(at)gmx(dot)net> wrote:

> Durgamahesh Manne schrieb am 15.10.2018 um 11:18:
> > was there any specific reason that you have given max length for varchar
> is limited to 10485760 value?
> >
> > why you have not given max length for varchar is unlimited like text
> datatype ?
> >
> > |character varying(/|n|/)|, |varchar(/|n|/)|variable-length with limit
> > |character(/|n|/)|, |char(/|n|/)|fixed-length, blank padded
> > |text|variable unlimited length
>
> It "text" type is a "character string" just like all the other character
> types and thus is also limited to 1GB
>
> "text", "varchar", "character varying" and "character" are all identical
> in how they are stored and processed.
>
> Thomas
>
>
> Thank you for this information
>
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Rijo Roy 2018-10-15 10:25:47 Re: Enabling autovacuum per table
Previous Message Laurenz Albe 2018-10-15 10:12:58 Re: Problem creating a database