Support using connection pooling and use multiple threads to do Postgres db operations. The performance is improved from 1500 RPS to 40,000 RPS measured during validator start. Support multiple plugins at the same time.
30 lines
927 B
TOML
30 lines
927 B
TOML
[package]
|
|
authors = ["Solana Maintainers <maintainers@solana.foundation>"]
|
|
edition = "2018"
|
|
name = "solana-accountsdb-plugin-postgres"
|
|
description = "The Solana AccountsDb plugin for PostgreSQL database."
|
|
version = "1.9.0"
|
|
repository = "https://github.com/solana-labs/solana"
|
|
license = "Apache-2.0"
|
|
homepage = "https://solana.com/"
|
|
documentation = "https://docs.rs/solana-validator"
|
|
|
|
[lib]
|
|
crate-type = ["cdylib", "rlib"]
|
|
|
|
[dependencies]
|
|
bs58 = "0.4.0"
|
|
chrono = { version = "0.4.11", features = ["serde"] }
|
|
crossbeam-channel = "0.5"
|
|
log = "0.4.14"
|
|
postgres = { version = "0.19.2", features = ["with-chrono-0_4"] }
|
|
serde = "1.0.130"
|
|
serde_derive = "1.0.103"
|
|
serde_json = "1.0.67"
|
|
solana-accountsdb-plugin-interface = { path = "../accountsdb-plugin-interface", version = "=1.9.0" }
|
|
solana-logger = { path = "../logger", version = "=1.9.0" }
|
|
thiserror = "1.0.29"
|
|
|
|
[package.metadata.docs.rs]
|
|
targets = ["x86_64-unknown-linux-gnu"]
|