-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#9797] YSQL: Merge pg15 branch into master
Switch YugabyteDB YSQL layer from PostgreSQL 11 to PostgreSQL 15.
- Loading branch information
Showing
6,724 changed files
with
1,375,145 additions
and
727,822 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
java/yb-pgsql/src/test/java/org/yb/pgsql/BasePgRegressTestPorted.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Copyright (c) YugabyteDB, Inc. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | ||
// in compliance with the License. You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software distributed under the License | ||
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | ||
// or implied. See the License for the specific language governing permissions and limitations | ||
// under the License. | ||
// | ||
package org.yb.pgsql; | ||
|
||
import java.util.Map; | ||
|
||
/** | ||
* Regress test schedules should either contain only YB original tests or upstream PG ported tests. | ||
* Subclass this class in case of ported tests in order to provide a similar environment to upstream | ||
* PG and reduce differences with upstream's expectations. At the time of writing (2024-07-02), | ||
* some schedules hav a mix of test types, and the subclassing has yet to be applied for certain | ||
* schedules. | ||
*/ | ||
public class BasePgRegressTestPorted extends BasePgRegressTest { | ||
@Override | ||
protected Map<String, String> getTServerFlags() { | ||
Map<String, String> flagMap = super.getTServerFlags(); | ||
flagMap.put("TEST_generate_ybrowid_sequentially", "true"); | ||
appendToYsqlPgConf(flagMap, "yb_use_hash_splitting_by_default=false"); | ||
return flagMap; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
java/yb-pgsql/src/test/java/org/yb/pgsql/TestPg15Regress.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
// Copyright (c) YugaByte, Inc. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | ||
// in compliance with the License. You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software distributed under the License | ||
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | ||
// or implied. See the License for the specific language governing permissions and limitations | ||
// under the License. | ||
// | ||
package org.yb.pgsql; | ||
|
||
import java.util.Map; | ||
|
||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
import org.yb.util.BuildTypeUtil; | ||
import org.yb.util.YBTestRunnerNonTsanOnly; | ||
|
||
// Runs the pg_regress test suite on YB code. | ||
@RunWith(value = YBTestRunnerNonTsanOnly.class) | ||
public class TestPg15Regress extends BasePgRegressTest { | ||
@Override | ||
public int getTestMethodTimeoutSec() { | ||
return BuildTypeUtil.nonSanitizerVsSanitizer(2100, 2700); | ||
} | ||
|
||
@Override | ||
protected Map<String, String> getTServerFlags() { | ||
Map<String, String> flagMap = super.getTServerFlags(); | ||
flagMap.put("allowed_preview_flags_csv", "ysql_yb_enable_replication_commands"); | ||
flagMap.put("ysql_yb_enable_replication_commands", "true"); | ||
return flagMap; | ||
} | ||
|
||
@Override | ||
protected Map<String, String> getMasterFlags() { | ||
Map<String, String> flagMap = super.getMasterFlags(); | ||
flagMap.put("allowed_preview_flags_csv", "ysql_yb_enable_replication_commands"); | ||
flagMap.put("ysql_yb_enable_replication_commands", "true"); | ||
return flagMap; | ||
} | ||
|
||
@Test | ||
public void testPg15Regress() throws Exception { | ||
runPgRegressTest("yb_pg15"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.