镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

Repository files navigation

Postgres internals

This crate gives Rust access to whatever Postgres internals we need to make PgDog work. It's compiled against a pinned commit from master, so only internals we can rely on are the ones that are backwards compatible. Thankfully, for Postgres, that's most of them.

Features

GUC

This crate provides access to GUC (Grand Unified Configuration) table for all settings. This gives us the ability to check if a setting we receive via SET is valid, e.g.,:

SET intervalstyle TO 'sdf';

can be checked against

crate::guc::GUC.get("IntervalStyle").unwrap().options;

We can also see if a user tries to configure a setting that Postgres doesn't have. Postgres doesn't remove settings (or renames them since Postgres 10), so this will pretty much always work.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages