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

Rel16 cherry pick before fast forward #50

Closed
wants to merge 363 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
363 commits
Select commit Hold shift + click to select a range
ec44be4
Correct ODBC output file (#1522)
ZhenyeLee May 30, 2023
05fb8be
DMS - Allow TSQL System views to display BYTEA datatype information (…
basasairohan May 31, 2023
00a2cac
Fix datetimeoffset-timezone-* test failures (#1533)
Suthapalli-Ramya-satya-vasavi-srija Jun 1, 2023
d8fc54d
Initial Commit for Babelfish v3.3 (#1527)
hash-16 Jun 1, 2023
582aedf
Updated error message for sp_serveroption (#1536)
basasairohan Jun 2, 2023
9b7419f
Support PARSENAME() T-SQL function (#1540)
pratikzode Jun 7, 2023
fea1e67
Update linked server build instructions (#1553)
thephantomthief Jun 12, 2023
23f0b11
create proc/func/trigger, create/drop database, transaction statement…
kritika-0601 Jun 13, 2023
a80f17e
Add instructions to build Babelfish with kerberos authentication enab…
Deepesh125 Jun 14, 2023
f36d94f
Update linked server build instructions (#1555)
thephantomthief Jun 15, 2023
2ccf842
Fix permission issues for babelfish dump/restore (#1557)
aadityavermaa Jun 15, 2023
d1312f0
Fix Crash in FetchMoreBcpData (#1549)
KushaalShroff Jun 16, 2023
1b59741
Support reordered list of columns for bulk copy (#1561)
KushaalShroff Jun 16, 2023
dc54ad2
Support EOMONTH Transact-SQL function (#1556)
pratikzode Jun 21, 2023
47b8d41
Fix the bug: like expression will error out unexpectly (#1565)
forestkeeper Jun 21, 2023
c8c1b1d
Introduce drop_relation_refcnt_hook to be called during drop table va…
lejaokri Jun 23, 2023
28bd8a6
USE database statement shouldn't be allowed in proc/func/Trig (#1503)
Suthapalli-Ramya-satya-vasavi-srija Jun 26, 2023
aaa7127
Test file for pg_stat_statements_tsql (#1381)
kritika-0601 Jun 26, 2023
2b2d871
Supporting sp_testlinkedserver (#1551)
Shriramu2002 Jun 28, 2023
608e40b
Support sp_execute_postgresql procedure for extension statements (#1583)
HarshLunagariya Jun 29, 2023
13132c1
Drop Table variables after dropping cursors because cursors (#1584)
lejaokri Jun 30, 2023
383c486
Add ENABLE_TDS_LIB flag check in sp_testlinkedserver (#1588)
Shriramu2002 Jun 30, 2023
fa74bff
like with bracket work improper for some corner cases (#1541)
forestkeeper Jun 30, 2023
0f5efb8
Update dotnet tests to use .NET 7.0 (#1598)
thephantomthief Jul 7, 2023
ad3caee
Supporting connect timeout server option (#1576)
Shriramu2002 Jul 7, 2023
41fddef
[OSS-ONLY] Fix minor version upgrade github action workflow (#1594)
HarshLunagariya Jul 7, 2023
b94aa51
Creating babelfisgpg_unit Extension (#1586)
shashank-yenni Jul 10, 2023
ad26beb
sqlcmd hangs for select query with null XML values (#1591)
Suthapalli-Ramya-satya-vasavi-srija Jul 10, 2023
48d416c
Add instruction to build and configure Babelfish with SSL (#1599)
thephantomthief Jul 11, 2023
e0ab145
Fix backward scan flag for parallel queries (#1604)
rl626 Jul 12, 2023
a709a61
Fix hyperlink to build instructions (#1606)
thephantomthief Jul 13, 2023
28a3c1f
Include babelfishpg_unit.control file in babelfishpg_unit (#1610)
shashank-yenni Jul 14, 2023
a99d789
Fix UNION ORDER BY issue with multiple joins (#1570)
wboettge Jul 14, 2023
f203327
Update pg_stat_statement and sp_execute_postgresql tests (#1601)
HarshLunagariya Jul 17, 2023
486755b
GETDATE() and other date functions incorrectly return different value…
KushaalShroff Jul 18, 2023
2fea5da
Do not use local tz with datetimeoffset in jdbc tests (#1420)
staticlibs Jul 18, 2023
9ea3b47
Support HOST_ID() T-SQL function (#1620)
robverschoor Jul 19, 2023
e9583d3
OPENQUERY for Linked Servers does not work when used from user create…
thephantomthief Jul 19, 2023
0fcff6a
Remove unit tests (#1632)
ahmed-shameem Jul 19, 2023
0dacdce
Switch to showplan from statistics profile (#1639)
wboettge Jul 20, 2023
305df81
PG Regression Tests Migration for Babelfish (#1499)
RIC06X Jul 21, 2023
a7e7942
Support scripting of multiple views (#1593)
hash-16 Jul 24, 2023
6b69c0a
Add null check to datetime format functions (#1638)
Jakeowen1 Jul 25, 2023
dfbcf3e
Add tests for temp table index recreation (#1648)
timchang514 Jul 25, 2023
13ad287
Fix the order of OUTPUT params in a reordered parameter list of proce…
basasairohan Jul 26, 2023
51dbca2
Add upgrade tests (#1641)
KushaalShroff Jul 26, 2023
5c31d6a
Add upgrade script from 2.6 to 3.0 (#1651)
KushaalShroff Jul 26, 2023
c9034b8
Support extended property (#1590)
markrui3 Jul 28, 2023
e8a4cf9
Support WAITFOR TIME/DELAY (#1495)
RIC06X Jul 28, 2023
1ece7f8
Support IDENTITY() function in SELECT-INTO (#1659)
deepakshi-mittal Jul 31, 2023
d36fc80
Rethrow error in create_builtin_dbs() and create_msdb_if_not_exists()…
thephantomthief Aug 1, 2023
bec2230
Add upgrade script file babelfishpg_common--2.5.0--3.0.0.sql (#1666)
hash-16 Aug 1, 2023
d51b9cb
Support basic full text search CONTAINS predicate (#1609)
rl626 Aug 1, 2023
2aef179
Fixed crash in SPI_execute_plan during SELECT INTO with EXPLAIN mode …
lejaokri Aug 1, 2023
cc6773c
Fix output param values in reordered parameter list in which the para…
basasairohan Aug 2, 2023
98eb824
Fixed Crash in sp_describe_first_result_set with PRINT (#1670)
lejaokri Aug 2, 2023
f17f6da
Date functions returns time of transaction instead of time of query (…
KushaalShroff Aug 3, 2023
f51b806
Fixed Babelfish top_clause that accept number without parens (#1668)
RIC06X Aug 3, 2023
da0aa98
Fix uninitialized variables to avoid build error for weekly build (#1…
deepakshi-mittal Aug 3, 2023
5b0e2c0
Block executing T-SQL trigger when there is any Postgres' function, p…
Deepesh125 Aug 4, 2023
bb9d0a2
Support Smalldatetimefromparts Function (#1675)
hash-16 Aug 4, 2023
f4729c5
Resolve erros related to maybe-uninitialized flag (#1683)
HarshLunagariya Aug 4, 2023
156fdd4
Select-into identity issue fixed for bigint, numeric, decimal (#1677)
deepakshi-mittal Aug 4, 2023
cd12078
Loss of decimal digits when converting from REAL to DECIMAL (#1680)
ahmed-shameem Aug 4, 2023
60291c7
Support prefix terms in full text search CONTAINS (#1676)
rl626 Aug 4, 2023
6e7f34b
DATETIME with ".xx3" converted to string incorrectly as ".xx0" for an…
shah-nirmit Aug 7, 2023
cc742ce
Support T-SQL sp_enum_oledb_providers stored procedure (#1660)
thephantomthief Aug 7, 2023
c626918
Handle exception gracefully inside JDBC test framework if remote serv…
Deepesh125 Aug 7, 2023
5a16a95
fix crash in parallel query with enable_pg_hint 'on' 'server' (#1690)
rohit01010 Aug 8, 2023
13486a5
Implement sp_who (#1642)
robverschoor Aug 9, 2023
1a6252e
Add pg_sequence into ENR (#1682)
lejaokri Aug 9, 2023
44c37d0
Fix sp_xxxextendedproperty() procedure's flakey behaviour (#1699)
HarshLunagariya Aug 9, 2023
bbafab1
Added tests for temp object drop order (#1708)
timchang514 Aug 9, 2023
aa70962
Fix default behaviour of extension creation in all the database (#1713)
HarshLunagariya Aug 10, 2023
b7f562b
Add ORDER BY clause in sp_describe_first_result_set procedure (#1689)
basasairohan Aug 10, 2023
c81980c
Rewrite OBJECTPROPERTY T-SQL function in C (#1661)
basasairohan Aug 10, 2023
c417f29
Test cases for BABEL-4329 (#1715)
Deepesh125 Aug 10, 2023
ad9dc4a
Result Types for Union (#1723)
wboettge Aug 11, 2023
ff24da6
Handle build failures in is_ms_shipped function (#1728)
basasairohan Aug 11, 2023
dffc5a1
Change volatility of sys.replace function from STABLE to IMMUTABLE (#…
sumitj824 Aug 11, 2023
e297054
Do not access function fields after deleting its memory context (#1582)
staticlibs Aug 11, 2023
a484e62
Revert "Result Types for Union (#1723)" (#1734)
wboettge Aug 11, 2023
5d62727
Correct a test case for identity into (#1736)
deepakshi-mittal Aug 12, 2023
e404aba
Support generation terms in CONTAINS predicate (#1711)
rl626 Aug 15, 2023
9d8d857
Fix intermittent test failure in sp_enum_oledb_providers (#1738)
thephantomthief Aug 16, 2023
64b159d
Address review comments for sp_who (#1739)
robverschoor Aug 16, 2023
c365072
Drop Table Variables even when AbortCurTransaction is true (#1737)
lejaokri Aug 16, 2023
4e351ef
Revert Support for FULL TEXT SEARCH (#1743)
ahmed-shameem Aug 17, 2023
99270cc
Address sp_who test failure where an unexpected PG connection shows u…
robverschoor Aug 17, 2023
b6a4d03
Rename Babelfish C functions which have same name in engine to avoid …
sumitj824 Aug 18, 2023
13e28d9
Fix smalldatetimefromparts (#1745)
hash-16 Aug 18, 2023
2d6f721
Initial commit for Babelfish v3.4 (#1755)
basasairohan Aug 22, 2023
8be1969
Revert: Return syntax error for identity in select-into (#1763)
deepakshi-mittal Aug 23, 2023
4cb2871
removed tests with 'postgres' arg due to unexpected PG connections du…
robverschoor Aug 24, 2023
054fe99
Handle different behaviour with like escape null and like escape '' (…
vikashprajapati-cell Aug 24, 2023
73cc304
Support ALTER USER...WITH LOGIN (#1761)
rishabhtanwar29 Aug 24, 2023
28137f4
Restrict SELECT permission on sys.babelfish_extended_properties (#1767)
anju15bharti Aug 24, 2023
1142be7
Support the function COL_NAME() (#1703)
roshan0708 Aug 24, 2023
b01ed29
Add a call to ReleaseTupleDesc at the end of tsql_row_to_xml_raw() an…
Sairakan Aug 24, 2023
2c5c6a7
Add null check in exec_eval_datum for table types (#1776)
timchang514 Aug 24, 2023
2b413e8
Enable unit testing framework for babelfish (#1760)
ahmed-shameem Aug 25, 2023
13bcf23
Fix upgrade file changes for function COL_NAME() (#1783)
roshan0708 Aug 25, 2023
cb57615
Revert "Support WAITFOR TIME/DELAY (#1495)" (#1784)
RIC06X Aug 26, 2023
8d90da2
Implemented blocking of UNIQUE constraint/index on nullable column co…
rohit01010 Aug 28, 2023
2fa6568
Fixed power function to handle smallint, tinyint and null values. (#1…
siddhijain2 Aug 28, 2023
fa439c8
Release syscache entries in objectproperty_internal function (#1786)
basasairohan Aug 28, 2023
f33c5ad
Support switchoffset function (#1701)
hash-16 Aug 29, 2023
55b5870
Lookup for table in correct schema in set clause of update queries (#…
sumitj824 Aug 29, 2023
422993b
Support todatetimeoffset function (#1697)
hash-16 Aug 30, 2023
a27a40e
Fix year paramter for datetimeoffsetfromparts function. (#1785)
hash-16 Aug 30, 2023
99fab52
Support T-SQL KILL statement (#1779)
robverschoor Aug 31, 2023
1f4b7ac
added test cases for error semantics of mapped error 6615 (#1808)
robverschoor Sep 1, 2023
37f5ef4
DROP TABLE & DROP TABLE IF EXISTS table1, table2 fix (#1803)
tanscorpio7 Sep 1, 2023
49c41a7
sp_executesql throws error when prefixed with dbo. or sys. (#1811)
shalinilohia50 Sep 4, 2023
319813b
[OSS-ONLY] Add instruction for building and installing babelfishpg_un…
ahmed-shameem Sep 5, 2023
2d42182
Add TAP tests for Babelfish dump/restore
rishabhtanwar29 Sep 5, 2023
a011dec
Fixed handling of input arguments for ISNULL() (#1709)
Deepesh125 Sep 5, 2023
ae8aeaf
This commit removes unnecessary stuff got committed as part of a011de…
Deepesh125 Sep 5, 2023
4a2ec95
[OSS-ONLY] Update babelfishpg_unit build instruction format (#1817)
ahmed-shameem Sep 6, 2023
7533d69
Disallow VIEW in OUTPUT INTO clause (#1790)
vikashprajapati-cell Sep 6, 2023
c67b794
Add users and permissions tests for database-level dump/restore (#1780)
rishabhtanwar29 Sep 6, 2023
5cce968
Workaround for duplicate key error in view_def (#1827)
tanscorpio7 Sep 7, 2023
600c5a6
Support the function COL_LENGTH() (#1705)
roshan0708 Sep 11, 2023
f94ecbd
Support unquoted string parameters (#1821)
robverschoor Sep 11, 2023
2c5e6ae
In-force password based authentication (#1830)
rishabhtanwar29 Sep 11, 2023
7cde36b
Fixed CFL statement to rewrite search_condition appropriately (#1831)
Deepesh125 Sep 12, 2023
bb6b900
Add collation when initialising scan keys for sys.varchar (#1832)
tanscorpio7 Sep 12, 2023
743be0a
add addditional test cases for babel 4367 (#1833)
tanscorpio7 Sep 12, 2023
9f63ea5
Handle different behavior with escape char('\') for BBF (#1764)
RIC06X Sep 12, 2023
f4122e2
Fixed PRIMARY KEY NOT NULL IDENTITY clause in CREATE/ALTER TABLE (#1818)
vaibhav412 Sep 15, 2023
a4c38ae
Modify babel_cursor test to match SQL Server usage (#1843)
xhfanhe Sep 15, 2023
0128140
Do not dump Babelfish initialize user (#1841)
rishabhtanwar29 Sep 19, 2023
465f3a5
Handle keywords in full object names (#1850)
thephantomthief Sep 19, 2023
a83d24f
Default schema of guest user should be guest in sys.babelfish_authid_…
shalinilohia50 Sep 20, 2023
45a13de
support T-SQL DATE_BUCKET() function (#1757)
skumawat2025 Sep 20, 2023
8c5ca48
Fix datatype of information_schema_tsql.tables.TABLE_TYPE column (#1856)
rohit01010 Sep 21, 2023
c549c79
Implemented fix for when column is enclosed in parens (round brackets…
riyajain39 Sep 25, 2023
2cb3d95
Update psqlodbc driver used in github action (#1863)
staticlibs Sep 25, 2023
dd952da
Fixed buffer overflow in babelfish_db_name() (#1854)
lejaokri Sep 25, 2023
809e415
Fix UNION fixed-len type issues (#1501)
wboettge Sep 25, 2023
43f6ed8
BABEL-4411 set transaction isolation cmd change (2) (#1859)
tanscorpio7 Sep 26, 2023
1d24bd6
Created the pgstat_init_function_usage_wrapper hook in extension (#1809)
ParikshitSarode Sep 26, 2023
ffdb644
Support AT TIME ZONE (#1822)
hash-16 Sep 27, 2023
e5cc7fd
Added support for enable/disable of DML triggers (#1799)
rohit01010 Sep 27, 2023
00c87ad
Support GEOGRAPHY and GEOMETRY datatypes along with TDS Sender Suppor…
Anikait143 Sep 28, 2023
ca948e5
Fix check which is comparing whether relation schema is equal to trig…
rohit01010 Sep 28, 2023
11e820f
Handle whitespace characters in pre_transform_target_entry hook (#1568)
staticlibs Sep 28, 2023
099bb22
Supported TSQLs information_schema_tsql.key_column_usage view (#1775)
siddhijain2 Sep 29, 2023
2e0cc34
Fixed Assertion during CREATE TABLE with TIMESTAMP and PKEY (ASC) (#1…
lejaokri Oct 2, 2023
e515c87
Fix wrong operator for bit=varchar (#1806)
wboettge Oct 2, 2023
36b5572
Handle implicit float casting issue (#1878)
lejaokri Oct 3, 2023
30520ee
Fixed "database "" does not exist" error in parallel worker (#1872)
Deepesh125 Oct 4, 2023
e6f7a18
[No jira] upgrade pg_hint_plan and fix the babel-3512 test case (#1893)
forestkeeper Oct 6, 2023
5e23ff7
Re-implement rewriting of double-quoted string and expresssions in DE…
robverschoor Oct 9, 2023
818bf34
Support SSMS scripting for Users and fix crash in SSMS while clicking…
hash-16 Oct 9, 2023
a8df35e
Fix infinite recursion in yyfree (#1861)
staticlibs Oct 11, 2023
6f457f2
Improved memory management in the following BBF functions (#1887)
lejaokri Oct 11, 2023
fc41222
Support for Instead of Trigger On Views in Babelfish (#1876)
deepakshi-mittal Oct 11, 2023
b2ae5ba
Fix the issue of preserving case of column names in SELECT corrname.c…
riyajain39 Oct 12, 2023
0c1a2c1
Add a new GitHub workflow check designed to execute JDBC tests in par…
skumawat2025 Oct 12, 2023
08c886f
Create DB Performance improvements (#1899)
tanscorpio7 Oct 12, 2023
fe2b8ea
Fix for both table and column aliases contains single and multibyte c…
riyajain39 Oct 13, 2023
e302bca
Support GRANT .. ON SCHEMA .. in Babelfish (#1848)
shalinilohia50 Oct 13, 2023
e6bc4f6
Support user defined data-types for COL_LENGTH() function (#1906)
roshan0708 Oct 16, 2023
f40bde1
support DATETRUNC() function (#1846)
skumawat2025 Oct 16, 2023
79e4dff
Rewrite sysutcdatetime and getutcdate functions in C (#1908)
hash-16 Oct 16, 2023
be2c76a
Support SSMS scripting for Sequences (#1886)
hash-16 Oct 17, 2023
293e2e9
Schema Resolution for multiple functions in single stmt (#1885)
tanscorpio7 Oct 17, 2023
a5250b7
Refinement of FOR JSON PATH & Nested Functionality (#1797)
northaxosky Oct 17, 2023
414e824
Implemented Permission fix for sys.server_principals (#1918)
anju15bharti Oct 18, 2023
5d7b8f7
Fix pg_dump for non-babelfish databases (#1914)
rishabhtanwar29 Oct 18, 2023
817b371
Another batch of memory management improvement (#1920)
lejaokri Oct 18, 2023
d41258d
Redoing unquoted string handling (#1900)
robverschoor Oct 18, 2023
5865f45
Fix for the crash in pre_transform_target_entry (#1931)
riyajain39 Oct 20, 2023
1f5e81e
Reimplemented sys.babelfish_concat_wrapper in C to improve the perfor…
ParikshitSarode Oct 20, 2023
0fd93b3
Performance improvements for SSMS query to enumerate tables and views…
sumitj824 Oct 20, 2023
f9734a3
Fix crash in pgstat_init_function_usage (#1935)
ParikshitSarode Oct 20, 2023
5634be1
Fix the issue DISABLE trigger not work for instead of triggers (#1939)
forestkeeper Oct 20, 2023
a9e5826
Revert Sequences scripting (#1940)
hash-16 Oct 23, 2023
3d46cd6
Fix Implicit cast from datetimeoffset to other date/time datatypes. (…
hash-16 Oct 23, 2023
2ad7351
Support for DBCC CHECKIDENT (#1646)
aadityavermaa Oct 23, 2023
3a0259b
Implemented TDS Receiver Support for Spatial Datatypes and Tested bot…
Anikait143 Oct 23, 2023
8739a1e
Cache sysadmin oid to save some lookups (#1942)
tanscorpio7 Oct 24, 2023
ae8d70e
Prevent possibility of stack buffer overflow for DBCC CHECKIDENT (#1947)
skumawat2025 Oct 25, 2023
3fb85f5
Make FORMAT(), format_numeric() and format_datetime() function PARALL…
basasairohan Oct 25, 2023
64d91ac
Performance improvements for SSMS query while trying to expand stored…
basasairohan Oct 25, 2023
33b8d8f
Fixed error: “lost connection to parallel worker” when running parall…
Deepesh125 Oct 25, 2023
354feb0
Automatically run ANALYZE after babelfish extension create/upgrade (#…
sumitj824 Oct 25, 2023
b14d071
Support casting datetime, smalldatetime to numeric types (#1938)
deepakshi-mittal Oct 25, 2023
41f6394
Replace all TOP re-writing with new approach (#1877)
wboettge Oct 25, 2023
3fc59c2
Fix failures in code coverage workflow (#1946)
thephantomthief Oct 26, 2023
b919797
Added 'sa' login equivalent 'jdbc_user' login for non-sysadmin login …
anju15bharti Oct 26, 2023
9fab304
Support repeatable read and serializable isolation level (#1695)
tanscorpio7 Oct 26, 2023
7c0e468
Adding support to sys.server_role_members (#1722)
anju15bharti Oct 26, 2023
1083c88
Change DB owner with ALTER AUTHORIZATION (#1954)
robverschoor Oct 26, 2023
a33a390
Fix a crash in bbf_ExecDropStmt (#1960)
shalinilohia50 Oct 26, 2023
7ec8b6c
Fix crash in bbf_ProcessUtility for grant stmt (#1961)
shalinilohia50 Oct 26, 2023
acd6756
Used sysadmin query in place of superuser query in server_principals …
anju15bharti Oct 27, 2023
de275ea
Fix Join Re-Writing for Delete Queries using Output (#1902)
wboettge Oct 27, 2023
520a825
Support default as params for function and procedure (#1955)
forestkeeper Oct 28, 2023
aacc7ab
Support TSQL PIVOT operator (#1630)
RIC06X Oct 28, 2023
b73a69f
Fix code coverage github action (#1965)
thephantomthief Oct 28, 2023
363f4bb
Implement sp_changedbowner (#1962)
robverschoor Oct 30, 2023
992694d
DROP DB Performance improvements (#1919)
tanscorpio7 Oct 31, 2023
f1cf91f
Change error message for unsupported DBCC commands in babelfish. (#1…
skumawat2025 Oct 31, 2023
ac08cff
Support SSMS scripting for User defined datatypes and User defined T…
hash-16 Oct 31, 2023
1403ccc
Correctly dump permissions for a Babelfish logical database (#1968)
rishabhtanwar29 Nov 2, 2023
a3ce1e4
Crash in Table Variable lookup after TVP execution via TDS RPC SPExec…
KushaalShroff Nov 3, 2023
c7193b5
Implement custom parser for full text search and add support for <sim…
roshan0708 Nov 3, 2023
ac542c9
Fixed crash in pltsql_pre_parse_analyze freeing null pointer (#1979)
lejaokri Nov 3, 2023
952244f
make dbcc command in uppercase for unsupported error message (#1977)
skumawat2025 Nov 6, 2023
1ca1f8c
Properly handle space in pre_transform_target_entry (#1980)
lejaokri Nov 6, 2023
2104cc7
Explicit unnecessary cast should be eliminated (#1984)
forestkeeper Nov 6, 2023
a26d448
support type_id and type_name t-sql functions (#1860)
vaibhav412 Nov 7, 2023
cee66be
Add sort operators for MAX/MIN of Babelfish datatypes (#1989)
xhfanhe Nov 7, 2023
de7d858
Implement Supported Geospatial CASTs (#1945)
Anikait143 Nov 8, 2023
cf62dbb
Disable pg_stat_statements.calls column testcase for GRANT/REVOKE (#1…
HarshLunagariya Nov 8, 2023
d6248e4
Fixed crash exec_stmt_grantschema not able to handle non existing rol…
lejaokri Nov 8, 2023
b366d38
Fix for Order by issue in select into statement with identity functio…
deepakshi-mittal Nov 8, 2023
db1dec7
fix crash in fixeddecimalaggstateserialize and fixeddecimalaggstatede…
rohit01010 Nov 8, 2023
0dae794
Adjust default nulls order when creating index (#1990)
xhfanhe Nov 9, 2023
8686660
Add support of local variable as input for SET special_variable (ROWC…
sumitj824 Nov 9, 2023
15638a8
Test fixes for PG15.5 merge (#1995)
rishabhtanwar29 Nov 9, 2023
939ff04
Improve defensive code for crash in AtEOXact_Parallel (#2002)
xhfanhe Nov 10, 2023
799567b
Rewrite GETDATE, SYSDATETIME and SYSDATETIMEOFFSET functions in C lan…
sumitj824 Nov 10, 2023
5ef13d2
Group mixed type failure test cases for parallel query. (#2003)
skumawat2025 Nov 10, 2023
efb860f
Add expected output when parallel query is enabled for pg_hint_plan t…
basasairohan Nov 10, 2023
4bd9dc0
Use appropriate datatype for sys.format, sys.format_datetime, sys.for…
basasairohan Nov 10, 2023
62546c5
fix conversion of varchar to binary varbinary and vice versa (#1957)
tanscorpio7 Nov 10, 2023
b4a3b95
fix upgrade script for new bbf_binary casts (#2010)
tanscorpio7 Nov 10, 2023
f927d7b
fixed tests BABEL-4261 and added test for BABEL-4281 (#2006)
rohit01010 Nov 10, 2023
43bfa08
Move parallel mode check logic into GUC's check_hook (#2015)
xhfanhe Nov 14, 2023
3c4666e
Support CREATE/DROP FULLTEXT INDEX for fulltext search (#1986)
roshan0708 Nov 15, 2023
2d20e6c
fix insert exec with type cast (#2017)
forestkeeper Nov 15, 2023
b56dca6
Fix failure in MVU with non-default server collation name (#2019)
rohit01010 Nov 16, 2023
386c8c7
Fix MVU failure due to sys.format_datetime, sys.format_numeric and sy…
basasairohan Nov 16, 2023
cef4c11
Initial commit for Babelfish v3.5 (#2027)
basasairohan Nov 17, 2023
d5d1d05
Reimplement datediff and dateadd in c to improve performance (#1998)
Jakeowen1 Nov 17, 2023
6c15cac
Fix test output plan verification (#2022)
wboettge Nov 17, 2023
c44dcf7
fix jdbc tests fails locally with error " 'tds_fdw' extension does no…
skumawat2025 Nov 20, 2023
fdbd3fe
Improve performance of sp_describe_undeclared_parameters (#1905)
ahmed-shameem Nov 20, 2023
2ea1bb7
Fix ATTIMEZONE test output
Nov 20, 2023
2770505
Revert "Implement Supported Geospatial CASTs (#1945)"
Nov 21, 2023
ca68e7f
Revert "Implemented TDS Receiver Support for Spatial Datatypes and Te…
Nov 21, 2023
ba2502b
Revert "Support GEOGRAPHY and GEOMETRY datatypes along with TDS Sende…
Nov 21, 2023
f46174f
Disable postgis build in parallel query tests
Nov 21, 2023
bb38c2a
Remove geospatial test from 15.5 test
Nov 21, 2023
a003a23
Temporarily disable failing tests
Nov 21, 2023
5f0ff66
Temporarily disable failing parallel query tests
Nov 21, 2023
b4b3b83
Temporarily disable failing parallel query tests (for real)
Nov 22, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 18 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# As of git 2.23, git-blame supports ignoring specific commits. This is useful
# with commits that make bulk formatting changes without truly changing any
# code.
#
# This file lists ignorable pgindent, pgperltidy, and reformat-dat-files
# related commits only. Please don't add commits that are not in this
# category.
#
# You can use the ignore list file by running:
#
# $ git config blame.ignoreRevsFile .git-blame-ignore-revs
#
# Add new entries by adding the output of the following to the top of the file:
#
# $ git log --pretty=format:"%H # %cd%n# %s" $PGINDENTGITHASH -1 --date=iso

243e3294c5fee7863e7846b30d8a821b7e4b4242 # 2023-03-22 21:34:35 -0700
# Run pgindent on each babelfish extensions code (#1357)
27 changes: 27 additions & 0 deletions .github/composite-actions/build-babelfishpg_unit/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: 'Build babelfishpg_unit'
inputs:
install_dir:
description: 'Engine install directory'
required: no
default: psql
extension_branch:
description: 'Extension Branch name which needs to checkout first'
required: no
default: 'latest'

runs:
using: "composite"
steps:
- if: always() && (inputs.extension_branch == 'latest')
uses: actions/checkout@v2

- name: Build babelfishpg_unit
run: |
export PG_CONFIG=~/${{ inputs.install_dir }}/bin/pg_config
export PG_SRC=~/work/babelfish_extensions/postgresql_modified_for_babelfish
export cmake=$(which cmake)
export PATH=~/${{ inputs.install_dir }}/bin:$PATH
cd contrib/babelfishpg_unit
make clean && make && make install
shell: bash

3 changes: 2 additions & 1 deletion .github/composite-actions/build-extensions/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,6 @@ runs:
cd ../babelfishpg_tds
make -j 4 && make install
cd ../babelfishpg_tsql
make && make install
PG_CPPFLAGS='-I/usr/include -DENABLE_TDS_LIB' SHLIB_LINK='-lsybdb -L/usr/lib64' make
PG_CPPFLAGS='-I/usr/include -DENABLE_TDS_LIB' SHLIB_LINK='-lsybdb -L/usr/lib64' make install
shell: bash
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ runs:
elif [[ ${{inputs.engine_branch}} != *"__PG_13_"* ]]; then
cd ../..
rm -rf pg_hint_plan
git clone --depth 1 --branch PG15 https://github.com/ossc-db/pg_hint_plan.git
git clone --depth 1 --branch REL15_1_5_1 https://github.com/ossc-db/pg_hint_plan.git
cd pg_hint_plan
export PATH=$HOME/${{ inputs.install_dir }}/bin:$PATH
make
Expand Down
86 changes: 44 additions & 42 deletions .github/composite-actions/dump-restore-util/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,17 @@ inputs:
migration_mode:
description: "Database migration mode for Babelfish"
required: true
logical_database:
description: "Logical Babelfish database to dump and restore"
required: false
default: 'null'
dump_data_as:
description: "Dump table data using COPY or INSERT"
required: false
default: 'copy'
dump_format:
description: "Dump format (plain/custom/tar/directory)"
required: true

runs:
using: "composite"
Expand All @@ -39,54 +50,44 @@ runs:
cd ~
mkdir -p upgrade
cd upgrade
echo 'Runinng pg_dumpall and pg_dump'
~/${{ inputs.pg_new_dir }}/bin/pg_dumpall --username jdbc_user --globals-only --quote-all-identifiers --verbose -f pg_dump_globals.sql 2>>error.log
~/${{ inputs.pg_new_dir }}/bin/pg_dump --username jdbc_user --column-inserts --quote-all-identifiers --verbose --file="pg_dump.sql" --dbname=jdbc_testdb 2>>error.log
export PGPASSWORD=12345678

if [[ '${{ inputs.dump_data_as }}' == 'inserts' ]];then
export DUMP_OPTS='--column-inserts'
else
export DUMP_OPTS=''
fi
export DUMP_OPTS="$DUMP_OPTS --format=${{ inputs.dump_format }}"

if [[ '${{ inputs.logical_database }}' == 'null' ]];then
echo 'Starting to dump whole Babelfish physical database'
~/${{ inputs.pg_new_dir }}/bin/pg_dumpall -h localhost --database jdbc_testdb --username jdbc_user --roles-only --quote-all-identifiers --verbose --no-role-passwords -f pg_dump_globals.sql 2>>error.log
~/${{ inputs.pg_new_dir }}/bin/pg_dump -h localhost --username jdbc_user $DUMP_OPTS --quote-all-identifiers --verbose --file="pg_dump.archive" --dbname=jdbc_testdb 2>>error.log
else
echo "Starting to dump Babelfish logical database ${{ inputs.logical_database }}"
~/${{ inputs.pg_new_dir }}/bin/pg_dumpall -h localhost --database jdbc_testdb --username jdbc_user --roles-only --quote-all-identifiers --verbose --no-role-passwords --bbf-database-name='${{ inputs.logical_database }}' -f pg_dump_globals.sql 2>>error.log
~/${{ inputs.pg_new_dir }}/bin/pg_dump -h localhost --username jdbc_user $DUMP_OPTS --quote-all-identifiers --verbose --bbf-database-name='${{ inputs.logical_database }}' --file="pg_dump.archive" --dbname=jdbc_testdb 2>>error.log
fi

# Stop old server and start the new.
~/${{ inputs.pg_old_dir }}/bin/pg_ctl -D ~/${{ inputs.pg_old_dir }}/data stop
echo 'Done dumping the database, proceeding to restore dumped SQL script on new server.'
echo 'Restoring from pg_dumpall'
~/${{ inputs.pg_new_dir }}/bin/pg_ctl -D ~/${{ inputs.pg_new_dir }}/data -l ~/${{ inputs.pg_new_dir }}/data/logfile start
sudo ~/${{ inputs.pg_new_dir }}/bin/psql -d postgres -U runner -f pg_dump_globals.sql 2>>error.log
sudo ~/${{ inputs.pg_new_dir }}/bin/psql -d postgres -U runner -c "CREATE DATABASE jdbc_testdb OWNER jdbc_user;"
echo 'Restoring from pg_dump'
sudo ~/${{ inputs.pg_new_dir }}/bin/psql -d jdbc_testdb -U jdbc_user -f pg_dump.sql 2>>error.log
sudo ~/${{ inputs.pg_new_dir }}/bin/psql -d jdbc_testdb -U jdbc_user -c "GRANT ALL ON SCHEMA sys to jdbc_user;"
sudo ~/${{ inputs.pg_new_dir }}/bin/psql -d jdbc_testdb -U jdbc_user -c "GRANT CREATE, CONNECT, TEMPORARY ON DATABASE jdbc_testdb TO sysadmin WITH GRANT OPTION;"
sudo ~/${{ inputs.pg_new_dir }}/bin/psql -d jdbc_testdb -U jdbc_user -c "ALTER USER jdbc_user CREATEDB;"
sudo ~/${{ inputs.pg_new_dir }}/bin/psql -d jdbc_testdb -U jdbc_user -c "ALTER SYSTEM SET babelfishpg_tsql.database_name = 'jdbc_testdb';"
sudo ~/${{ inputs.pg_new_dir }}/bin/psql -d jdbc_testdb -U jdbc_user -c "ALTER SYSTEM SET babelfishpg_tsql.migration_mode = '${{inputs.migration_mode}}';"
sudo ~/${{ inputs.pg_new_dir }}/bin/psql -d jdbc_testdb -U jdbc_user -c "SELECT pg_reload_conf();"
cd ~/work/babelfish_extensions/babelfish_extensions/
export PATH=/opt/mssql-tools/bin:$PATH
sqlcmd -S localhost -U jdbc_user -P 12345678 -Q "SELECT @@version GO"
shell: bash
echo 'Database dump complete.'

# Temporary step
- name: Temporarily disable failing tests
if: always() && steps.run-pg_dump-restore.outcome == 'success' && inputs.is_final_ver == 'true'
env:
migr_mode: ${{ inputs.migration_mode }}
run: |
if [[ "$migr_mode" == "multi-db" ]];then
base_dir=${{ matrix.upgrade-path.path[0] }}
if [[ "$base_dir" == *"latest"* ]]; then
base_dir="latest"
fi
# Create and initialise Babelfish extensions in the new server to perform restore.
sudo ~/${{ inputs.pg_new_dir }}/bin/psql -d postgres -U runner -v user="jdbc_user" -v db="jdbc_testdb" -v migration_mode=${{inputs.migration_mode}} -f .github/scripts/create_extension.sql
echo 'Restoring from pg_dumpall'
sudo PGPASSWORD=12345678 ~/${{ inputs.pg_new_dir }}/bin/psql -h localhost -d jdbc_testdb -U jdbc_user --single-transaction -f ~/upgrade/pg_dump_globals.sql 2>> ~/upgrade/error.log
echo 'Restoring from pg_dump'
if [[ '${{ inputs.dump_format }}' == 'plain' ]];then
sudo PGPASSWORD=12345678 ~/${{ inputs.pg_new_dir }}/bin/psql -h localhost -d jdbc_testdb -U jdbc_user --single-transaction -f ~/upgrade/pg_dump.archive 2>> ~/upgrade/error.log
else
base_dir="singledb"
~/${{ inputs.pg_new_dir }}/bin/pg_restore -h localhost -d jdbc_testdb -U jdbc_user --single-transaction ~/upgrade/pg_dump.archive 2>> ~/upgrade/error.log
fi

# Temporarily disable certain tests until fixed
sed -i "/BABEL-3513/d" test/JDBC/upgrade/$base_dir/schedule
sed -i "/BABEL_OBJECT_ID/d" test/JDBC/upgrade/$base_dir/schedule
sed -i "/ISC-Views/d" test/JDBC/upgrade/$base_dir/schedule
sed -i "/TestNotNull/d" test/JDBC/upgrade/$base_dir/schedule
sed -i "/TestSQLVariant/d" test/JDBC/upgrade/$base_dir/schedule
sed -i "/babel_datatype_sqlvariant/d" test/JDBC/upgrade/$base_dir/schedule
sed -i "/schema_resolution_proc/d" test/JDBC/upgrade/$base_dir/schedule
sed -i "/sp_tablecollations/d" test/JDBC/upgrade/$base_dir/schedule
sed -i "/sys-sql_modules/d" test/JDBC/upgrade/$base_dir/schedule
sed -i "/sys-system_sql_modules/d" test/JDBC/upgrade/$base_dir/schedule
export PATH=/opt/mssql-tools/bin:$PATH
sqlcmd -S localhost -U jdbc_user -P 12345678 -Q "SELECT @@version GO"
shell: bash

- name: Run Verify Tests
Expand All @@ -95,4 +96,5 @@ runs:
with:
is_final_ver: ${{ inputs.is_final_ver }}
pg_new_dir: ${{ inputs.pg_new_dir }}
migration_mode: ${{ inputs.migration_mode }}
migration_mode: ${{ inputs.migration_mode }}
logical_database: ${{ inputs.logical_database }}
18 changes: 15 additions & 3 deletions .github/composite-actions/install-extensions/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ inputs:
description: 'Database migration mode'
required: no
default: "single-db"
parallel_query_mode:
description: 'Postgres Parallel Query Mode'
required: no
default: false

runs:
using: "composite"
Expand All @@ -21,11 +25,19 @@ runs:
~/${{inputs.install_dir}}/bin/pg_ctl -D ~/${{inputs.install_dir}}/data/ -l logfile start
cd ${{inputs.install_dir}}/data
sudo sed -i "s/#listen_addresses = 'localhost'/listen_addresses = '*'/g" postgresql.conf
sudo sed -i "s/#shared_preload_libraries = ''/shared_preload_libraries = 'babelfishpg_tds'/g" postgresql.conf
sudo sed -i "s/#shared_preload_libraries = ''/shared_preload_libraries = 'babelfishpg_tds, pg_stat_statements'/g" postgresql.conf
ipaddress=$(ifconfig eth0 | grep 'inet ' | cut -d: -f2 | awk '{ print $2}')
sudo echo "host all all $ipaddress/32 trust" >> pg_hba.conf
# Allow only runner to have trust authentication, all other users must provide a password
{
sudo echo "local all runner trust"
sudo echo "local all all md5"
sudo echo "host all runner 127.0.0.1/32 trust"
sudo echo "host all runner $ipaddress/32 trust"
sudo echo "host all all 0.0.0.0/0 md5"
sudo echo "host all all ::/0 md5"
} > pg_hba.conf
~/${{inputs.install_dir}}/bin/pg_ctl -D ~/${{inputs.install_dir}}/data/ -l logfile restart
cd ~/work/babelfish_extensions/babelfish_extensions/
sudo ~/${{inputs.install_dir}}/bin/psql -d postgres -U runner -v user="jdbc_user" -v db="jdbc_testdb" -v migration_mode=${{inputs.migration_mode}} -f .github/scripts/create_extension.sql
sudo ~/${{inputs.install_dir}}/bin/psql -d postgres -U runner -v user="jdbc_user" -v db="jdbc_testdb" -v migration_mode=${{inputs.migration_mode}} -v parallel_query_mode=${{inputs.parallel_query_mode}} -f .github/scripts/create_extension.sql
sqlcmd -S localhost -U "jdbc_user" -P 12345678 -Q "SELECT @@version GO"
shell: bash
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,4 @@ runs:
done
export scheduleFile=upgrade/$base_dir/schedule
mvn test
shell: bash


shell: bash
10 changes: 10 additions & 0 deletions .github/composite-actions/run-verify-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ inputs:
migration_mode:
description: "Database migration mode for Babelfish"
required: true
logical_database:
description: "Logical Babelfish database to dump and restore"
required: false
default: 'null'

runs:
using: "composite"
Expand Down Expand Up @@ -39,6 +43,12 @@ runs:
base_dir="singledb"
export inputFilesPath=upgrade/singledb/verification_cleanup
fi

if [[ '${{ inputs.logical_database }}' != 'null' ]];then
base_dir="${{ inputs.logical_database }}"
export inputFilesPath=upgrade/$base_dir/verification_cleanup
fi

mvn test
export inputFilesPath=input

Expand Down
23 changes: 20 additions & 3 deletions .github/composite-actions/setup-base-version/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ inputs:
migration_mode:
description: "Database migration mode for Babelfish"
required: true
logical_database:
description: "Logical Babelfish database to dump and restore"
required: false
default: 'null'

runs:
using: "composite"
Expand Down Expand Up @@ -65,9 +69,17 @@ runs:
~/${{ inputs.install_dir }}/bin/pg_ctl -D ~/${{ inputs.install_dir }}/data/ -l logfile start
cd ${{ inputs.install_dir }}/data
sudo sed -i "s/#listen_addresses = 'localhost'/listen_addresses = '*'/g" postgresql.conf
sudo sed -i "s/#shared_preload_libraries = ''/shared_preload_libraries = 'babelfishpg_tds'/g" postgresql.conf
sudo sed -i "s/#shared_preload_libraries = ''/shared_preload_libraries = 'babelfishpg_tds, pg_stat_statements'/g" postgresql.conf
ipaddress=$(ifconfig eth0 | grep 'inet ' | cut -d: -f2 | awk '{ print $2}')
sudo echo "host all all $ipaddress/32 trust" >> pg_hba.conf
# Allow only runner to have trust authentication, all other users must provide a password
{
sudo echo "local all runner trust"
sudo echo "local all all md5"
sudo echo "host all runner 127.0.0.1/32 trust"
sudo echo "host all runner $ipaddress/32 trust"
sudo echo "host all all 0.0.0.0/0 md5"
sudo echo "host all all ::/0 md5"
} > pg_hba.conf
~/${{ inputs.install_dir }}/bin/pg_ctl -D ~/${{ inputs.install_dir }}/data/ -l logfile restart
sudo ~/${{ inputs.install_dir }}/bin/psql -d postgres -U runner -c "CREATE USER jdbc_user WITH SUPERUSER CREATEDB CREATEROLE PASSWORD '12345678' INHERIT;"
sudo ~/${{ inputs.install_dir }}/bin/psql -d postgres -U runner -c "DROP DATABASE IF EXISTS jdbc_testdb;"
Expand Down Expand Up @@ -111,6 +123,11 @@ runs:
else
base_dir="singledb"
fi

if [[ '${{ inputs.logical_database }}' != 'null' ]];then
base_dir="${{ inputs.logical_database }}"
fi

export inputFilesPath=upgrade/$base_dir/preparation
mvn test
for filename in $(grep -v "^ignore.*\|^#.*\|^cmd.*\|^all.*\|^$" upgrade/$base_dir/schedule); do
Expand All @@ -130,7 +147,7 @@ runs:

- name: Install Python
id: install-python
if: ${{ matrix.upgrade-path.path[0] == 'source_latest' && steps.jdbc-upgrade-tests.outcome == 'success' }}
if: ${{ matrix.upgrade-path.path[0] == 'source_latest' && steps.jdbc-upgrade-tests.outcome == 'success' && inputs.logical_database == 'null' }}
uses: actions/setup-python@v2
with:
python-version: 3.7
Expand Down
18 changes: 15 additions & 3 deletions .github/composite-actions/setup-dump-restore-ca/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ runs:
echo "ERROR: Dump restore path length less than 2" 1>&2
exit 1
fi

# Initial installed version is the base version
previous_installed_version=${{ inputs.base_version }}

# For every next dump+restore, below 'For' loop will add a step in dump-restore composite action which will dump the current version and restore it into next version
for (( i=1 ; i<$LEN ; i++ ));
do
Expand All @@ -43,7 +43,19 @@ runs:
uses_file=./.github/composite-actions/dump-restore-util
temp="&& steps.dump-restore-version-$(($i-1)).outcome == 'success'"; [[ i -eq 1 ]] && temp=""

printf " - name: Dump and Restore to version $dump_restore_version\n id: dump-restore-version-$i\n if: always() $temp\n uses: ${uses_file}\n with: \n engine_branch: ${engine_branch}\n extension_branch: ${extension_branch}\n is_final_ver: ${is_final_ver}\n pg_old_dir: ${pg_old_dir}\n pg_new_dir: ${pg_new_dir}\n migration_mode: 'multi-db'\n\n" >> $dump_restore_version_dir_path/action.yml
logical_database_var=".\"dump-restore-version\"[${{ matrix.upgrade-path.id }}][$i].\"logical-database\""
logical_database=$(yq $logical_database_var ${{ github.workspace }}/.github/configuration/dump-restore-test-configuration.yml)
dump_data_as_var=".\"dump-restore-version\"[${{ matrix.upgrade-path.id }}][$i].\"dump-data-as\""
dump_data_as=$(yq $dump_data_as_var ${{ github.workspace }}/.github/configuration/dump-restore-test-configuration.yml)
dump_format_var=".\"dump-restore-version\"[${{ matrix.upgrade-path.id }}][$i].\"dump-format\""
dump_format=$(yq $dump_format_var ${{ github.workspace }}/.github/configuration/dump-restore-test-configuration.yml)

if [[ $logical_database == 'null' ]]
then
printf " - name: Dump and Restore to version $dump_restore_version\n id: dump-restore-version-$i\n if: always() $temp\n uses: ${uses_file}\n with: \n engine_branch: ${engine_branch}\n extension_branch: ${extension_branch}\n is_final_ver: ${is_final_ver}\n pg_old_dir: ${pg_old_dir}\n pg_new_dir: ${pg_new_dir}\n migration_mode: 'multi-db'\n dump_data_as: ${dump_data_as}\n dump_format: ${dump_format}\n\n" >> $dump_restore_version_dir_path/action.yml
else
printf " - name: Dump and Restore to version $dump_restore_version\n id: dump-restore-version-$i\n if: always() $temp\n uses: ${uses_file}\n with: \n engine_branch: ${engine_branch}\n extension_branch: ${extension_branch}\n is_final_ver: ${is_final_ver}\n pg_old_dir: ${pg_old_dir}\n pg_new_dir: ${pg_new_dir}\n migration_mode: 'multi-db'\n logical_database: ${logical_database}\n dump_data_as: ${dump_data_as}\n dump_format: ${dump_format}\n\n" >> $dump_restore_version_dir_path/action.yml
fi

previous_installed_version=$dump_restore_version
done
Expand Down
12 changes: 10 additions & 2 deletions .github/composite-actions/setup-new-version/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,15 @@ runs:
~/${{ inputs.pg_new_dir }}/bin/initdb -D ~/${{ inputs.pg_new_dir }}/data
cd ~/${{ inputs.pg_new_dir }}/data
sudo sed -i "s/#listen_addresses = 'localhost'/listen_addresses = '*'/g" postgresql.conf
sudo sed -i "s/#shared_preload_libraries = ''/shared_preload_libraries = 'babelfishpg_tds'/g" postgresql.conf
sudo sed -i "s/#shared_preload_libraries = ''/shared_preload_libraries = 'babelfishpg_tds, pg_stat_statements'/g" postgresql.conf
ipaddress=$(ifconfig eth0 | grep 'inet ' | cut -d: -f2 | awk '{ print $2}')
sudo echo "host all all $ipaddress/32 trust" >> pg_hba.conf
# Allow only runner to have trust authentication, all other users must provide a password
{
sudo echo "local all runner trust"
sudo echo "local all all md5"
sudo echo "host all runner 127.0.0.1/32 trust"
sudo echo "host all runner $ipaddress/32 trust"
sudo echo "host all all 0.0.0.0/0 md5"
sudo echo "host all all ::/0 md5"
} > pg_hba.conf
shell: bash
Loading
Loading