Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade declared pg version to 13.14.0 #15177

Merged
merged 3 commits into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions e2e_test/batch/catalog/version.slt.part
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
query T
select substring(version() from 1 for 14);
select substring(version() from 1 for 16);
----
PostgreSQL 9.5
PostgreSQL 13.14
6 changes: 3 additions & 3 deletions e2e_test/batch/functions/setting.slt.part
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
query T
SELECT current_setting('server_version');
----
9.5.0
13.14.0

query I
SELECT CAST(current_setting('server_version_num') AS INT) / 100 AS version;
SELECT current_setting('server_version_num') AS version;
----
905
130014

query T
SELECT set_config('client_min_messages', 'warning', false);
Expand Down
4 changes: 2 additions & 2 deletions src/common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ pub const UNKNOWN_GIT_SHA: &str = "unknown";

// The single source of truth of the pg parameters, Used in ConfigMap and current_cluster_version.
// The version of PostgreSQL that Risingwave claims to be.
pub const PG_VERSION: &str = "9.5.0";
pub const PG_VERSION: &str = "13.14.0";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line needs to be changed as well.

pub const SERVER_VERSION_NUM: i32 = 90500;

/// The version of PostgreSQL that Risingwave claims to be.
pub const SERVER_VERSION_NUM: i32 = 90500;
pub const SERVER_VERSION_NUM: i32 = 130014;
/// Shows the server-side character set encoding. At present, this parameter can be shown but not set, because the encoding is determined at database creation time. It is also the default value of `client_encoding`.
pub const SERVER_ENCODING: &str = "UTF8";
/// see <https://www.postgresql.org/docs/current/runtime-config-client.html#GUC-STANDARD-CONFORMING-STRINGS>
Expand Down
Loading