Fix pg setup on Hosted Service - #640
Conversation
|
Warning Rate limit exceeded@DZakh has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 3 minutes and 48 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (1)
""" WalkthroughThis update introduces an option to reuse an existing empty PostgreSQL schema during initialization in the PgStorage module and integrates three new network variants into the Network enum in the chain_helpers module. The changes affect schema initialization logic and network categorization, including block threshold and tier assignment. Changes
Sequence Diagram(s)sequenceDiagram
participant Caller
participant PgStorage
participant Postgres
Caller->>PgStorage: make()
PgStorage->>Postgres: Query schema table names
PgStorage->>PgStorage: Check if schema is empty
alt Schema is empty
PgStorage->>PgStorage: Set reuseExistingPgSchema = true
else Schema not empty
PgStorage->>PgStorage: Set reuseExistingPgSchema = false
end
PgStorage->>PgStorage: makeInitializeTransaction(reuseExistingPgSchema)
PgStorage->>Postgres: Run initialization transaction
Possibly related PRs
Suggested reviewers
Poem
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit
New Features
Improvements