update table magic

This commit is contained in:
GroovieGermanikus 2024-02-28 08:25:16 +01:00
parent 25137f95cf
commit c46f557a49
No known key found for this signature in database
GPG Key ID: 5B6EB831A5CD2015
3 changed files with 4 additions and 2 deletions

View File

@ -21,3 +21,4 @@ The database schema is defined in the [migration.sql](migration.sql) file.
For new database installations start with the [init-database.sql](init-database.sql) file.
Required is a PostgreSQL database (tested version 15).
(optional) Create tablespaces following the naming convention (see postgres.rs and [init-database.sql](init-database.sql)).

View File

@ -302,6 +302,7 @@ async fn start_tracking_blocks(
let atl_store = atl_store.clone();
tokio::spawn(async move {
info!("spawn task");
// to support address lookup tables delay processing a littlebit
tokio::time::sleep(Duration::from_secs(2)).await;
let block_info = BlockInfo::new(atl_store, &block).await;

View File

@ -194,7 +194,7 @@ impl PostgresSession {
.await
.unwrap();
// space1,space2,space3
// space1, space2, space3
let temp_spaces = spaces.iter()
.map(|space| space.get::<&str, &str>("spcname"))
.join(",");
@ -212,7 +212,7 @@ impl PostgresSession {
.await
.unwrap()
.get("temp_tablespaces");
info!("Configured temp_tablespaces={}", temp_tablespaces);
info!("Parameter temp_tablespaces={}", temp_tablespaces);
}
pub async fn drop_temp_table(&self, table: String) -> anyhow::Result<()> {