Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e9cnu-0003uG-VB for pgsql-performance@arkaria.postgresql.org; Tue, 31 Oct 2017 20:06:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e9cnu-0006xV-Ga for pgsql-performance@arkaria.postgresql.org; Tue, 31 Oct 2017 20:06:30 +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 1e9cm6-0001Im-V4 for pgsql-performance@postgresql.org; Tue, 31 Oct 2017 20:04:39 +0000 Received: from mail-io0-x233.google.com ([2607:f8b0:4001:c06::233]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1e9cm3-0005pi-7a for pgsql-performance@postgresql.org; Tue, 31 Oct 2017 20:04:38 +0000 Received: by mail-io0-x233.google.com with SMTP id n137so1457920iod.6 for ; Tue, 31 Oct 2017 13:04:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=3o42vhQgggveDbeC2nOzeigQfuwP+OLzYywPL3Z9lkk=; b=gYLM/a2gBbgezsKijYZnLdGTXIARJx+UP47R1Vmp9phxkc7QVtEUnH+9NJAtrI+gYA ApR91HqILqkVDcd/9yNTikF/13tVQ4l7R5szDP2jlyVI38Ev5xGj+cqEl5xWJRm020mp Gohr/hVQVZ7BaSwJ8HHg17bK0dYtB3WX7Zj43p5KEgBQwxAMj1CyxwPXRpyuVg1ZcuuM XYSUf+/qZpZzxnNga/MMfjPuIOhV3CYUai5alNyfL+H7+K6tYOC7Bz3avfk5Pg0zek9+ fmnPEtgWfVdmo2kWRaY8ZFPHRCX5RU+CdBFPLS0Z9GJqnTE16ojLJQRQgxE1sMdR9vC5 FRRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=3o42vhQgggveDbeC2nOzeigQfuwP+OLzYywPL3Z9lkk=; b=WKzNVXj0SdvQpTCNt5iNSh0603JzncV+EU4ggOXlmBAWqQLW3okynQuVxPyy7e3mUR 2dUxUUevYhcRBiGB9Br4s6mIc1D8QshiSDhPyynCqUNGbCXuHnXb4/s4tLoxQdS8PbT4 sLmzZVKSdkXbtT1/HteshTcKm/3kCB35nL+vgDMiZ6oVgxJtkt96e/SLUlW2Ycf61+p6 duXVwrbRPXZlIi3VhjNuBHUfLhjYr/fln2TDoYbASiH/rYcm357NXQ/SM/dFQXvZ5mL/ 61+DYtu/EpoIhFZRxxscEKV0DPKZFMp/M9G1qW/zyr4aeiW3Qvi+9NYCkzRBSJ3SJ5QE lMlQ== X-Gm-Message-State: AMCzsaWiZjo8lHtyxEycEEsaz3Dy5lFYeKMsQg3jUoTLz/68cfk5EUYf lwOx5jqPr5CvRytBcH+OA4undYUIS+IGuWz0AtkCV9Lp X-Google-Smtp-Source: ABhQp+SDbWPNPLepRuZGEggEZDPAFkXRrr6OIKWDOytHHqyFI5sVPCnXzuQ9GcNeCtdsfx1R5n4902p9qkc2A6Xxxz8= X-Received: by 10.107.18.170 with SMTP id 42mr4038230ios.55.1509480272812; Tue, 31 Oct 2017 13:04:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.53.222 with HTTP; Tue, 31 Oct 2017 13:04:12 -0700 (PDT) In-Reply-To: References: From: Julien Rouhaud Date: Tue, 31 Oct 2017 21:04:12 +0100 Message-ID: Subject: Re: Index-Advisor Tools To: Alexandre de Arruda Paes Cc: Neto pr , Anthony Sotolongo , postgres performance list Content-Type: text/plain; charset="UTF-8" List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org On Tue, Oct 31, 2017 at 8:25 PM, Alexandre de Arruda Paes wrote: > I will be very happy with a tool(or a stats table) that shows the most > searched values from a table(since a statistic reset). i.e.: > > table foo (id int, year int) > > top 3 searched value for year field: 2017(500x), 2016(300x), 2015(55x) > > With this info we can create partial indexes or do a table partitioning. > > > > 2017-10-31 15:25 GMT-02:00 Neto pr : >> >> Thanks for reply Antony. >> But from what I've read, HYPOPG only allows you to create hypothetical >> indexes, so the DBA can analyze if it brings benefits. >> What I would like is a tool that from a SQL Query indicates which indexes >> would be recommended to decrease the response time. powa + pg_qualstats will give you this kind of information, and it can analyse the actual queries and suggest indexes that could boost them, or show constant repartition for the different WHERE clauses. You can get more information on http://powa.readthedocs.io/en/latest/. -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance