pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Zhihong Zhang <zhihong@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Tomas Vondra <tomas.vondra@2ndquadrant.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: Indexing on JSONB field not working
Date: Fri, 27 Dec 2019 14:52:23 -0500
Message-ID: <8A8F3B89-D73E-4247-B4B5-4AAD08DD9FBB@gmail.com> (raw)
In-Reply-To: <11610.1577468732@sss.pgh.pa.us>
References: <0cf001d5b77f$bfe47e10$3fad7a30$@gmail.com>
	<20191220223005.f6w4ff4kdbgtanpz@development>
	<E3D6070E-72E0-4FE5-9E30-D114530F383F@gmail.com>
	<20191221114003.yo56lv3o6thdvxtn@development>
	<21855.1576943356@sss.pgh.pa.us>
	<0AA828F3-5BA5-48CD-B229-8351ACB308D3@gmail.com>
	<167501d5bcdb$13854b20$3a8fe160$@gmail.com>
	<11610.1577468732@sss.pgh.pa.us>



> On Dec 27, 2019, at 12:45 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> 
> I think we can eliminate the RLS-is-blocking-it idea, because that
> would also apply to stats on simple columns.  But maybe your user only
> has select privilege on some columns of the table in question?
> 

The user is the default/vanilla RDS account. We didn’t set any special permissions. 

Let me know if you want check any specific permissions. Here are all the permissions I know of,

SELECT grantee, privilege_type FROM information_schema.role_table_grants WHERE table_name='assets_copy';
 grantee  | privilege_type
----------+----------------
 postgres | INSERT
 postgres | SELECT
 postgres | UPDATE
 postgres | DELETE
 postgres | TRUNCATE
 postgres | REFERENCES
 postgres | TRIGGER
(7 rows)


Thanks!

Zhihong

view thread (43+ messages)  latest in thread

Message-ID: <8A8F3B89-D73E-4247-B4B5-4AAD08DD9FBB@gmail.com>
Permalink:  ../8A8F3B89-D73E-4247-B4B5-4AAD08DD9FBB@gmail.com/
Also on:    postgresql.org/message-id/8A8F3B89-D73E-4247-B4B5-4AAD08DD9FBB@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: zhihong@gmail.com, tgl@sss.pgh.pa.us, tomas.vondra@2ndquadrant.com
  Subject: Re: Indexing on JSONB field not working
  In-Reply-To: <8A8F3B89-D73E-4247-B4B5-4AAD08DD9FBB@gmail.com>
  References: <0cf001d5b77f$bfe47e10$3fad7a30$@gmail.com> <20191220223005.f6w4ff4kdbgtanpz@development> <E3D6070E-72E0-4FE5-9E30-D114530F383F@gmail.com> <20191221114003.yo56lv3o6thdvxtn@development> <21855.1576943356@sss.pgh.pa.us> <0AA828F3-5BA5-48CD-B229-8351ACB308D3@gmail.com> <167501d5bcdb$13854b20$3a8fe160$@gmail.com> <11610.1577468732@sss.pgh.pa.us> <8A8F3B89-D73E-4247-B4B5-4AAD08DD9FBB@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox