Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jTcTg-00054K-AO for pgsql-admin@arkaria.postgresql.org; Wed, 29 Apr 2020 02:29:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jTcTf-0004NJ-7K for pgsql-admin@arkaria.postgresql.org; Wed, 29 Apr 2020 02:29:35 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jTcTf-0004NC-03 for pgsql-admin@lists.postgresql.org; Wed, 29 Apr 2020 02:29:35 +0000 Received: from ook.raf.org ([139.99.156.21]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jTcTb-0008Qv-LM for pgsql-admin@lists.postgresql.org; Wed, 29 Apr 2020 02:29:34 +0000 Received: from localhost (localhost [127.0.0.1]) by ook.raf.org (Postfix) with ESMTP id 521E85DEA3 for ; Wed, 29 Apr 2020 12:29:29 +1000 (AEST) X-Virus-Scanned: Debian amavisd-new at ook.raf.org Received: from ook.raf.org ([127.0.0.1]) by localhost (ook.raf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id niGfJZkMewXL for ; Wed, 29 Apr 2020 12:29:29 +1000 (AEST) Received: by ook.raf.org (Postfix, from userid 1001) id 01C625E358; Wed, 29 Apr 2020 12:29:29 +1000 (AEST) Date: Wed, 29 Apr 2020 12:29:28 +1000 From: raf To: pgsql-admin@lists.postgresql.org Subject: Re: PostgreSQL CHARACTER VARYING vs CHARACTER VARYING (Length) Message-ID: <20200429022928.fywdmiuc6oqpmgtc@raf.org> References: <20200428234332.7nkyomr2unlez6p5@raf.org> <8EC9D082-B541-435F-9EE3-3ED14AA3C2D1@crazybean.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8EC9D082-B541-435F-9EE3-3ED14AA3C2D1@crazybean.net> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Rui DeSousa wrote: > > On Apr 28, 2020, at 7:43 PM, raf wrote: > > > > I just use "text" for everything. It's less typing. :-) > > Ugh, I see it as sign that the designers of the schema didn’t fully > think about the actual requirements or care about them and it usually > shows. You are mistaken. I care a lot. That's why I future-proof designs whenever possible by not imposing arbitrarily chosen limits that appear to suit current requirements. In other words, I know I'm not smart enough to predict the future so I don't let that fact ruin my software. :-) cheers, raf