Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 22ECF9FB520 for ; Sat, 16 Jun 2007 06:53:16 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 90643-09 for ; Sat, 16 Jun 2007 06:53:08 -0300 (ADT) X-Greylist: whitelisted by SQLgrey-1.7.5 Received: from smtp3-g19.free.fr (smtp3-g19.free.fr [212.27.42.29]) by postgresql.org (Postfix) with ESMTP id 2BB739FB3FD for ; Sat, 16 Jun 2007 06:53:12 -0300 (ADT) Received: from imp1-g19.free.fr (imp1-g19.free.fr [212.27.42.1]) by smtp3-g19.free.fr (Postfix) with ESMTP id 20B7D7391 for ; Sat, 16 Jun 2007 11:53:10 +0200 (CEST) Received: by imp1-g19.free.fr (Postfix, from userid 33) id E59A671E; Sat, 16 Jun 2007 11:53:10 +0200 (CEST) Received: from ron34-1-82-224-149-11.fbx.proxad.net (ron34-1-82-224-149-11.fbx.proxad.net [82.224.149.11]) by imp.free.fr (IMP) with HTTP for ; Sat, 16 Jun 2007 11:53:10 +0200 Message-ID: <1181987590.4673b306d4baf@imp.free.fr> Date: Sat, 16 Jun 2007 11:53:10 +0200 From: okparanoid@free.fr To: pgsql-performance@postgresql.org Subject: determining maxsize for character varying MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.5 X-Originating-IP: 82.224.149.11 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.962 tagged_above=0 required=5 tests=BAYES_50=0.001, NO_REAL_NAME=0.961 X-Spam-Level: X-Archive-Number: 200706/282 X-Sequence-Number: 25315 Hello i would like to know if not determining a max size value for a character varying's fields decrease the perfomance (perhaps size of stockage ? or something else ?) If not it is a good way to not specify a max size value ? If it has an importance is it possible to have a general environnment variable saying to postgres to automatically truncate fields which postgres have to insert or update with a length superior at the max length. Sorry for my bad english... Lot of thanks