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 1ikcl3-0000vZ-9n for pgsql-bugs@arkaria.postgresql.org; Thu, 26 Dec 2019 23:41:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ikcl2-0007CO-45 for pgsql-bugs@arkaria.postgresql.org; Thu, 26 Dec 2019 23:41:32 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1ikcl1-0007Bx-OA for pgsql-bugs@lists.postgresql.org; Thu, 26 Dec 2019 23:41:31 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ikcky-0001qd-7Y for pgsql-bugs@lists.postgresql.org; Thu, 26 Dec 2019 23:41:31 +0000 Received: by mail-wm1-x344.google.com with SMTP id p17so7090749wma.1 for ; Thu, 26 Dec 2019 15:41:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Qh3q0F/TmG8lK3fga4fXxGUmoS8jF55sQEDWaxBdfqw=; b=ONX0XFiSVH0vS4Awthl/G6WGkCJoEOMoTEEUKQ1AEAqzP4hwc5k8ZUULZ/TufU0VBD Yp6dXNUQ3TRXvXkV/Hw/EINwgLas8+yPENKhdq7IsW0slKcZaJVbpTgRWgrHq0PjwpA9 Pi1XXb+j7Z8USRlbKocIedVBA+ubfRvn3Zh4JhGfV0LO6I3IOaDhLE+FevTefLsbYmKm KUY/lj7C4zGuM7RcoSOAz9wv1TuinRsyv9Gx6w/2OLCvDe/MWD2gygZao1/PYWeNU06i X5ujqQr9QO37TMqN5jukKIfqpXA63egbEO6mk60wBMsQ/5TuNKIsT+Rv8fYRSko0Ivd7 YCHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Qh3q0F/TmG8lK3fga4fXxGUmoS8jF55sQEDWaxBdfqw=; b=KIF2DRMnlkMOOMrKSljJCHc/4A7ltNfAAgiHy+C0tlNlZuTzW/tFVo8jRYrk83mDv6 /X2h0FH6Fjzgr3knYoukD6hFqnkvHd1/AFhqdXY9ik0R6EasgFOffozSPRadZXk4KNs/ YU6suCQQGIUD1kn0600N2wSq2yDEFJfpVlBNA3h6cTgZZuw1CBwq0a9/fScs2+wkXAdD pLt1ajyD5mP2xzZ5xp2nbW2yY0Ml2PR2X0YxBcnzMHeiYAl9fH2pfnVuLwAju6wmiz7t v2Ci6xoR3U0B9oNYrYfI2UJAbBC77MhyVvnx9lqZxopj4blq47fXFuT1KFyIRCj7V0XF UFOg== X-Gm-Message-State: APjAAAWBs45Xy3IAxvTTG7/YXp7oUDWrdD/HANo8nP9ZzApNH4+DnOtv M/TYHU+gVXoqXDhxgpTp5nw/EQ== X-Google-Smtp-Source: APXvYqwK+BL952li5BbbXcySv3yVh6ybHwVhWYzXgV9VWLY8WP+fcuU0TWorIsaV6mI9I4KjeUjH3g== X-Received: by 2002:a7b:cc81:: with SMTP id p1mr16187602wma.62.1577403686925; Thu, 26 Dec 2019 15:41:26 -0800 (PST) Received: from localhost (ip-86-49-253-92.net.upcbroadband.cz. [86.49.253.92]) by smtp.gmail.com with ESMTPSA id w13sm32837912wru.38.2019.12.26.15.41.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Dec 2019 15:41:25 -0800 (PST) Date: Fri, 27 Dec 2019 00:41:24 +0100 From: Tomas Vondra To: Zhihong Zhang Cc: Tom Lane , Jeff Janes , pgsql-bugs Subject: Re: Indexing on JSONB field not working Message-ID: <20191226234124.wuarzcbdq5z5msiy@development> References: <20191220223005.f6w4ff4kdbgtanpz@development> <83E6A3F7-B1B4-4AD6-905A-BE11D244D35A@gmail.com> <4910.1577386715@sss.pgh.pa.us> <0A83C661-EDBB-43C8-9CBB-FB1E321A15CB@gmail.com> <12042.1577393358@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thu, Dec 26, 2019 at 05:25:22PM -0500, Zhihong Zhang wrote: >I am not superuser. Let me see how I can get access to the superuser on RDS. > You can't - that's the point of am environment managed by someone else. Perhaps you could inspect the data directly in pg_statistic, not through the pg_stats view. But I haven't tried if that works on RDS. regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services