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 1mjEF4-000722-RA for pgsql-docs@arkaria.postgresql.org; Sat, 06 Nov 2021 05:27:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mjEF2-0006KW-01 for pgsql-docs@arkaria.postgresql.org; Sat, 06 Nov 2021 05:27:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mjEF1-0006KM-L7 for pgsql-docs@lists.postgresql.org; Sat, 06 Nov 2021 05:27:47 +0000 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mjEEu-0004X6-0b for pgsql-docs@lists.postgresql.org; Sat, 06 Nov 2021 05:27:46 +0000 Received: by mail-wm1-x32e.google.com with SMTP id v127so8710241wme.5 for ; Fri, 05 Nov 2021 22:27:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20210112.gappssmtp.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=jPwixp3Is/5xjxC3xXNbecVorniGaC4mn7hfIMTiqn4=; b=6TDRYM7KRsut0zdUWHSZ9mDyYrsjSQ5viijtJ2c9g3WmMD8djxFmKhwjyRYv+JDDko 3b34T7Y0fb0o5f9QCMVvHuV/VkXR7hqf9zzf+jbK9BtpOJn24AfER1y+VrJ25s18l2eb G6jOcXiIzxDH4wu7DttkAqhXrjl+TUZAEL4i0m4Zwzy8LYnoi5p8Oqwyz0bd67t3IeOM Ml3M8ujANDog45RoLaShCLshggBhPQNywChcaX6w43da4LZjglJk4jF7fJZAYPxawUWL 95AAcT57QoA4sUbJoY2bnmp/Z/2emGQ9CI5uZhOHnUC3QwCJ23Yy+zNHP1TB02pX5AJ9 wqEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=jPwixp3Is/5xjxC3xXNbecVorniGaC4mn7hfIMTiqn4=; b=saTVER+KXPoxxsRn/qPDajduSoDksUF4olNrDZeVZibs/TCu35asUNo58AJdqWYICY tBdw7D0hLTo+z0BxkJ6OPfdMf4pEyJHC3OBSAGNIyIsWSBMjo1sT5IaAKea0aRgiDc6A KbFn/59VW+TWJblZU6q7K4T4Nu+XsVqWLPMAAm8vOVpQCTJQVQ8QnpUcU62u4S59S/hO xdznQpE7PZt+NTxJVbbi/MASl3k9MDFv4VQNbdd91349SLdCtJL03VyXFIlqlUAlMps6 sQ1JtOiVKDHVr7IUqRKJr0pl/nagf3SwbfzbsdhmNZ/TbhewHdqLsoQMFTOAdUKuB9JN T6dA== X-Gm-Message-State: AOAM531arLTExHLb/zPUHfR4Wv4GI2KGcp23/srmDT9b1Em4stBYmBIB wxb2PVXZj51SZ6D9Uruua6QuTA== X-Google-Smtp-Source: ABdhPJwSjUiS6CL0RfZ6e6WhjetHj2wHLJ97O/JzgOwzmdq/EYmAetQPB0vCigC8LBj1d/I8PDMcSw== X-Received: by 2002:a7b:c31a:: with SMTP id k26mr36098958wmj.187.1636176457418; Fri, 05 Nov 2021 22:27:37 -0700 (PDT) Received: from localhost.localdomain (62-46-254-2.adsl.highway.telekom.at. [62.46.254.2]) by smtp.gmail.com with ESMTPSA id r17sm9811614wmq.11.2021.11.05.22.27.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Nov 2021 22:27:36 -0700 (PDT) Message-ID: <12598e4d44a8bf530934e793fde9ab2743108046.camel@cybertec.at> Subject: Re: text fields and performance for ETL From: Laurenz Albe To: Bruce Momjian , "David G. Johnston" Cc: Grega Jesih , Tom Lane , Pg Docs Date: Sat, 06 Nov 2021 06:27:35 +0100 In-Reply-To: <20211105152733.GC19812@momjian.us> References: <686716cb5c4242c28e5967d9b6fcfc75@actual-it.si> <137264.1635961048@sss.pgh.pa.us> <70cf9fe110c246afb4eab054caab0c04@actual-it.si> <516dc58b80fa418091f5262879019213@actual-it.si> <20211105141712.GA19812@momjian.us> <20211105152733.GC19812@momjian.us> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 (3.40.4-2.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, 2021-11-05 at 11:27 -0400, Bruce Momjian wrote: > On Fri, Nov  5, 2021 at 07:32:12AM -0700, David G. Johnston wrote: > > On Friday, November 5, 2021, Bruce Momjian wrote: > > > > > >     > > >     > Perhaps, right before the tip you quoted, something like that: > >     > > >     >   If your use case requires a length limit on character data, or > >     compliance > >     >   with the SQL standard is important, use "character varying". > >     >   Otherwise, you are usually better off with "text". > > > >     I can support that if others think it is valuable. > > > > > > > > The motivating complaint is that we should be encouraging people to use varchar > > (4000) instead of text so external tools can optimize.  If we are not going to > > do that I really don’t see the pointing in changing away from out current > > position of “only use text”.  True length limit requirements for data are rare, > > and better done in constraints along with all other the other constraint that > > may exist for the data.  I believe comments with respect to the SQL standard > > are already present and adequate. > > Agreed. +1, so let's leave it as it is. Yours, Laurenz Albe