Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gBzN6-00088D-3Q for pgsql-general@arkaria.postgresql.org; Mon, 15 Oct 2018 09:41:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gBzN3-0005Z6-NW for pgsql-general@arkaria.postgresql.org; Mon, 15 Oct 2018 09:41:05 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gBzMo-0004H8-NG for pgsql-general@lists.postgresql.org; Mon, 15 Oct 2018 09:40:50 +0000 Received: from mout.kundenserver.de ([217.72.192.73]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gBzMk-0003CY-CH for pgsql-general@lists.postgresql.org; Mon, 15 Oct 2018 09:40:47 +0000 Received: from [10.8.0.146] ([185.40.248.10]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.145]) with ESMTPSA (Nemesis) id 1MgNtR-1fjHmN122Z-00hyV0 for ; Mon, 15 Oct 2018 11:40:44 +0200 Received: from [10.8.0.146] ([185.40.248.10]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.145]) with ESMTPSA (Nemesis) id 1MgNtR-1fjHmN122Z-00hyV0 for ; Mon, 15 Oct 2018 11:40:44 +0200 Subject: Re: Regarding varchar max length in postgres To: pgsql-general@lists.postgresql.org Newsgroups: gmane.comp.db.postgresql.general References: From: Thomas Kellerer Message-ID: <584855e4-cd0a-0036-611a-81f088cb40c3@gmx.net> Date: Mon, 15 Oct 2018 11:40:42 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:2LSgVKgl2sk2OkHZHWhfxGCSpXdjbyki/DDVhrB/aUTY1WrjqlI VDiwNT4JP9/pS5x/6bYjzyD2AaNcCjTD0bTg2hm1aMU+FLBewWMo9YwPesu7ddidhH5MJFn 4TZzGUTcLHu/EArKy1Ys8PAzm8qeykYGy2R9hQSJ0598BCpRDS4vNWpq04x6gr23T1XzrMM dzzfioXWb7gdKFTA8aIoQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V01:K0:Wt99XmkNenM=:HaXqM26gYCfWTQFlamsPcW sv1fUIy47U7XQmnQAxuZM3IncgFkcfPqkuu5Zz16R03lOZk23zzAsuDOuqUbSuWmEs+AEsDVA rY4qq2R/n2394GUL/T4alFkxhgrboLSJnX9Og9qlFkHXGzbj6qCTH3YNCMfn9IA+GDbAKJeHK R3tvTQlHCvRUJCbxKLEGhYt/vXBUEJNrh96LHCvlqv8s/8O+YgaDAK+NzYtoJ6A/Arw5osh6s LonS7i0H/BECutfq/mPQrxjispkRpLWWpV+jO3/euzDPh4lNvdZ8lx2L0W/jMA/9uzAUz+nMt AyG2sXtCZ2CmO2wI+MDi8bdkQoPgOoffeCVS+5wb2NkjEZypjOktzQJokrYQdVd2HydpHLHhX aLgPNBWZe2riQphgWI9DOdozAXnUxvyj6GolDqQ2JqFo3b5ZCSJPJ2lIMJmFbTN9DFTNWjNyw Gnh/UeJCxObDKD1Cn/oq7hDbpCspz593AaOadZKRA/GTLBN3IjhvohSnCzVPgALJlpi0qkUXy CigelaLCm+Og1PbkcEMmJ2yn9gT0yMbVa+GiFy5JL5J3ZjYU6fA48PC8mmec58LHkrdGJYqvv CgVMFAo4qYaN/5y5fZEEEymVF3RgvBywsqtksURJQ8ShKu9kJiKMHlPEBmc6vhc7eCCofs4TM VWKh96n4g77Hqe89Nho/xG0ymoUOcfNHqB0dky4uzvsNWFzuPtljB/A4r5KA13QATqf+mVDgO uxg4E9/utRirTEJT List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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