Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
wip
  • Loading branch information
niclaflamme committed Aug 7, 2025
commit dedcff88bf406275c6eadd445f0e1dba868580cc
38 changes: 38 additions & 0 deletions pgdog/src/frontend/logical_session.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
//! # Logical Session Management in PgDog
//!
//! PgDog hides your shard topology and presents a single Postgres endpoint.
//!
//! When the client issues session commands (e.g. `SET`), `LogicalSession` records
//! them to facilitate the replication of each command to every true server's
//! session before routing queries.

// -----------------------------------------------------------------------------
// ----- LogicalSession --------------------------------------------------------

#[derive(Debug)]
pub struct LogicalSession {}

impl LogicalSession {
pub fn new() -> Self {
LogicalSession {}
}
}

// -----------------------------------------------------------------------------
// ----- LogicalSession : Public methods ---------------------------------------

impl LogicalSession {}

// -----------------------------------------------------------------------------
// ----- LogicalSession : Private methods --------------------------------------

impl LogicalSession {}

// -----------------------------------------------------------------------------
// ----- SessionError ----------------------------------------------------------

#[derive(Debug)]
pub enum LogicalSessionError {}

// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
Loading