Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 00ADC1337BA1 for ; Thu, 24 Feb 2011 04:23:07 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 82316-05 for ; Thu, 24 Feb 2011 08:22:59 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from 63.mail-out.ovh.net (63.mail-out.ovh.net [91.121.185.56]) by mail.postgresql.org (Postfix) with SMTP id 244EF1337B9E for ; Thu, 24 Feb 2011 04:22:58 -0400 (AST) Received: (qmail 9449 invoked by uid 503); 24 Feb 2011 09:06:37 -0000 Received: from b6.ovh.net (HELO mail184.ha.ovh.net) (213.186.33.56) by 63.mail-out.ovh.net with SMTP; 24 Feb 2011 09:06:37 -0000 Received: from b0.ovh.net (HELO queueout) (213.186.33.50) by b0.ovh.net with SMTP; 24 Feb 2011 10:22:55 +0200 Received: from par69-8-88-161-102-87.fbx.proxad.net (HELO apollo13) (lists%peufeu.com@88.161.102.87) by ns0.ovh.net with SMTP; 24 Feb 2011 10:22:53 +0200 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: "Pavel Stehule" , "Merlin Moncure" Cc: dba , pgsql-performance@postgresql.org Subject: Re: performance issue in the fields. References: <1297683192310-3384307.post@n5.nabble.com> Date: Thu, 24 Feb 2011 09:22:53 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Pierre C" Message-ID: In-Reply-To: User-Agent: Opera Mail/11.01 (Linux) X-Ovh-Tracer-Id: 1539386648561518168 X-Ovh-Remote: 88.161.102.87 (par69-8-88-161-102-87.fbx.proxad.net) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: DONE|U 0.5/N X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201102/462 X-Sequence-Number: 42600 >>> I have created two tables. In the first table i am using many fields to >>> store 3 address. >>> as well as in b table, i am using array data type to store 3 address. >>> is >>> there any issue would face in performance related things.... which one >>> will >>> cause the performance issue. The array is interesting : - if you put a gist index on it and do searches like "array contains values X and Y and Z", gist index has a some special optimizations for this - if you might store a variable number of integers, and for some reason you don't want a normalized one-line-per-value approach