# Permission denied on DB after schema upgrade

**URL:** <https://community.temporal.io/t/permission-denied-on-db-after-schema-upgrade/10604>\
**Category:** Community Support\
**Tags:** server\
**Created:** [January 9, 2024, 1:37am UTC](https://community.temporal.io/t/permission-denied-on-db-after-schema-upgrade/10604 "2024-01-09T01:37:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![python-user](https://avatars.discourse-cdn.com/v4/letter/p/76d3ee/32.png) [@python-user](https://community.temporal.io/u/python-user)\
**Post date:** [January 9, 2024, 1:37am UTC](https://community.temporal.io/t/permission-denied-on-db-after-schema-upgrade/10604/1 "2024-01-09T01:37:58Z")

</div>

Hello,

I just updated to temporao 1.22.3 from 1.20.3. I used the following to upgrade the DB schema

```auto

temporal-sql-tool --ep --pl postgres12 --db temporal update-schema -d ./schema/postgresql/v96/temporal/versioned

```

Now when I enter temporal UI to view a workflow, I see a 500 with the message “pq: permission denied for table task\_queue\_user\_data”

Would appreciate advice on how to remedy this issue quickly.
