-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[POSSIBLE_OBJECT_NAME_OVERFLOW] Add support for partitioned tables. […
…PRIMARY_KEYS_WITH_SERIAL_TYPES] Add support for partitioned tables. [PRIMARY_KEYS_WITH_SERIAL_TYPES] Fix insufficient permissions error (#544) * Update queries * [POSSIBLE_OBJECT_NAME_OVERFLOW] Add support for partitioned tables * [PRIMARY_KEYS_WITH_SERIAL_TYPES] Add support for partitioned tables * Fix test
- Loading branch information
Showing
14 changed files
with
223 additions
and
19 deletions.
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
Submodule resources
updated
2 files
+4 −1 | sql/possible_object_name_overflow.sql | |
+16 −12 | sql/primary_keys_with_serial_types.sql |
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
33 changes: 33 additions & 0 deletions
33
...pg/core/fixtures/support/statements/CreatePartitionedTableWithVeryLongNamesStatement.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,33 @@ | ||
/* | ||
* Copyright (c) 2019-2024. Ivan Vakhrushev and others. | ||
* https://github.com/mfvanek/pg-index-health | ||
* | ||
* This file is a part of "pg-index-health" - a Java library for | ||
* analyzing and maintaining indexes health in PostgreSQL databases. | ||
* | ||
* Licensed under the Apache License 2.0 | ||
*/ | ||
|
||
package io.github.mfvanek.pg.core.fixtures.support.statements; | ||
|
||
import java.util.List; | ||
import javax.annotation.Nonnull; | ||
|
||
public class CreatePartitionedTableWithVeryLongNamesStatement extends AbstractDbStatement { | ||
|
||
@Nonnull | ||
@Override | ||
protected List<String> getSqlToExecute() { | ||
return List.of( | ||
"create table if not exists {schemaName}.entity_long_1234567890_1234567890_1234567890_1234567890_1234567(" + | ||
"ref_type varchar(32)," + | ||
"ref_value varchar(64)," + | ||
"entity_id bigserial primary key" + | ||
") partition by range (entity_id);", | ||
"create index if not exists idx_entity_long_1234567890_1234567890_1234567890_1234567890_123 " + | ||
"on {schemaName}.entity_long_1234567890_1234567890_1234567890_1234567890_1234567 (ref_type, ref_value);", | ||
"create table if not exists {schemaName}.entity_default_long_1234567890_1234567890_1234567890_1234567890 " + | ||
"partition of {schemaName}.entity_long_1234567890_1234567890_1234567890_1234567890_1234567 default;" | ||
); | ||
} | ||
} |
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
Oops, something went wrong.