Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
128 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ gitclean: | |
clean: | ||
find . -name \*.pyc -delete | ||
rm -rf .cache | ||
rm -rf build | ||
|
||
fmt: | ||
isort -rc . | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
CREATE COLLATION german FROM "de_DE"; | ||
|
||
create table t( | ||
a text, | ||
b text collate german | ||
); | ||
|
||
CREATE COLLATION numeric (provider = icu, locale = 'en-u-kn-true'); |
Empty file.
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,10 @@ | ||
|
||
|
||
|
||
CREATE COLLATION numeric (provider = icu, locale = 'en-u-kn-true'); | ||
|
||
create table t( | ||
a text, | ||
b text collate numeric, | ||
c text collate numeric | ||
); |
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,5 @@ | ||
alter table "public"."t" add column "c" text collate "numeric"; | ||
|
||
alter table "public"."t" alter column "b" set data type text collate "numeric"; | ||
|
||
drop collation if exists "public"."german"; |
Empty file.
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,14 @@ | ||
CREATE TABLE measurement ( | ||
city_id int not null, | ||
logdate date not null, | ||
peaktemp int, | ||
unitsales int | ||
) PARTITION BY RANGE (logdate); | ||
|
||
CREATE TABLE measurement_y2006m02 PARTITION OF measurement | ||
FOR VALUES FROM ('2006-02-01') TO ('2006-03-01'); | ||
|
||
CREATE TABLE measurement_y2006m03 PARTITION OF measurement | ||
FOR VALUES FROM ('2006-03-01') TO ('2006-04-01'); | ||
|
||
CREATE INDEX ON measurement_y2006m02 (logdate); |
Empty file.
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,20 @@ | ||
CREATE TABLE measurement ( | ||
city_id int not null, | ||
logdate date not null, | ||
peaktemp int, | ||
unitsales int, | ||
extra text | ||
) PARTITION BY RANGE (logdate); | ||
|
||
CREATE TABLE measurement_y2006m02 PARTITION OF measurement | ||
FOR VALUES FROM ('2006-02-01') TO ('2006-03-01'); | ||
|
||
CREATE TABLE measurement_y2006m03 ( | ||
city_id int not null, | ||
logdate date not null, | ||
peaktemp int, | ||
unitsales int | ||
); | ||
|
||
|
||
--CREATE INDEX ON measurement (logdate); |
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,5 @@ | ||
drop index if exists "public"."measurement_y2006m02_logdate_idx"; | ||
|
||
alter table "public"."measurement" detach partition "public"."measurement_y2006m03"; | ||
|
||
alter table "public"."measurement" add column "extra" text; |
Empty file.
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