Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RMB-993: Set application_name for Postgres' pg_stat_activity #1157

Merged
merged 2 commits into from
May 30, 2024

Conversation

julianladisch
Copy link
Contributor

As a sysop I can

SELECT * FROM pg_stat_activity;

to display all database connections, including idle connections.

The application_name column shows vertx-pg-client, the default set by Vert.x:

https://github.com/eclipse-vertx/vertx-sql-client/blob/4.5.0/vertx-pg-client/src/main/java/io/vertx/pgclient/PgConnectOptions.java#L120

RMB should set this to module name + module version to indicate which module the database connection comes from.

…ivity

As a sysop I can

```
SELECT * FROM pg_stat_activity;
```

to display all database connections, including idle connections.

The `application_name` column shows `vertx-pg-client`, the default set by Vert.x:

https://github.com/eclipse-vertx/vertx-sql-client/blob/4.5.0/vertx-pg-client/src/main/java/io/vertx/pgclient/PgConnectOptions.java#L120

RMB should set this to module name + module version to indicate which module the database connection comes from.
Copy link

sonarcloud bot commented May 30, 2024

@julianladisch julianladisch merged commit 68a7928 into master May 30, 2024
4 checks passed
@julianladisch julianladisch deleted the RMB-993-application_name branch May 30, 2024 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants