We are seeing some weird errors in our atlassian-jira.log related to database table ownership, so I would like to confirm what database user should own the actual database tables in a Postgres database for Jira tables and tables associated with plugins?
My understanding is that it should NOT be the database user specified in the dbconfig.xml file for connecting to the Jira database, but our database team is reporting we have some tables owned by rpg_master and some by jiradbuser, which is the user we have configured for connection in the dbconfig.xml file.
Please advise.
Thanks in advance for your support,
Terry
It doesn't really "matter" who owns the tables - it makes sense for the jira user to own it (and it really should because it should also be the one creating them), but it's the permissions that matter at the end of the day.
it is stated to
GRANT ALL PRIVILEGES ON DATABASE <Database Name> TO <Role Name>
It doesn't practically need "all" of them (there's only really about 2 handfuls of permissions it makes use of), but that's what the documentation states.
So, as long as your jiradbuser has all permissions, it should be fine.
However, I would expect jiradbuser to also own the tables, since it should be the one creating them. When you install a fresh Jira and connect it to an empty database, that's what it would do.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.