Skip to content

Commit

Permalink
Inital commit for Babelfish v2.12 (#3051)
Browse files Browse the repository at this point in the history
This commit contains the following changes:

    Add version info and upgrade test for 14.14.
    Add upgrade schedule file for 14.14.
    Update T-SQL extension version to 2.12.0 and add babelfishpg_tsql--2.11.0--2.12.0.sql upgrade script.

Signed-off-by: Sharu Goel [email protected]
  • Loading branch information
thephantomthief authored Oct 25, 2024
1 parent e598fde commit d47d57d
Show file tree
Hide file tree
Showing 6 changed files with 466 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/configuration/upgrade-test-configuration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ upgrade-version: [{
{
upgrade-path: [
{
version: '14.13',
version: '14.14',
upgrade-type: null
},
{
Expand Down
3 changes: 3 additions & 0 deletions .github/template/version-branch-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@
'14.13':
engine_branch: BABEL_2_10_STABLE__PG_14_13
extension_branch: BABEL_2_10_STABLE
'14.14':
engine_branch: BABEL_2_11_STABLE__PG_14_14
extension_branch: BABEL_2_11_STABLE
'source.latest':
engine_branch: latest
extension_branch: latest
Expand Down
2 changes: 1 addition & 1 deletion contrib/babelfishpg_tsql/Version.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
# places during the build process

PGTSQL_MAJOR_VERSION=2
PGTSQL_MINOR_VERSION=11
PGTSQL_MINOR_VERSION=12
PGTSQL_MICRO_VERSION=0

Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
-- complain if script is sourced in psql, rather than via ALTER EXTENSION
\echo Use "ALTER EXTENSION ""babelfishpg_tsql"" UPDATE TO '2.12.0'" to load this file. \quit

-- add 'sys' to search path for the convenience
SELECT set_config('search_path', 'sys, '||current_setting('search_path'), false);

-- Please add your SQLs here
/*
* Note: These SQL statements may get executed multiple times specially when some features get backpatched.
* So make sure that any SQL statement (DDL/DML) being added here can be executed multiple times without affecting
* final behaviour.
*/


-- After upgrade, always run analyze for all babelfish catalogs.
CALL sys.analyze_babelfish_catalogs();

-- Reset search_path to not affect any subsequent scripts
SELECT set_config('search_path', trim(leading 'sys, ' from current_setting('search_path')), false);
4 changes: 2 additions & 2 deletions contrib/babelfishpg_tsql/src/babelfish_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*-------------------------------------------------------------------------
*/

#define BABELFISH_VERSION_STR "2.11.0"
#define BABELFISH_INTERNAL_VERSION_STR "Babelfish 14.14.0.0"
#define BABELFISH_VERSION_STR "2.12.0"
#define BABELFISH_INTERNAL_VERSION_STR "Babelfish 14.15.0.0"
#define BABEL_COMPATIBILITY_VERSION "12.0.2000.8"
#define BABEL_COMPATIBILITY_MAJOR_VERSION "12"
Loading

0 comments on commit d47d57d

Please sign in to comment.