sfackler / rust-postgres

Native PostgreSQL driver for the Rust programming language
Apache License 2.0
3.43k stars 436 forks source link

Tokio runtime error. #1058

Closed yuyang-ok closed 1 year ago

yuyang-ok commented 1 year ago

running 1 test
load sql for '["select srid, id from t_srid_dim;"]'
thread 'pgsql::tests::test_pgsql_view' panicked at /home/yuyang/.cargo/registry/src/index.crates.io-6f17d22bba15001f/postgres-0.19.5/src/connection.rs:66:22:
Cannot start a runtime from within a runtime. This happens because a function (like `block_on`) attempted to block the current thread while the thread is being used to drive asynchronous tasks.
stack backtrace:
   0: rust_begin_unwind
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/std/src/panicking.rs:617:5
   1: core::panicking::panic_fmt
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/panicking.rs:67:14
   2: tokio::runtime::context::runtime::enter_runtime
             at /home/yuyang/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.1/src/runtime/context/runtime.rs:68:5
   3: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/yuyang/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.1/src/runtime/scheduler/current_thread.rs:167:9
   4: tokio::runtime::runtime::Runtime::block_on
             at /home/yuyang/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.1/src/runtime/runtime.rs:311:47
   5: postgres::connection::Connection::poll_block_on
             at /home/yuyang/.cargo/registry/src/index.crates.io-6f17d22bba15001f/postgres-0.19.5/src/connection.rs:66:9
   6: postgres::client::Client::close_inner
             at /home/yuyang/.cargo/registry/src/index.crates.io-6f17d22bba15001f/postgres-0.19.5/src/client.rs:551:9
   7: <postgres::client::Client as core::ops::drop::Drop>::drop
             at /home/yuyang/.cargo/registry/src/index.crates.io-6f17d22bba15001f/postgres-0.19.5/src/client.rs:20:17
   8: core::ptr::drop_in_place<postgres::client::Client>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
   9: core::ptr::drop_in_place<r2d2::Conn<postgres::client::Client>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  10: core::ptr::drop_in_place<r2d2::IdleConn<postgres::client::Client>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  11: core::ptr::drop_in_place<[r2d2::IdleConn<postgres::client::Client>]>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  12: <alloc::vec::Vec<T,A> as core::ops::drop::Drop>::drop
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/alloc/src/vec/mod.rs:3013:13
  13: core::ptr::drop_in_place<alloc::vec::Vec<r2d2::IdleConn<postgres::client::Client>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  14: core::ptr::drop_in_place<r2d2::PoolInternals<postgres::client::Client>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  15: core::ptr::drop_in_place<core::cell::UnsafeCell<r2d2::PoolInternals<postgres::client::Client>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  16: core::ptr::drop_in_place<lock_api::mutex::Mutex<parking_lot::raw_mutex::RawMutex,r2d2::PoolInternals<postgres::client::Client>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  17: core::ptr::drop_in_place<r2d2::SharedPool<r2d2_postgres::PostgresConnectionManager<tokio_postgres::tls::NoTls>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  18: alloc::sync::Arc<T,A>::drop_slow
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/alloc/src/sync.rs:1751:18
  19: <alloc::sync::Arc<T,A> as core::ops::drop::Drop>::drop
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/alloc/src/sync.rs:2407:13
  20: core::ptr::drop_in_place<alloc::sync::Arc<r2d2::SharedPool<r2d2_postgres::PostgresConnectionManager<tokio_postgres::tls::NoTls>>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  21: core::ptr::drop_in_place<r2d2::Pool<r2d2_postgres::PostgresConnectionManager<tokio_postgres::tls::NoTls>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  22: alloc::sync::Arc<T,A>::drop_slow
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/alloc/src/sync.rs:1751:18
  23: <alloc::sync::Arc<T,A> as core::ops::drop::Drop>::drop
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/alloc/src/sync.rs:2407:13
  24: core::ptr::drop_in_place<alloc::sync::Arc<r2d2::Pool<r2d2_postgres::PostgresConnectionManager<tokio_postgres::tls::NoTls>>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  25: core::ptr::drop_in_place<datasources::datasource::VqlDatasourcePool>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  26: core::ptr::drop_in_place<datasources::provider_datasource_view::FabricDatasourceView>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  27: core::ptr::drop_in_place<dyn datafusion::datasource::datasource::TableProvider>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  28: alloc::sync::Arc<T,A>::drop_slow
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/alloc/src/sync.rs:1751:18
  29: <alloc::sync::Arc<T,A> as core::ops::drop::Drop>::drop
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/alloc/src/sync.rs:2407:13
  30: core::ptr::drop_in_place<alloc::sync::Arc<dyn datafusion::datasource::datasource::TableProvider>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  31: core::ptr::drop_in_place<core::cell::UnsafeCell<alloc::sync::Arc<dyn datafusion::datasource::datasource::TableProvider>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  32: core::ptr::drop_in_place<dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::datasource::datasource::TableProvider>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  33: core::ptr::drop_in_place<(alloc::string::String,dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::datasource::datasource::TableProvider>>)>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  34: core::ptr::mut_ptr::<impl *mut T>::drop_in_place
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mut_ptr.rs:1432:18
  35: hashbrown::raw::inner::Bucket<T>::drop
             at /home/yuyang/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hashbrown-0.14.0/src/raw/mod.rs:581:9
  36: hashbrown::raw::inner::RawTable<T,A>::drop_elements
             at /home/yuyang/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hashbrown-0.14.0/src/raw/mod.rs:1038:17
  37: <hashbrown::raw::inner::RawTable<T,A> as core::ops::drop::Drop>::drop
             at /home/yuyang/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hashbrown-0.14.0/src/raw/mod.rs:2711:17
  38: core::ptr::drop_in_place<hashbrown::raw::inner::RawTable<(alloc::string::String,dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::datasource::datasource::TableProvider>>)>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  39: core::ptr::drop_in_place<hashbrown::map::HashMap<alloc::string::String,dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::datasource::datasource::TableProvider>>,std::collections::hash::map::RandomState>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  40: core::ptr::drop_in_place<core::cell::UnsafeCell<hashbrown::map::HashMap<alloc::string::String,dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::datasource::datasource::TableProvider>>,std::collections::hash::map::RandomState>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  41: core::ptr::drop_in_place<lock_api::rwlock::RwLock<dashmap::lock::RawRwLock,hashbrown::map::HashMap<alloc::string::String,dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::datasource::datasource::TableProvider>>,std::collections::hash::map::RandomState>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  42: core::ptr::drop_in_place<[lock_api::rwlock::RwLock<dashmap::lock::RawRwLock,hashbrown::map::HashMap<alloc::string::String,dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::datasource::datasource::TableProvider>>,std::collections::hash::map::RandomState>>]>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  43: core::ptr::drop_in_place<alloc::boxed::Box<[lock_api::rwlock::RwLock<dashmap::lock::RawRwLock,hashbrown::map::HashMap<alloc::string::String,dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::datasource::datasource::TableProvider>>,std::collections::hash::map::RandomState>>]>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  44: core::ptr::drop_in_place<dashmap::DashMap<alloc::string::String,alloc::sync::Arc<dyn datafusion::datasource::datasource::TableProvider>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  45: core::ptr::drop_in_place<datafusion::catalog::schema::MemorySchemaProvider>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  46: core::ptr::drop_in_place<dyn datafusion::catalog::schema::SchemaProvider>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  47: alloc::sync::Arc<T,A>::drop_slow
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/alloc/src/sync.rs:1751:18
  48: <alloc::sync::Arc<T,A> as core::ops::drop::Drop>::drop
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/alloc/src/sync.rs:2407:13
  49: core::ptr::drop_in_place<alloc::sync::Arc<dyn datafusion::catalog::schema::SchemaProvider>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  50: core::ptr::drop_in_place<core::cell::UnsafeCell<alloc::sync::Arc<dyn datafusion::catalog::schema::SchemaProvider>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  51: core::ptr::drop_in_place<dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::catalog::schema::SchemaProvider>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  52: core::ptr::drop_in_place<(alloc::string::String,dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::catalog::schema::SchemaProvider>>)>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  53: core::ptr::mut_ptr::<impl *mut T>::drop_in_place
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mut_ptr.rs:1432:18
  54: hashbrown::raw::inner::Bucket<T>::drop
             at /home/yuyang/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hashbrown-0.14.0/src/raw/mod.rs:581:9
  55: hashbrown::raw::inner::RawTable<T,A>::drop_elements
             at /home/yuyang/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hashbrown-0.14.0/src/raw/mod.rs:1038:17
  56: <hashbrown::raw::inner::RawTable<T,A> as core::ops::drop::Drop>::drop
             at /home/yuyang/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hashbrown-0.14.0/src/raw/mod.rs:2711:17
  57: core::ptr::drop_in_place<hashbrown::raw::inner::RawTable<(alloc::string::String,dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::catalog::schema::SchemaProvider>>)>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  58: core::ptr::drop_in_place<hashbrown::map::HashMap<alloc::string::String,dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::catalog::schema::SchemaProvider>>,std::collections::hash::map::RandomState>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  59: core::ptr::drop_in_place<core::cell::UnsafeCell<hashbrown::map::HashMap<alloc::string::String,dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::catalog::schema::SchemaProvider>>,std::collections::hash::map::RandomState>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  60: core::ptr::drop_in_place<lock_api::rwlock::RwLock<dashmap::lock::RawRwLock,hashbrown::map::HashMap<alloc::string::String,dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::catalog::schema::SchemaProvider>>,std::collections::hash::map::RandomState>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  61: core::ptr::drop_in_place<[lock_api::rwlock::RwLock<dashmap::lock::RawRwLock,hashbrown::map::HashMap<alloc::string::String,dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::catalog::schema::SchemaProvider>>,std::collections::hash::map::RandomState>>]>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  62: core::ptr::drop_in_place<alloc::boxed::Box<[lock_api::rwlock::RwLock<dashmap::lock::RawRwLock,hashbrown::map::HashMap<alloc::string::String,dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::catalog::schema::SchemaProvider>>,std::collections::hash::map::RandomState>>]>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  63: core::ptr::drop_in_place<dashmap::DashMap<alloc::string::String,alloc::sync::Arc<dyn datafusion::catalog::schema::SchemaProvider>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  64: core::ptr::drop_in_place<datafusion::catalog::catalog::MemoryCatalogProvider>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  65: core::ptr::drop_in_place<dyn datafusion::catalog::catalog::CatalogProvider>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  66: alloc::sync::Arc<T,A>::drop_slow
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/alloc/src/sync.rs:1751:18
  67: <alloc::sync::Arc<T,A> as core::ops::drop::Drop>::drop
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/alloc/src/sync.rs:2407:13
  68: core::ptr::drop_in_place<alloc::sync::Arc<dyn datafusion::catalog::catalog::CatalogProvider>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  69: core::ptr::drop_in_place<core::cell::UnsafeCell<alloc::sync::Arc<dyn datafusion::catalog::catalog::CatalogProvider>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  70: core::ptr::drop_in_place<dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::catalog::catalog::CatalogProvider>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  71: core::ptr::drop_in_place<(alloc::string::String,dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::catalog::catalog::CatalogProvider>>)>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  72: core::ptr::mut_ptr::<impl *mut T>::drop_in_place
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mut_ptr.rs:1432:18
  73: hashbrown::raw::inner::Bucket<T>::drop
             at /home/yuyang/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hashbrown-0.14.0/src/raw/mod.rs:581:9
  74: hashbrown::raw::inner::RawTable<T,A>::drop_elements
             at /home/yuyang/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hashbrown-0.14.0/src/raw/mod.rs:1038:17
  75: <hashbrown::raw::inner::RawTable<T,A> as core::ops::drop::Drop>::drop
             at /home/yuyang/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hashbrown-0.14.0/src/raw/mod.rs:2711:17
  76: core::ptr::drop_in_place<hashbrown::raw::inner::RawTable<(alloc::string::String,dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::catalog::catalog::CatalogProvider>>)>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  77: core::ptr::drop_in_place<hashbrown::map::HashMap<alloc::string::String,dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::catalog::catalog::CatalogProvider>>,std::collections::hash::map::RandomState>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  78: core::ptr::drop_in_place<core::cell::UnsafeCell<hashbrown::map::HashMap<alloc::string::String,dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::catalog::catalog::CatalogProvider>>,std::collections::hash::map::RandomState>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  79: core::ptr::drop_in_place<lock_api::rwlock::RwLock<dashmap::lock::RawRwLock,hashbrown::map::HashMap<alloc::string::String,dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::catalog::catalog::CatalogProvider>>,std::collections::hash::map::RandomState>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  80: core::ptr::drop_in_place<[lock_api::rwlock::RwLock<dashmap::lock::RawRwLock,hashbrown::map::HashMap<alloc::string::String,dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::catalog::catalog::CatalogProvider>>,std::collections::hash::map::RandomState>>]>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  81: core::ptr::drop_in_place<alloc::boxed::Box<[lock_api::rwlock::RwLock<dashmap::lock::RawRwLock,hashbrown::map::HashMap<alloc::string::String,dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::catalog::catalog::CatalogProvider>>,std::collections::hash::map::RandomState>>]>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  82: core::ptr::drop_in_place<dashmap::DashMap<alloc::string::String,alloc::sync::Arc<dyn datafusion::catalog::catalog::CatalogProvider>>>

running 1 test
load sql for '["select srid, id from t_srid_dim;"]'
thread 'pgsql::tests::test_pgsql_view' panicked at /home/yuyang/.cargo/registry/src/index.crates.io-6f17d22bba15001f/postgres-0.19.5/src/connection.rs:66:22:
Cannot start a runtime from within a runtime. This happens because a function (like `block_on`) attempted to block the current thread while the thread is being used to drive asynchronous tasks.
stack backtrace:
   0: rust_begin_unwind
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/std/src/panicking.rs:617:5
   1: core::panicking::panic_fmt
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/panicking.rs:67:14
   2: tokio::runtime::context::runtime::enter_runtime
             at /home/yuyang/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.1/src/runtime/context/runtime.rs:68:5
   3: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/yuyang/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.1/src/runtime/scheduler/current_thread.rs:167:9
   4: tokio::runtime::runtime::Runtime::block_on
             at /home/yuyang/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.1/src/runtime/runtime.rs:311:47
   5: postgres::connection::Connection::poll_block_on
             at /home/yuyang/.cargo/registry/src/index.crates.io-6f17d22bba15001f/postgres-0.19.5/src/connection.rs:66:9
   6: postgres::client::Client::close_inner
             at /home/yuyang/.cargo/registry/src/index.crates.io-6f17d22bba15001f/postgres-0.19.5/src/client.rs:551:9
   7: <postgres::client::Client as core::ops::drop::Drop>::drop
             at /home/yuyang/.cargo/registry/src/index.crates.io-6f17d22bba15001f/postgres-0.19.5/src/client.rs:20:17
   8: core::ptr::drop_in_place<postgres::client::Client>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
   9: core::ptr::drop_in_place<r2d2::Conn<postgres::client::Client>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  10: core::ptr::drop_in_place<r2d2::IdleConn<postgres::client::Client>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  11: core::ptr::drop_in_place<[r2d2::IdleConn<postgres::client::Client>]>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  12: <alloc::vec::Vec<T,A> as core::ops::drop::Drop>::drop
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/alloc/src/vec/mod.rs:3013:13
  13: core::ptr::drop_in_place<alloc::vec::Vec<r2d2::IdleConn<postgres::client::Client>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  14: core::ptr::drop_in_place<r2d2::PoolInternals<postgres::client::Client>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  15: core::ptr::drop_in_place<core::cell::UnsafeCell<r2d2::PoolInternals<postgres::client::Client>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  16: core::ptr::drop_in_place<lock_api::mutex::Mutex<parking_lot::raw_mutex::RawMutex,r2d2::PoolInternals<postgres::client::Client>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  17: core::ptr::drop_in_place<r2d2::SharedPool<r2d2_postgres::PostgresConnectionManager<tokio_postgres::tls::NoTls>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  18: alloc::sync::Arc<T,A>::drop_slow
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/alloc/src/sync.rs:1751:18
  19: <alloc::sync::Arc<T,A> as core::ops::drop::Drop>::drop
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/alloc/src/sync.rs:2407:13
  20: core::ptr::drop_in_place<alloc::sync::Arc<r2d2::SharedPool<r2d2_postgres::PostgresConnectionManager<tokio_postgres::tls::NoTls>>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  21: core::ptr::drop_in_place<r2d2::Pool<r2d2_postgres::PostgresConnectionManager<tokio_postgres::tls::NoTls>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  22: alloc::sync::Arc<T,A>::drop_slow
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/alloc/src/sync.rs:1751:18
  23: <alloc::sync::Arc<T,A> as core::ops::drop::Drop>::drop
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/alloc/src/sync.rs:2407:13
  24: core::ptr::drop_in_place<alloc::sync::Arc<r2d2::Pool<r2d2_postgres::PostgresConnectionManager<tokio_postgres::tls::NoTls>>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  25: core::ptr::drop_in_place<datasources::datasource::VqlDatasourcePool>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  26: core::ptr::drop_in_place<datasources::provider_datasource_view::FabricDatasourceView>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  27: core::ptr::drop_in_place<dyn datafusion::datasource::datasource::TableProvider>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  28: alloc::sync::Arc<T,A>::drop_slow
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/alloc/src/sync.rs:1751:18
  29: <alloc::sync::Arc<T,A> as core::ops::drop::Drop>::drop
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/alloc/src/sync.rs:2407:13
  30: core::ptr::drop_in_place<alloc::sync::Arc<dyn datafusion::datasource::datasource::TableProvider>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  31: core::ptr::drop_in_place<core::cell::UnsafeCell<alloc::sync::Arc<dyn datafusion::datasource::datasource::TableProvider>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  32: core::ptr::drop_in_place<dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::datasource::datasource::TableProvider>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  33: core::ptr::drop_in_place<(alloc::string::String,dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::datasource::datasource::TableProvider>>)>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  34: core::ptr::mut_ptr::<impl *mut T>::drop_in_place
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mut_ptr.rs:1432:18
  35: hashbrown::raw::inner::Bucket<T>::drop
             at /home/yuyang/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hashbrown-0.14.0/src/raw/mod.rs:581:9
  36: hashbrown::raw::inner::RawTable<T,A>::drop_elements
             at /home/yuyang/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hashbrown-0.14.0/src/raw/mod.rs:1038:17
  37: <hashbrown::raw::inner::RawTable<T,A> as core::ops::drop::Drop>::drop
             at /home/yuyang/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hashbrown-0.14.0/src/raw/mod.rs:2711:17
  38: core::ptr::drop_in_place<hashbrown::raw::inner::RawTable<(alloc::string::String,dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::datasource::datasource::TableProvider>>)>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  39: core::ptr::drop_in_place<hashbrown::map::HashMap<alloc::string::String,dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::datasource::datasource::TableProvider>>,std::collections::hash::map::RandomState>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  40: core::ptr::drop_in_place<core::cell::UnsafeCell<hashbrown::map::HashMap<alloc::string::String,dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::datasource::datasource::TableProvider>>,std::collections::hash::map::RandomState>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  41: core::ptr::drop_in_place<lock_api::rwlock::RwLock<dashmap::lock::RawRwLock,hashbrown::map::HashMap<alloc::string::String,dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::datasource::datasource::TableProvider>>,std::collections::hash::map::RandomState>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  42: core::ptr::drop_in_place<[lock_api::rwlock::RwLock<dashmap::lock::RawRwLock,hashbrown::map::HashMap<alloc::string::String,dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::datasource::datasource::TableProvider>>,std::collections::hash::map::RandomState>>]>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  43: core::ptr::drop_in_place<alloc::boxed::Box<[lock_api::rwlock::RwLock<dashmap::lock::RawRwLock,hashbrown::map::HashMap<alloc::string::String,dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::datasource::datasource::TableProvider>>,std::collections::hash::map::RandomState>>]>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  44: core::ptr::drop_in_place<dashmap::DashMap<alloc::string::String,alloc::sync::Arc<dyn datafusion::datasource::datasource::TableProvider>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  45: core::ptr::drop_in_place<datafusion::catalog::schema::MemorySchemaProvider>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  46: core::ptr::drop_in_place<dyn datafusion::catalog::schema::SchemaProvider>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  47: alloc::sync::Arc<T,A>::drop_slow
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/alloc/src/sync.rs:1751:18
  48: <alloc::sync::Arc<T,A> as core::ops::drop::Drop>::drop
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/alloc/src/sync.rs:2407:13
  49: core::ptr::drop_in_place<alloc::sync::Arc<dyn datafusion::catalog::schema::SchemaProvider>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  50: core::ptr::drop_in_place<core::cell::UnsafeCell<alloc::sync::Arc<dyn datafusion::catalog::schema::SchemaProvider>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  51: core::ptr::drop_in_place<dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::catalog::schema::SchemaProvider>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  52: core::ptr::drop_in_place<(alloc::string::String,dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::catalog::schema::SchemaProvider>>)>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  53: core::ptr::mut_ptr::<impl *mut T>::drop_in_place
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mut_ptr.rs:1432:18
  54: hashbrown::raw::inner::Bucket<T>::drop
             at /home/yuyang/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hashbrown-0.14.0/src/raw/mod.rs:581:9
  55: hashbrown::raw::inner::RawTable<T,A>::drop_elements
             at /home/yuyang/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hashbrown-0.14.0/src/raw/mod.rs:1038:17
  56: <hashbrown::raw::inner::RawTable<T,A> as core::ops::drop::Drop>::drop
             at /home/yuyang/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hashbrown-0.14.0/src/raw/mod.rs:2711:17
  57: core::ptr::drop_in_place<hashbrown::raw::inner::RawTable<(alloc::string::String,dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::catalog::schema::SchemaProvider>>)>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  58: core::ptr::drop_in_place<hashbrown::map::HashMap<alloc::string::String,dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::catalog::schema::SchemaProvider>>,std::collections::hash::map::RandomState>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  59: core::ptr::drop_in_place<core::cell::UnsafeCell<hashbrown::map::HashMap<alloc::string::String,dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::catalog::schema::SchemaProvider>>,std::collections::hash::map::RandomState>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  60: core::ptr::drop_in_place<lock_api::rwlock::RwLock<dashmap::lock::RawRwLock,hashbrown::map::HashMap<alloc::string::String,dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::catalog::schema::SchemaProvider>>,std::collections::hash::map::RandomState>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  61: core::ptr::drop_in_place<[lock_api::rwlock::RwLock<dashmap::lock::RawRwLock,hashbrown::map::HashMap<alloc::string::String,dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::catalog::schema::SchemaProvider>>,std::collections::hash::map::RandomState>>]>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  62: core::ptr::drop_in_place<alloc::boxed::Box<[lock_api::rwlock::RwLock<dashmap::lock::RawRwLock,hashbrown::map::HashMap<alloc::string::String,dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::catalog::schema::SchemaProvider>>,std::collections::hash::map::RandomState>>]>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  63: core::ptr::drop_in_place<dashmap::DashMap<alloc::string::String,alloc::sync::Arc<dyn datafusion::catalog::schema::SchemaProvider>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  64: core::ptr::drop_in_place<datafusion::catalog::catalog::MemoryCatalogProvider>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  65: core::ptr::drop_in_place<dyn datafusion::catalog::catalog::CatalogProvider>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  66: alloc::sync::Arc<T,A>::drop_slow
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/alloc/src/sync.rs:1751:18
  67: <alloc::sync::Arc<T,A> as core::ops::drop::Drop>::drop
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/alloc/src/sync.rs:2407:13
  68: core::ptr::drop_in_place<alloc::sync::Arc<dyn datafusion::catalog::catalog::CatalogProvider>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  69: core::ptr::drop_in_place<core::cell::UnsafeCell<alloc::sync::Arc<dyn datafusion::catalog::catalog::CatalogProvider>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  70: core::ptr::drop_in_place<dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::catalog::catalog::CatalogProvider>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  71: core::ptr::drop_in_place<(alloc::string::String,dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::catalog::catalog::CatalogProvider>>)>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  72: core::ptr::mut_ptr::<impl *mut T>::drop_in_place
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mut_ptr.rs:1432:18
  73: hashbrown::raw::inner::Bucket<T>::drop
             at /home/yuyang/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hashbrown-0.14.0/src/raw/mod.rs:581:9
  74: hashbrown::raw::inner::RawTable<T,A>::drop_elements
             at /home/yuyang/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hashbrown-0.14.0/src/raw/mod.rs:1038:17
  75: <hashbrown::raw::inner::RawTable<T,A> as core::ops::drop::Drop>::drop
             at /home/yuyang/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hashbrown-0.14.0/src/raw/mod.rs:2711:17
  76: core::ptr::drop_in_place<hashbrown::raw::inner::RawTable<(alloc::string::String,dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::catalog::catalog::CatalogProvider>>)>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  77: core::ptr::drop_in_place<hashbrown::map::HashMap<alloc::string::String,dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::catalog::catalog::CatalogProvider>>,std::collections::hash::map::RandomState>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  78: core::ptr::drop_in_place<core::cell::UnsafeCell<hashbrown::map::HashMap<alloc::string::String,dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::catalog::catalog::CatalogProvider>>,std::collections::hash::map::RandomState>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  79: core::ptr::drop_in_place<lock_api::rwlock::RwLock<dashmap::lock::RawRwLock,hashbrown::map::HashMap<alloc::string::String,dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::catalog::catalog::CatalogProvider>>,std::collections::hash::map::RandomState>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  80: core::ptr::drop_in_place<[lock_api::rwlock::RwLock<dashmap::lock::RawRwLock,hashbrown::map::HashMap<alloc::string::String,dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::catalog::catalog::CatalogProvider>>,std::collections::hash::map::RandomState>>]>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  81: core::ptr::drop_in_place<alloc::boxed::Box<[lock_api::rwlock::RwLock<dashmap::lock::RawRwLock,hashbrown::map::HashMap<alloc::string::String,dashmap::util::SharedValue<alloc::sync::Arc<dyn datafusion::catalog::catalog::CatalogProvider>>,std::collections::hash::map::RandomState>>]>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  82: core::ptr::drop_in_place<dashmap::DashMap<alloc::string::String,alloc::sync::Arc<dyn datafusion::catalog::catalog::CatalogProvider>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  83: core::ptr::drop_in_place<datafusion::catalog::catalog::MemoryCatalogList>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  84: core::ptr::drop_in_place<dyn datafusion::catalog::catalog::CatalogList>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  85: alloc::sync::Arc<T,A>::drop_slow
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/alloc/src/sync.rs:1751:18
  86: <alloc::sync::Arc<T,A> as core::ops::drop::Drop>::drop
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/alloc/src/sync.rs:2407:13
  87: core::ptr::drop_in_place<alloc::sync::Arc<dyn datafusion::catalog::catalog::CatalogList>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  88: core::ptr::drop_in_place<datafusion::execution::context::SessionState>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  89: core::ptr::drop_in_place<core::cell::UnsafeCell<datafusion::execution::context::SessionState>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  90: core::ptr::drop_in_place<lock_api::rwlock::RwLock<parking_lot::raw_rwlock::RawRwLock,datafusion::execution::context::SessionState>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  91: alloc::sync::Arc<T,A>::drop_slow
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/alloc/src/sync.rs:1751:18
  92: <alloc::sync::Arc<T,A> as core::ops::drop::Drop>::drop
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/alloc/src/sync.rs:2407:13
  93: core::ptr::drop_in_place<alloc::sync::Arc<lock_api::rwlock::RwLock<parking_lot::raw_rwlock::RawRwLock,datafusion::execution::context::SessionState>>>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
  94: core::ptr::drop_in_place<datafusion::execution::context::SessionContext>
             at /rustc/8131b9774ebcb6c162fcac71545a13543ec369e7/library/core/src/ptr/mod.rs:497:1
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

I am using postgres 0.19.5 .

sfackler commented 1 year ago

It looks like you are using the blocking postgres client in a nonblocking context in a tokio runtime. You should use tokio-postgres instead.