Skip to content

Commit

Permalink
fix(frontend): upgrade pg version to 9.5.0 (#11179)
Browse files Browse the repository at this point in the history
  • Loading branch information
xxchan authored Jul 25, 2023
1 parent 57b7632 commit a4a5dc4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion 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);
----
PostgreSQL 8.3
PostgreSQL 9.5
2 changes: 1 addition & 1 deletion e2e_test/batch/functions/setting.part
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
query T
SELECT current_setting('server_version');
----
8.3.0
9.5.0

query I
SELECT CAST(current_setting('server_version_num') AS INT) / 100 AS version;
Expand Down
2 changes: 1 addition & 1 deletion src/common/src/session_config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ pub struct ConfigMap {
batch_parallelism: BatchParallelism,

/// The version of PostgreSQL that Risingwave claims to be.
#[educe(Default(expression = "ConfigString::<SERVER_VERSION>(String::from(\"8.3.0\"))"))]
#[educe(Default(expression = "ConfigString::<SERVER_VERSION>(String::from(\"9.5.0\"))"))]
server_version: ServerVersion,
server_version_num: ServerVersionNum,

Expand Down
2 changes: 1 addition & 1 deletion src/frontend/src/binder/expr/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@ impl Binder {
("rw_vnode", raw_call(ExprType::Vnode)),
// TODO: choose which pg version we should return.
("version", raw_literal(ExprImpl::literal_varchar(format!(
"PostgreSQL 8.3-RisingWave-{} ({})",
"PostgreSQL 9.5-RisingWave-{} ({})",
RW_VERSION,
GIT_SHA
)))),
Expand Down
2 changes: 1 addition & 1 deletion src/utils/pgwire/src/pg_protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@ where
BeParameterStatusMessage::StandardConformingString("on"),
))?;
self.write_no_flush(&BeMessage::ParameterStatus(
BeParameterStatusMessage::ServerVersion("8.3.0"),
BeParameterStatusMessage::ServerVersion("9.5.0"),
))?;
if let Some(application_name) = &status.application_name {
self.write_no_flush(&BeMessage::ParameterStatus(
Expand Down

0 comments on commit a4a5dc4

Please sign in to comment.