Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ao9qL-0006D5-FZ for pgsql-bugs@arkaria.postgresql.org; Thu, 07 Apr 2016 13:19:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ao9qL-0004Mk-0u for pgsql-bugs@arkaria.postgresql.org; Thu, 07 Apr 2016 13:19:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ao7um-00065d-LT for pgsql-bugs@postgresql.org; Thu, 07 Apr 2016 11:15:56 +0000 Received: from mail-qg0-x22c.google.com ([2607:f8b0:400d:c04::22c]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1ao7ui-000729-B9 for pgsql-bugs@postgresql.org; Thu, 07 Apr 2016 11:15:55 +0000 Received: by mail-qg0-x22c.google.com with SMTP id f105so35923111qge.2 for ; Thu, 07 Apr 2016 04:15:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=muddypaddock-com.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=b/uoWKFU/8XGkAbvKj1KoVeamUQQozflsuWwXfI53Mk=; b=jQhrNkip669OeIJWIINzITWv4GIf4hjAjo/1vsqEWcWxq3L89/C6wmys9L3jbH4UEE EqbLANtHwNg2jDnOspAToGz8JguNup/xL+S7tIE1QUg0u8ZvUH1CI4d2yqS7s5kDMSSs sjj0pa0js/SIv8F6x5rosopBqecdIwDoPk7cfAaTL/BGwV0ehIuVssRyYp3JOLGcfgbY iCitsRHqD7Z5rxpF6nDkDTOEp6OQEsVeA1Wgz4PYctz7L29RTfOUx8UZUg9gSTznnYYQ yBr2us5kNorEV6ycvH1WJmYdk1hpqPfQIVS5IKeu/TE/Gj1ttKRyu6skWusFhzCA/UM0 L0Nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=b/uoWKFU/8XGkAbvKj1KoVeamUQQozflsuWwXfI53Mk=; b=CJXb0/Mj2SVGIylhpT09IATRRwBvD7MFMixqa/aSeiWpO78l+SIzR9pDMoNClaF5b/ t0giFWKKeLfYCooZprIt2HVDKe9sBasN/krj1lbFY6rS1k3SfT8nxDMPf73mflBUGyLa nx0G/wbsjhJA+bpB59kAOeqOHEiCP3lZCHw42FAkzEor+QNFIS5mQ4pj2XgmctqYltpN Lc8DGgbw6YqM7goIaEXdUxQb10lythIS5uDgKS6yzzjVvEEZ+P7+Fzb6GyFRxvpa5Ic+ KKrMBXqXXW0ZepfTHiFTGj3otLV7AZq/4Mq7AZ6OvNLbuBLSdtMZ108UKb9HLmJR7h2c Gv8Q== X-Gm-Message-State: AD7BkJKikQodHLw454U2Wjwglu6B4Jgz6gLGt92LnOWoKipUzXyFeuvyauuNQwgQUFTdRQ== X-Received: by 10.140.169.132 with SMTP id p126mr2839434qhp.71.1460027750182; Thu, 07 Apr 2016 04:15:50 -0700 (PDT) Received: from [192.168.1.11] (pool-71-179-85-214.bltmmd.fios.verizon.net. [71.179.85.214]) by smtp.gmail.com with ESMTPSA id y123sm3211831qka.0.2016.04.07.04.15.49 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Apr 2016 04:15:49 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: BUG #14054: "create index using gist ..." on large table never completes. From: Tim Singletary In-Reply-To: Date: Thu, 7 Apr 2016 07:15:47 -0400 Cc: Tim Singletary , Pg Bugs Content-Transfer-Encoding: quoted-printable Message-Id: <045E8FF4-97EA-4D98-AA70-C0784874643F@muddypaddock.com> References: <20160330083819.8934.34370@wrigleys.postgresql.org> To: Jeff Janes X-Mailer: Apple Mail (2.3124) X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org My data generator is at https://github.com/flightlesson/mockdata.git Here=E2=80=99s how I load 100 million rows: createdb mockdb mockdatagenerator --create-table --nrows 100000000 | psql mockdb After loading the data CREATE INDEX ON mock USING gist (handle,(int4range(range_low,range_hi= gh,=E2=80=99[]'))); seems to take forever. Thanks, tim > On Apr 6, 2016, at 10:21 PM, Jeff Janes wrote: >=20 > On Wed, Mar 30, 2016 at 1:38 AM, wrote: >> The following bug has been logged on the website: >>=20 >> Bug reference: 14054 >> Logged by: Tim Singletary >> Email address: tsingle@muddypaddock.com >> PostgreSQL version: 9.5.1 >> Operating system: osx 10.11.4 >> Description: >>=20 >> "create index using gist ..." ran for over three days on 100 million row >> table; completes within a couple hours on a 10 million row table. >>=20 >> Had previously tried same experiment with 9.2.3 on a Linux box where the= 100 >> million row table's index built within 5 hours. >>=20 >> The table looks like >>=20 >> CREATE TABLE mock ( >> handle INT NOT NULL >> ,lowest INT NOT NULL >> ,highest INT NOT NULL >> ,stuff TEXT >> ); >>=20 >> Data was randomly generated. >=20 > "Randomly generated" covers a lot of territory and is not sufficient > to be reproducible. Please provide the random generator. >=20 > Thanks, >=20 > Jeff --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs