Skip to content

Commit 7aa8a8e

Browse files
Update screenshot
1 parent 2935cc0 commit 7aa8a8e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

articles/postgresql/flexible-server/how-to-troubleshooting-guides.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ To retrieve the text of those queries collected by query store, you need to log
6666
Using the PostgreSQL client of your choice, access the `azure_sys` database where query store data is stored.
6767
Once connected, query the `query_store.query_texts_view view` to retrieve the desired query text.
6868

69-
In the example shown below, we utilize Azure Cloud Shell and the `psql` tool to accomplish this task:
70-
7169
:::image type="content" source="./media/how-to-troubleshooting-guides/retrieve-query-text.png" alt-text="Screenshot of retrieving the Query Text.":::
7270

7371
### Retrieving the name of a user or role
@@ -79,6 +77,12 @@ To retrieve the username, you can query the `pg_roles` view or use the query sho
7977
SELECT 'UserID'::regrole;
8078
```
8179

80+
In the following example you would be retrieving the name of the user or role whose identifier is 24776.
81+
82+
```sql
83+
SELECT '24776'::regrole;
84+
```
85+
8286
:::image type="content" source="./media/how-to-troubleshooting-guides/retrieve-username.png" alt-text="Screenshot of retrieving the Username.":::
8387

8488

-3.01 KB
Loading

0 commit comments

Comments
 (0)