mirror of https://github.com/postgres/postgres
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
867 B
17 lines
867 B
|
24 years ago
|
create table test ( path ltree);
|
||
|
|
insert into test values ('Top');
|
||
|
|
insert into test values ('Top.Science');
|
||
|
|
insert into test values ('Top.Science.Astronomy');
|
||
|
|
insert into test values ('Top.Science.Astronomy.Astrophysics');
|
||
|
|
insert into test values ('Top.Science.Astronomy.Cosmology');
|
||
|
|
insert into test values ('Top.Hobbies');
|
||
|
|
insert into test values ('Top.Hobbies.Amateurs_Astronomy');
|
||
|
|
insert into test values ('Top.Collections');
|
||
|
|
insert into test values ('Top.Collections.Pictures');
|
||
|
|
insert into test values ('Top.Collections.Pictures.Astronomy');
|
||
|
|
insert into test values ('Top.Collections.Pictures.Astronomy.Stars');
|
||
|
|
insert into test values ('Top.Collections.Pictures.Astronomy.Galaxies');
|
||
|
|
insert into test values ('Top.Collections.Pictures.Astronomy.Astronauts');
|
||
|
|
create index path_gist_idx on test using gist(path);
|
||
|
|
create index path_idx on test using btree(path);
|