Skip to content

Log Postgres #1892

Discussion options

You must be logged in to vote

Hey @legithubdeaymeric,

We want to have in the posgres logs, the role used by posgrest, not the anonymous role.

Hm, could you show a sample of how your logs look like? I believe they should already include a set local role = '<jwt_role>'.

Additionally, if you want to identify PostgREST inside pg logs, you could use an application_name on the connection string. Like:

db-uri="postgres://user@localhost/mydb?application_name=pgrest"

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by wolfgangwalther
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1887 on July 06, 2021 18:00.