From 3fbdce9ffde34344d181047b594b523e69b2dc4a Mon Sep 17 00:00:00 2001 From: Lev Date: Thu, 9 Nov 2023 10:16:01 -0800 Subject: [PATCH] Migration for 2.8.0 --- .../ubuntu-packages-and-docker-image.yml | 2 +- pgml-extension/Cargo.lock | 2 +- pgml-extension/Cargo.toml | 2 +- pgml-extension/sql/pgml--2.7.13--2.8.0.sql | 23 +++++++++++++++++++ pgml-sdks/pgml/Cargo.lock | 2 +- 5 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 pgml-extension/sql/pgml--2.7.13--2.8.0.sql diff --git a/.github/workflows/ubuntu-packages-and-docker-image.yml b/.github/workflows/ubuntu-packages-and-docker-image.yml index 0d9df7a7e..51261ed45 100644 --- a/.github/workflows/ubuntu-packages-and-docker-image.yml +++ b/.github/workflows/ubuntu-packages-and-docker-image.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: inputs: packageVersion: - default: "2.7.13" + default: "2.8.0" jobs: # # PostgresML extension. diff --git a/pgml-extension/Cargo.lock b/pgml-extension/Cargo.lock index fe83c4c3c..b31db4833 100644 --- a/pgml-extension/Cargo.lock +++ b/pgml-extension/Cargo.lock @@ -1723,7 +1723,7 @@ dependencies = [ [[package]] name = "pgml" -version = "2.7.13" +version = "2.8.0" dependencies = [ "anyhow", "blas", diff --git a/pgml-extension/Cargo.toml b/pgml-extension/Cargo.toml index 58d949533..ab3411447 100644 --- a/pgml-extension/Cargo.toml +++ b/pgml-extension/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pgml" -version = "2.7.13" +version = "2.8.0" edition = "2021" [lib] diff --git a/pgml-extension/sql/pgml--2.7.13--2.8.0.sql b/pgml-extension/sql/pgml--2.7.13--2.8.0.sql new file mode 100644 index 000000000..407036f77 --- /dev/null +++ b/pgml-extension/sql/pgml--2.7.13--2.8.0.sql @@ -0,0 +1,23 @@ +-- src/api.rs:691 +-- pgml::api::transform_stream +CREATE OR REPLACE FUNCTION pgml."transform_stream"( + "task" TEXT, /* alloc::string::String */ + "args" jsonb DEFAULT '{}', /* pgrx::datum::json::JsonB */ + "input" TEXT DEFAULT '', /* &str */ + "cache" bool DEFAULT false /* bool */ +) RETURNS SETOF TEXT /* alloc::string::String */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', 'transform_stream_string_wrapper'; + +-- src/api.rs:674 +-- pgml::api::transform_stream +CREATE OR REPLACE FUNCTION pgml."transform_stream"( + "task" jsonb, /* pgrx::datum::json::JsonB */ + "args" jsonb DEFAULT '{}', /* pgrx::datum::json::JsonB */ + "input" TEXT DEFAULT '', /* &str */ + "cache" bool DEFAULT false /* bool */ +) RETURNS SETOF TEXT /* alloc::string::String */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', 'transform_stream_json_wrapper'; diff --git a/pgml-sdks/pgml/Cargo.lock b/pgml-sdks/pgml/Cargo.lock index 9658a1f28..4bf5718b2 100644 --- a/pgml-sdks/pgml/Cargo.lock +++ b/pgml-sdks/pgml/Cargo.lock @@ -1233,7 +1233,7 @@ checksum = "9b2a4787296e9989611394c33f193f676704af1686e70b8f8033ab5ba9a35a94" [[package]] name = "pgml" -version = "0.9.4" +version = "0.9.5" dependencies = [ "anyhow", "async-trait",