diff options
author | Bruce Momjian | 2002-07-30 16:40:34 +0000 |
---|---|---|
committer | Bruce Momjian | 2002-07-30 16:40:34 +0000 |
commit | 1dedbf2da5c4aa741bbc6f16dc3ad819625b84f0 (patch) | |
tree | f13fc1d640627603e486fc965f18529f85a40500 /contrib/ltree/ltreetest.sql | |
parent | 210e64fe085cf780ea49867ef00c24cc86386aa2 (diff) |
Add ltree data type to contrib, from Teodor Sigaev and Oleg Bartunov.
Diffstat (limited to 'contrib/ltree/ltreetest.sql')
-rw-r--r-- | contrib/ltree/ltreetest.sql | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/contrib/ltree/ltreetest.sql b/contrib/ltree/ltreetest.sql new file mode 100644 index 00000000000..0dd6eaa63d0 --- /dev/null +++ b/contrib/ltree/ltreetest.sql @@ -0,0 +1,16 @@ +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); |