mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-29 11:00:38 +00:00
schema
This commit is contained in:
@@ -66,6 +66,7 @@ diesel::table! {
|
||||
shard_number -> Int4,
|
||||
shard_count -> Int4,
|
||||
shard_stripe_size -> Int4,
|
||||
// pageserver generation
|
||||
generation -> Nullable<Int4>,
|
||||
generation_pageserver -> Nullable<Int8>,
|
||||
placement_policy -> Varchar,
|
||||
@@ -92,6 +93,7 @@ diesel::table! {
|
||||
tenant_id -> Varchar,
|
||||
timeline_id -> Varchar,
|
||||
start_lsn -> PgLsn,
|
||||
// sk config generation
|
||||
generation -> Int4,
|
||||
sk_set -> Array<Nullable<Int8>>,
|
||||
new_sk_set -> Nullable<Array<Nullable<Int8>>>,
|
||||
@@ -100,6 +102,25 @@ diesel::table! {
|
||||
}
|
||||
}
|
||||
|
||||
// Operational table that contains pending notifications for Safekeepers
|
||||
// about tenant shard pageserver-side attachments.
|
||||
// Rows are removed when the notification was acknowledged by the Safekeeper.
|
||||
diesel::table! {
|
||||
use diesel::sql_types::*;
|
||||
sk_ps_discovery(tenant_id, shard_number, shard_count, ps_generation, sk_id) {
|
||||
tenant_id -> Varchar,
|
||||
shard_number -> Int4,
|
||||
shard_count -> Int4,
|
||||
ps_generation -> Int4,
|
||||
sk_id -> Int8,
|
||||
// payload
|
||||
ps_id -> Int8,
|
||||
// tracking of reliable delivery
|
||||
created_at -> Timestamptz,
|
||||
last_attempt_at -> Nullable<Timestamptz>,
|
||||
}
|
||||
}
|
||||
|
||||
diesel::allow_tables_to_appear_in_same_query!(
|
||||
controllers,
|
||||
metadata_health,
|
||||
@@ -109,4 +130,5 @@ diesel::allow_tables_to_appear_in_same_query!(
|
||||
tenant_shards,
|
||||
timeline_imports,
|
||||
timelines,
|
||||
sk_ps_discovery,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user