Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iw2Xk-0002mp-ER for pgsql-general@arkaria.postgresql.org; Mon, 27 Jan 2020 11:27:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iw2Xi-0006uK-EW for pgsql-general@arkaria.postgresql.org; Mon, 27 Jan 2020 11:26:58 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iw2Xi-0006tw-1g for pgsql-general@lists.postgresql.org; Mon, 27 Jan 2020 11:26:58 +0000 Received: from mail-oi1-x242.google.com ([2607:f8b0:4864:20::242]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iw2Xb-0004my-Vb for pgsql-general@lists.postgresql.org; Mon, 27 Jan 2020 11:26:56 +0000 Received: by mail-oi1-x242.google.com with SMTP id 13so6256994oij.13 for ; Mon, 27 Jan 2020 03:26:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=mKMlpJC9ZXrIY/4syjUNp7mEHGv+O617njsAKLfdNvs=; b=QnQG/brfpEoemoFSjotA5FXR4/PFoTGuD+ap2Oh6zI31Sqj/8KLERMR5HIwEtOWJ2p bM0OiacAIcrGqNhpKhKeh7MT/1hxybmIkfzROFiGtY6CIz/GKQg34hGyn9zdnvzf1Krp lQsvHvcsyYsUGbClJt3/abSkYiLETSeOjD/G66g0PG9AghBHFv7C0IxSacQg/gw/tdjU 0U64xkb+smuzFqxDFhc4b7XTqXGlTnmuyLRgrzqA7eQG6aALxTp15I7olfM2nfPJZSvd OwdYYO1PG2UA1VHXmCx2ULaBeEcPlVfUd227ktyPJBrDhlmNdDv0QIYfjA4HR6wfGq5n 30Ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=mKMlpJC9ZXrIY/4syjUNp7mEHGv+O617njsAKLfdNvs=; b=sLmO6/8yvMCGa50jrMkpbilSr9FYijfEgK8fksgvuXbaLobqwGX+Jz8YLsnCF5npfj 2OVBWzNWDZ5cWhiBDWbulV/MsjWKcfOMDXECdoa50vm/GzLn8X0VBe5sbLkAoAYc0aY9 iiUKhHp8xDqdPWkCYaIE9oRzGgKRneLdHEQu/jqzuJH75cwuUojg55rzvQeWHiG20flv no10qybwxLhi9C1GhJr1fyKNf+SwTZZT4NvEV2LYJ+T7TLmBB3hSyb6bGwOdBuEYoQ+n 3My/t4OlZr6RROgvF9t/DwWs5kP4fZzfqVaedu85tmey5MoH46RloR0iRWjx9M1R5dgX dFUg== X-Gm-Message-State: APjAAAWpqo6kuALSIixR6CBGbCalHKarsYWPEDtOBUN16aQaSb4nPlBi bjnynKCsiBshKJkUM6fYPe7oRDnVrm0= X-Google-Smtp-Source: APXvYqwxjaZnXRRQKfTDjf+B34XtmiBKd2Je7rf1ZLlF/es7Ua+tQa8Nb6vK68EdVedAcr1UdOxTeg== X-Received: by 2002:a05:6808:64d:: with SMTP id z13mr7190191oih.104.1580124411257; Mon, 27 Jan 2020 03:26:51 -0800 (PST) Received: from [192.168.1.10] (ip70-186-126-197.no.no.cox.net. [70.186.126.197]) by smtp.googlemail.com with ESMTPSA id h1sm5393654otm.34.2020.01.27.03.26.50 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 Jan 2020 03:26:50 -0800 (PST) Subject: Re: Need support on tuning at the time of index creation To: pgsql-general@lists.postgresql.org References: From: Ron Message-ID: <5ee0addf-57e2-1805-12f6-e3abcbddea9b@gmail.com> Date: Mon, 27 Jan 2020 05:26:50 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 1/27/20 5:10 AM, Sandip Pradhan wrote: > Dear Sir/Madam, > > One of our ericsson product used backend db as postgresql 9. We are facing > following performance issues where we need some support from your side. > We are having 10 tables and we are inserting around 150 million to 250 > million records on each of those tables. After that we need to create 29 > indexes includung primary key index and other types of indexes. Currently > it is taking almost 3.5 to 4 hrs. > > Please let us know how we can tune the perfirmance so that we can complete > this task in 30-40 mins. > > Note: We cannot change the db version. There are seven versions of "postgresql 9", and multiple patch releases of each.  Please specify which version you're running. -- Angular momentum makes the world go 'round.