I created a user foouser and a schema fooschema with some tables in it. Foouser executes long-running queries to its tables in fooschema.
Now I'd like to check on the status of the queries. However, foouser does not have sufficient permissions to access sys.queue
table/view:
sql>SELECT * FROM sys.queue;
SELECT: access denied for foouser to table 'sys.queue'
sql>SELECT * FROM sys.queue();
SELECT: no such operator 'queue'
The monetdb user has the necessary permissions, but does not see foosuer's queries but only their own:
sql>SELECT * FROM sys.queue;
+---------+---------+----------------------------+----------------------------+----------+---------+-----------+--------------------------+
| qtag | user | started | estimate | progress | status | tag | query |
+=========+=========+============================+============================+==========+=========+===========+==========================+
| 2593257 | monetdb | 2018-04-26 15:06:01.000000 | null | null | running | 2593257@0 | select * from sys.queue; |
+---------+---------+----------------------------+----------------------------+----------+---------+-----------+--------------------------+
So the question is: How can foouser view the status of its own queries? Can I grant foouser the access to sys.queue()
? If so, how?