Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 1D6689FB42D for ; Sat, 16 Jun 2007 08:35:15 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 32089-05 for ; Sat, 16 Jun 2007 08:35:11 -0300 (ADT) X-Greylist: whitelisted by SQLgrey-1.7.4 Received: from smtp3-g19.free.fr (smtp3-g19.free.fr [212.27.42.29]) by postgresql.org (Postfix) with ESMTP id 21E269FB419 for ; Sat, 16 Jun 2007 08:35:11 -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 00A1F5A0B0 for ; Sat, 16 Jun 2007 13:35:10 +0200 (CEST) Received: by imp1-g19.free.fr (Postfix, from userid 33) id E7CFD11494; Sat, 16 Jun 2007 13:35:09 +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 13:35:09 +0200 Message-ID: <1181993709.4673caedd6fe8@imp.free.fr> Date: Sat, 16 Jun 2007 13:35:09 +0200 From: okparanoid@free.fr To: pgsql-performance@postgresql.org Subject: Re: determining maxsize for character varying References: <1181987590.4673b306d4baf@imp.free.fr> <20070616105525.GA13754@KanotixBox> In-Reply-To: <20070616105525.GA13754@KanotixBox> 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/284 X-Sequence-Number: 25317 Thanks if i understand well that means that if i choose character varying(3) or character varying(8) or character varying(32) or character varying with no max length the fields will take the same place in the disk (8kb) except for fields too long to take place in the 8kb whose are stored in another place ? Is that correct ? So for small strings it's better to choose character(n) when it's possible ? Best regards, Loic Selon Andreas Kretschmer : > okparanoid@free.fr schrieb: > > > 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 ?) > > No problem because of the TOAST-technology: > http://www.postgresql.org/docs/current/static/storage-toast.html > > > Andreas > -- > Really, I'm not out to destroy Microsoft. That will just be a completely > unintentional side effect. (Linus Torvalds) > "If I was god, I would recompile penguin with --enable-fly." (unknow) > Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889° > > ---------------------------(end of broadcast)--------------------------- > TIP 7: You can help support the PostgreSQL project by donating at > > http://www.postgresql.org/about/donate >