Skip to content

Instantly share code, notes, and snippets.

@nkgsv
Created November 10, 2015 11:48
Show Gist options
  • Save nkgsv/d5530d6be5b71b5674bc to your computer and use it in GitHub Desktop.
Save nkgsv/d5530d6be5b71b5674bc to your computer and use it in GitHub Desktop.
pstgres ltree example
DROP TABLE IF EXISTS KeywordLtreeSandbox CASCADE;
CREATE TABLE KeywordLtreeSandbox(
id INT PRIMARY KEY,
value TEXT,
path ltree
);
INSERT INTO KeywordLtreeSandbox(id, value, path) VALUES
(0, 'A', '')
, (1, 'B', '1')
, (2, 'C', '2')
, (3, 'D', '1.3')
, (4, 'E', '1.4')
, (5, 'F', '1.5')
, (6, 'G', '2.6')
, (7, 'H', '2.7')
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment