-
Notifications
You must be signed in to change notification settings - Fork 52
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
4 changed files
with
361 additions
and
118 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
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,29 @@ | ||
-- CREATE DATABASE test_db; | ||
|
||
-- -- Create a table with a collated column | ||
-- CREATE TABLE test_table ( | ||
-- id SERIAL PRIMARY KEY, | ||
-- name TEXT COLLATE "en_US.utf8" | ||
-- ); | ||
|
||
-- -- Insert data into the table | ||
-- INSERT INTO test_table (name) | ||
-- VALUES | ||
-- ('apple'), | ||
-- ('banana'), | ||
-- ('cherry'); | ||
|
||
-- -- Create an index on the collated column | ||
-- CREATE INDEX idx_test_table_name ON test_table (name); | ||
|
||
-- -- Create a view | ||
-- CREATE VIEW test_view AS | ||
-- SELECT id, name | ||
-- FROM test_table | ||
-- WHERE name LIKE 'a%'; | ||
|
||
-- -- Create a materialized view | ||
-- CREATE MATERIALIZED VIEW test_materialized_view AS | ||
-- SELECT id, name | ||
-- FROM test_table | ||
-- WHERE name LIKE 'b%'; |
Oops, something went wrong.