This commit is contained in:
GroovieGermanikus 2024-02-27 21:28:33 +01:00
parent c9a95a1d25
commit 9e4be4b691
No known key found for this signature in database
GPG Key ID: 5B6EB831A5CD2015
1 changed files with 10 additions and 1 deletions

View File

@ -196,10 +196,19 @@ impl PostgresSession {
if tablespace_exists {
info!("Tablespace {} exists - use it for temp tables", TEMP_TABLESPACE);
self.client
.execute("SET temp_tablespaces=$1", &[&TEMP_TABLESPACE])
// .execute("SET temp_tablespaces=$1", &[&TEMP_TABLESPACE])
.execute("SET temp_tablespaces=mango_tempspace", &[])
.await
.unwrap();
}
let temp_tablespaces: String = self
.client
.query_one("show temp_tablespaces", &[])
.await
.unwrap()
.get("temp_tablespaces");
info!("Configured temp_tablespaces={}", temp_tablespaces);
}
pub async fn drop_temp_table(&self, table: String) -> anyhow::Result<()> {