Skip to content

Commit

Permalink
Set application name on connect (#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjmiller609 authored Dec 18, 2023
1 parent d209e56 commit 62c2b90
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tembo-operator/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tembo-operator/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "controller"
description = "Tembo Operator for Postgres"
version = "0.28.0"
version = "0.28.1"
edition = "2021"
default-run = "controller"
license = "Apache-2.0"
Expand Down
5 changes: 4 additions & 1 deletion tembo-operator/src/psql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ impl PsqlCommand {
pub async fn execute(&self) -> Result<PsqlOutput, Action> {
let psql_command = vec![
String::from("psql"),
self.database.clone(),
format!(
"postgres://?dbname={}&application_name=tembo-system",
self.database.clone()
),
String::from("-c"),
self.command.clone(),
];
Expand Down

0 comments on commit 62c2b90

Please sign in to comment.