pg_ltree 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +29 -0
  4. data/lib/pg_ltree/ltree.rb +190 -0
  5. data/lib/pg_ltree/scoped_for.rb +45 -0
  6. data/lib/pg_ltree/version.rb +8 -0
  7. data/lib/pg_ltree.rb +5 -0
  8. data/lib/tasks/pg_ltree_tasks.rake +4 -0
  9. data/test/doc/_index.html +88 -0
  10. data/test/doc/class_list.html +58 -0
  11. data/test/doc/css/common.css +1 -0
  12. data/test/doc/css/full_list.css +57 -0
  13. data/test/doc/css/style.css +339 -0
  14. data/test/doc/file_list.html +57 -0
  15. data/test/doc/frames.html +26 -0
  16. data/test/doc/index.html +88 -0
  17. data/test/doc/js/app.js +219 -0
  18. data/test/doc/js/full_list.js +181 -0
  19. data/test/doc/js/jquery.js +4 -0
  20. data/test/doc/method_list.html +57 -0
  21. data/test/doc/top-level-namespace.html +102 -0
  22. data/test/dummy/README.rdoc +28 -0
  23. data/test/dummy/Rakefile +6 -0
  24. data/test/dummy/app/assets/javascripts/application.js +13 -0
  25. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  26. data/test/dummy/app/controllers/application_controller.rb +5 -0
  27. data/test/dummy/app/helpers/application_helper.rb +2 -0
  28. data/test/dummy/app/models/not_uniq_tree_node.rb +6 -0
  29. data/test/dummy/app/models/tree_node.rb +3 -0
  30. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  31. data/test/dummy/bin/bundle +3 -0
  32. data/test/dummy/bin/rails +4 -0
  33. data/test/dummy/bin/rake +4 -0
  34. data/test/dummy/bin/setup +29 -0
  35. data/test/dummy/config/application.rb +26 -0
  36. data/test/dummy/config/boot.rb +5 -0
  37. data/test/dummy/config/database.yml.example +14 -0
  38. data/test/dummy/config/environment.rb +5 -0
  39. data/test/dummy/config/environments/development.rb +41 -0
  40. data/test/dummy/config/environments/production.rb +79 -0
  41. data/test/dummy/config/environments/test.rb +42 -0
  42. data/test/dummy/config/initializers/assets.rb +11 -0
  43. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  44. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  45. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  46. data/test/dummy/config/initializers/inflections.rb +16 -0
  47. data/test/dummy/config/initializers/mime_types.rb +4 -0
  48. data/test/dummy/config/initializers/session_store.rb +3 -0
  49. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  50. data/test/dummy/config/locales/en.yml +23 -0
  51. data/test/dummy/config/routes.rb +56 -0
  52. data/test/dummy/config/secrets.yml +22 -0
  53. data/test/dummy/config.ru +4 -0
  54. data/test/dummy/db/migrate/20150809114511_enable_postgres_ltree.rb +13 -0
  55. data/test/dummy/db/migrate/20150809114528_create_tree_node.rb +7 -0
  56. data/test/dummy/db/migrate/20150809114547_create_not_uniq_tree_node.rb +8 -0
  57. data/test/dummy/db/schema.rb +29 -0
  58. data/test/dummy/log/development.log +718 -0
  59. data/test/dummy/log/test.log +34557 -0
  60. data/test/dummy/public/404.html +67 -0
  61. data/test/dummy/public/422.html +67 -0
  62. data/test/dummy/public/500.html +66 -0
  63. data/test/dummy/public/favicon.ico +0 -0
  64. data/test/pg_ltree/ltree_test.rb +154 -0
  65. data/test/pg_ltree/scoped_for_test.rb +157 -0
  66. data/test/pg_ltree_test.rb +7 -0
  67. data/test/test_helper.rb +26 -0
  68. metadata +199 -0
@@ -0,0 +1,718 @@
1
+  (77.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2
+  (63.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
+ ActiveRecord::SchemaMigration Load (1.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
+ Migrating to CreateTreeNode (20150809114528)
5
+  (0.5ms) BEGIN
6
+  (1.1ms) CREATE TABLE "tree_nodes" ("id" serial primary key, "path" ltree) 
7
+ PG::UndefinedObject: ERROR: type "ltree" does not exist
8
+ LINE 1: ... TABLE "tree_nodes" ("id" serial primary key, "path" ltree)
9
+ ^
10
+ : CREATE TABLE "tree_nodes" ("id" serial primary key, "path" ltree)
11
+  (0.4ms) ROLLBACK
12
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
13
+ Migrating to EnablePostgresLtree (20150809114511)
14
+  (0.3ms) BEGIN
15
+  (99.0ms)  CREATE EXTENSION IF NOT EXISTS ltree;
16
+ 
17
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114511"]]
18
+  (28.1ms) COMMIT
19
+ Migrating to CreateTreeNode (20150809114528)
20
+  (0.6ms) BEGIN
21
+  (75.6ms) CREATE TABLE "tree_nodes" ("id" serial primary key, "path" ltree) 
22
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114528"]]
23
+  (15.0ms) COMMIT
24
+ Migrating to CreateNotUniqTreeNode (20150809114547)
25
+  (0.5ms) BEGIN
26
+  (88.6ms) CREATE TABLE "not_uniq_tree_nodes" ("id" serial primary key, "type" character varying, "path" ltree) 
27
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114547"]]
28
+  (15.5ms) COMMIT
29
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
30
+  (5.1ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
31
+ FROM pg_constraint c
32
+ JOIN pg_class t1 ON c.conrelid = t1.oid
33
+ JOIN pg_class t2 ON c.confrelid = t2.oid
34
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
35
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
36
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
37
+ WHERE c.contype = 'f'
38
+ AND t1.relname = 'not_uniq_tree_nodes'
39
+ AND t3.nspname = ANY (current_schemas(false))
40
+ ORDER BY c.conname
41
+ 
42
+  (5.2ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
43
+ FROM pg_constraint c
44
+ JOIN pg_class t1 ON c.conrelid = t1.oid
45
+ JOIN pg_class t2 ON c.confrelid = t2.oid
46
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
47
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
48
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
49
+ WHERE c.contype = 'f'
50
+ AND t1.relname = 'tree_nodes'
51
+ AND t3.nspname = ANY (current_schemas(false))
52
+ ORDER BY c.conname
53
+
54
+ TreeNode Load (1.4ms) SELECT "tree_nodes".* FROM "tree_nodes" ORDER BY "tree_nodes"."id" DESC LIMIT 1
55
+ TreeNode Load (2.9ms) SELECT "tree_nodes".* FROM "tree_nodes" WHERE (SELECT count(DISTINCT subquery.path) = 1 FROM "tree_nodes"AS subquery WHERE subquery.path <@ tree_nodes.path)
56
+ TreeNode Load (1.5ms) SELECT "tree_nodes".* FROM "tree_nodes" WHERE (SELECT count(DISTINCT subquery.path) = 1 FROM "tree_nodes"AS subquery WHERE subquery.path <@ tree_nodes.path)
57
+ NotUniqTreeNode Load (1.6ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT count(DISTINCT subquery.path) = 1 FROM "not_uniq_tree_nodes"AS subquery WHERE subquery.path <@ not_uniq_tree_nodes.path)
58
+ NotUniqTreeNode Load (1.2ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
59
+  (53.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
60
+  (51.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
61
+ ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
62
+ Migrating to EnablePostgresLtree (20150809114511)
63
+  (0.5ms) BEGIN
64
+  (51.2ms)  CREATE EXTENSION IF NOT EXISTS ltree;
65
+ 
66
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114511"]]
67
+  (13.5ms) COMMIT
68
+ Migrating to CreateTreeNode (20150809114528)
69
+  (0.5ms) BEGIN
70
+  (89.4ms) CREATE TABLE "tree_nodes" ("id" serial primary key, "path" ltree) 
71
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114528"]]
72
+  (13.4ms) COMMIT
73
+ Migrating to CreateNotUniqTreeNode (20150809114547)
74
+  (0.6ms) BEGIN
75
+  (78.5ms) CREATE TABLE "not_uniq_tree_nodes" ("id" serial primary key, "type" character varying, "path" ltree) 
76
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114547"]]
77
+  (15.3ms) COMMIT
78
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
79
+  (3.8ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
80
+ FROM pg_constraint c
81
+ JOIN pg_class t1 ON c.conrelid = t1.oid
82
+ JOIN pg_class t2 ON c.confrelid = t2.oid
83
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
84
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
85
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
86
+ WHERE c.contype = 'f'
87
+ AND t1.relname = 'not_uniq_tree_nodes'
88
+ AND t3.nspname = ANY (current_schemas(false))
89
+ ORDER BY c.conname
90
+ 
91
+  (3.1ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
92
+ FROM pg_constraint c
93
+ JOIN pg_class t1 ON c.conrelid = t1.oid
94
+ JOIN pg_class t2 ON c.confrelid = t2.oid
95
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
96
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
97
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
98
+ WHERE c.contype = 'f'
99
+ AND t1.relname = 'tree_nodes'
100
+ AND t3.nspname = ANY (current_schemas(false))
101
+ ORDER BY c.conname
102
+
103
+  (60.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
104
+  (52.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
105
+ ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
106
+ Migrating to EnablePostgresLtree (20150809114511)
107
+  (0.4ms) BEGIN
108
+  (51.4ms)  CREATE EXTENSION IF NOT EXISTS ltree;
109
+ 
110
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114511"]]
111
+  (14.1ms) COMMIT
112
+ Migrating to CreateTreeNode (20150809114528)
113
+  (0.6ms) BEGIN
114
+  (72.9ms) CREATE TABLE "tree_nodes" ("id" serial primary key, "path" ltree) 
115
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114528"]]
116
+  (19.7ms) COMMIT
117
+ Migrating to CreateNotUniqTreeNode (20150809114547)
118
+  (0.4ms) BEGIN
119
+  (87.5ms) CREATE TABLE "not_uniq_tree_nodes" ("id" serial primary key, "status" character varying, "path" ltree) 
120
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114547"]]
121
+  (6.8ms) COMMIT
122
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
123
+  (5.1ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
124
+ FROM pg_constraint c
125
+ JOIN pg_class t1 ON c.conrelid = t1.oid
126
+ JOIN pg_class t2 ON c.confrelid = t2.oid
127
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
128
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
129
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
130
+ WHERE c.contype = 'f'
131
+ AND t1.relname = 'not_uniq_tree_nodes'
132
+ AND t3.nspname = ANY (current_schemas(false))
133
+ ORDER BY c.conname
134
+ 
135
+  (4.6ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
136
+ FROM pg_constraint c
137
+ JOIN pg_class t1 ON c.conrelid = t1.oid
138
+ JOIN pg_class t2 ON c.confrelid = t2.oid
139
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
140
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
141
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
142
+ WHERE c.contype = 'f'
143
+ AND t1.relname = 'tree_nodes'
144
+ AND t3.nspname = ANY (current_schemas(false))
145
+ ORDER BY c.conname
146
+
147
+  (0.4ms) BEGIN
148
+ SQL (1.9ms) INSERT INTO "not_uniq_tree_nodes" ("status", "path") VALUES ($1, $2) RETURNING "id" [["status", "Test"], ["path", "Test"]]
149
+  (35.8ms) COMMIT
150
+ NotUniqTreeNode Load (1.7ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
151
+ PG::SyntaxError: ERROR: syntax error at or near "AS"
152
+ LINE 1: ...des" WHERE "not_uniq_tree_nodes"."status" = 'Test'AS subquer...
153
+ ^
154
+ : SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (SELECT count(DISTINCT subquery.path) = 1 FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = 'Test'AS subquery WHERE subquery.path <@ not_uniq_tree_nodes.path) AND (path <@ 'Test')
155
+ NotUniqTreeNode Load (1.0ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
156
+ PG::SyntaxError: ERROR: syntax error at or near "AS"
157
+ LINE 1: ...des" WHERE "not_uniq_tree_nodes"."status" = 'Test'AS subquer...
158
+ ^
159
+ : SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (SELECT count(DISTINCT subquery.path) = 1 FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = 'Test'AS subquery WHERE subquery.path <@ not_uniq_tree_nodes.path) AND (path <@ 'Test')
160
+ NotUniqTreeNode Load (1.7ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
161
+ PG::SyntaxError: ERROR: syntax error at or near "AS"
162
+ LINE 1: ...es" WHERE "not_uniq_tree_nodes"."status" = 'Test' AS subquer...
163
+ ^
164
+ : SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (SELECT count(DISTINCT subquery.path) = 1 FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = 'Test' AS subquery WHERE subquery.path <@ not_uniq_tree_nodes.path) AND (path <@ 'Test')
165
+ NotUniqTreeNode Load (1.7ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
166
+ NotUniqTreeNode Load (0.7ms) SELECT count(DISTINCT path) = 1 FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (path <@ not_uniq_tree_nodes.path) [["status", "Test"]]
167
+  (49.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
168
+  (53.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
169
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
170
+ Migrating to EnablePostgresLtree (20150809114511)
171
+  (0.3ms) BEGIN
172
+  (54.5ms)  CREATE EXTENSION IF NOT EXISTS ltree;
173
+ 
174
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114511"]]
175
+  (13.4ms) COMMIT
176
+ Migrating to CreateTreeNode (20150809114528)
177
+  (0.4ms) BEGIN
178
+  (82.8ms) CREATE TABLE "tree_nodes" ("id" serial primary key, "path" ltree) 
179
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114528"]]
180
+  (11.3ms) COMMIT
181
+ Migrating to CreateNotUniqTreeNode (20150809114547)
182
+  (0.3ms) BEGIN
183
+  (72.0ms) CREATE TABLE "not_uniq_tree_nodes" ("id" serial primary key, "status" character varying, "path" ltree) 
184
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114547"]]
185
+  (21.5ms) COMMIT
186
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
187
+  (4.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
188
+ FROM pg_constraint c
189
+ JOIN pg_class t1 ON c.conrelid = t1.oid
190
+ JOIN pg_class t2 ON c.confrelid = t2.oid
191
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
192
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
193
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
194
+ WHERE c.contype = 'f'
195
+ AND t1.relname = 'not_uniq_tree_nodes'
196
+ AND t3.nspname = ANY (current_schemas(false))
197
+ ORDER BY c.conname
198
+ 
199
+  (4.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
200
+ FROM pg_constraint c
201
+ JOIN pg_class t1 ON c.conrelid = t1.oid
202
+ JOIN pg_class t2 ON c.confrelid = t2.oid
203
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
204
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
205
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
206
+ WHERE c.contype = 'f'
207
+ AND t1.relname = 'tree_nodes'
208
+ AND t3.nspname = ANY (current_schemas(false))
209
+ ORDER BY c.conname
210
+
211
+  (0.4ms) BEGIN
212
+ SQL (1.2ms) INSERT INTO "not_uniq_tree_nodes" ("status", "path") VALUES ($1, $2) RETURNING "id" [["status", "Test"], ["path", "Test"]]
213
+  (13.7ms) COMMIT
214
+ NotUniqTreeNode Load (1.8ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
215
+ NotUniqTreeNode Load (1.2ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND ( SELECT COUNT(DISTINCT subquery.path) = 1
216
+ FROM not_uniq_tree_nodes AS subquery
217
+ WHERE subquery.path <@ not_uniq_tree_nodes.path
218
+ ) AND (path <@ 'Test') [["status", "Test"]]
219
+ NotUniqTreeNode Load (1.1ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
220
+  (1.1ms) SELECT COUNT(*) FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND ( SELECT COUNT(DISTINCT subquery.path) = 1
221
+ FROM not_uniq_tree_nodes AS subquery
222
+ WHERE subquery.path <@ not_uniq_tree_nodes.path
223
+ ) AND (path <@ 'Test') [["status", "Test"]]
224
+ NotUniqTreeNode Load (1.6ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
225
+ NotUniqTreeNode Load (0.7ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND ( SELECT COUNT(DISTINCT subquery.path) = 1
226
+ FROM not_uniq_tree_nodes AS subquery
227
+ WHERE subquery.path <@ not_uniq_tree_nodes.path
228
+ ) AND (path <@ 'Test') AND ("not_uniq_tree_nodes"."path" != $2) [["status", "Test"], ["path", "Test"]]
229
+ NotUniqTreeNode Load (1.0ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND ( SELECT COUNT(DISTINCT subquery.path) = 1
230
+ FROM not_uniq_tree_nodes AS subquery
231
+ WHERE subquery.path <@ not_uniq_tree_nodes.path
232
+ ) [["status", "Test"]]
233
+ NotUniqTreeNode Load (1.2ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
234
+  (0.9ms) SELECT COUNT(*) FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (path <@ 'Test') [["status", "Test"]]
235
+ NotUniqTreeNode Load (1.6ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
236
+  (0.6ms) SELECT COUNT(*) FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (path @> 'Test') [["status", "Test"]]
237
+ NotUniqTreeNode Load (1.2ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
238
+ NotUniqTreeNode Load (1.7ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
239
+ NotUniqTreeNode Load (1.4ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
240
+ NotUniqTreeNode Load (1.2ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
241
+ NotUniqTreeNode Load (2.8ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
242
+ NotUniqTreeNode Load (1.7ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
243
+ NotUniqTreeNode Load (1.7ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
244
+ NotUniqTreeNode Load (0.6ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes"
245
+ NotUniqTreeNode Load (2.2ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
246
+ NotUniqTreeNode Load (1.7ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
247
+ NotUniqTreeNode Load (1.1ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
248
+ NotUniqTreeNode Load (2.9ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
249
+ NotUniqTreeNode Load (1.8ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
250
+ NotUniqTreeNode Load (1.5ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
251
+ NotUniqTreeNode Load (1.4ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
252
+ PG::UndefinedTable: ERROR: invalid reference to FROM-clause entry for table "not_uniq_tree_nodes"
253
+ LINE 1: ....path) FROM not_uniq_tree_nodes AS subquery WHERE "not_uniq_...
254
+ ^
255
+ HINT: Perhaps you meant to reference the table alias "subquery".
256
+ : SELECT COUNT(subquery.path) FROM not_uniq_tree_nodes AS subquery WHERE "not_uniq_tree_nodes"."status" = $1 AND (subquery.path <@ not_uniq_tree_nodes.path)
257
+  (54.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
258
+  (51.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
259
+ ActiveRecord::SchemaMigration Load (1.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
260
+ Migrating to EnablePostgresLtree (20150809114511)
261
+  (0.5ms) BEGIN
262
+  (54.5ms)  CREATE EXTENSION IF NOT EXISTS ltree;
263
+ 
264
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114511"]]
265
+  (20.1ms) COMMIT
266
+ Migrating to CreateTreeNode (20150809114528)
267
+  (0.6ms) BEGIN
268
+  (79.8ms) CREATE TABLE "tree_nodes" ("id" serial primary key, "path" ltree) 
269
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114528"]]
270
+  (14.1ms) COMMIT
271
+ Migrating to CreateNotUniqTreeNode (20150809114547)
272
+  (0.3ms) BEGIN
273
+  (70.5ms) CREATE TABLE "not_uniq_tree_nodes" ("id" serial primary key, "status" character varying, "path" ltree) 
274
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114547"]]
275
+  (13.3ms) COMMIT
276
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
277
+  (4.9ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
278
+ FROM pg_constraint c
279
+ JOIN pg_class t1 ON c.conrelid = t1.oid
280
+ JOIN pg_class t2 ON c.confrelid = t2.oid
281
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
282
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
283
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
284
+ WHERE c.contype = 'f'
285
+ AND t1.relname = 'not_uniq_tree_nodes'
286
+ AND t3.nspname = ANY (current_schemas(false))
287
+ ORDER BY c.conname
288
+ 
289
+  (4.6ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
290
+ FROM pg_constraint c
291
+ JOIN pg_class t1 ON c.conrelid = t1.oid
292
+ JOIN pg_class t2 ON c.confrelid = t2.oid
293
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
294
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
295
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
296
+ WHERE c.contype = 'f'
297
+ AND t1.relname = 'tree_nodes'
298
+ AND t3.nspname = ANY (current_schemas(false))
299
+ ORDER BY c.conname
300
+
301
+  (0.4ms) BEGIN
302
+ SQL (1.2ms) INSERT INTO "not_uniq_tree_nodes" ("status", "path") VALUES ($1, $2) RETURNING "id" [["status", "Test"], ["path", "Test"]]
303
+  (37.4ms) COMMIT
304
+ NotUniqTreeNode Load (2.1ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
305
+ PG::DatatypeMismatch: ERROR: argument of AND must be type boolean, not type bigint
306
+ LINE 1: ...es" WHERE "not_uniq_tree_nodes"."status" = $1 AND (SELECT CO...
307
+ ^
308
+ : SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (SELECT COUNT(subquery.path) FROM not_uniq_tree_nodes AS subquery WHERE "not_uniq_tree_nodes"."status" = 'Test' AND (subquery.path <@ not_uniq_tree_nodes.path)) AND (path <@ 'Test') AND ("not_uniq_tree_nodes"."path" != $2)
309
+ NotUniqTreeNode Load (1.0ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path))
310
+ PG::DatatypeMismatch: ERROR: argument of WHERE must be type boolean, not type bigint
311
+ LINE 1: ...iq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT CO...
312
+ ^
313
+ : SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path))
314
+ NotUniqTreeNode Load (2.0ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path))
315
+ NotUniqTreeNode Load (1.5ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
316
+ NotUniqTreeNode Load (0.9ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE "not_uniq_tree_nodes"."status" = 'Test' AND (subquery.path <@ not_uniq_tree_nodes.path)) AND (path <@ 'Test') AND ("not_uniq_tree_nodes"."path" != $2) [["status", "Test"], ["path", "Test"]]
317
+ NotUniqTreeNode Load (0.7ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE "not_uniq_tree_nodes"."status" = 'Test' AND (subquery.path <@ not_uniq_tree_nodes.path)) [["status", "Test"]]
318
+ NotUniqTreeNode Load (0.7ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path)) AND "not_uniq_tree_nodes"."status" = $1 [["status", "Test"]]
319
+ NotUniqTreeNode Load (1.0ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path)) AND "not_uniq_tree_nodes"."status" = $1 [["status", "Test2"]]
320
+ NotUniqTreeNode Load (1.0ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
321
+ NotUniqTreeNode Load (0.9ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE "not_uniq_tree_nodes"."status" = 'Test' AND (subquery.path <@ not_uniq_tree_nodes.path)) AND (path <@ 'Test') AND ("not_uniq_tree_nodes"."path" != $2) [["status", "Test"], ["path", "Test"]]
322
+ NotUniqTreeNode Load (0.9ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
323
+  (0.4ms) BEGIN
324
+ SQL (0.6ms) INSERT INTO "not_uniq_tree_nodes" ("status") VALUES ($1) RETURNING "id" [["status", "Test"]]
325
+  (27.9ms) COMMIT
326
+ NotUniqTreeNode Load (1.2ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
327
+  (0.5ms) BEGIN
328
+ SQL (2.4ms) INSERT INTO "not_uniq_tree_nodes" ("status") VALUES ($1) RETURNING "id" [["status", "Test"]]
329
+  (10.7ms) COMMIT
330
+ NotUniqTreeNode Load (1.1ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
331
+  (0.4ms) BEGIN
332
+ SQL (0.7ms) INSERT INTO "not_uniq_tree_nodes" ("status") VALUES ($1) RETURNING "id" [["status", "Test"]]
333
+  (8.3ms) COMMIT
334
+ NotUniqTreeNode Load (0.9ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
335
+  (0.3ms) BEGIN
336
+ SQL (0.5ms) INSERT INTO "not_uniq_tree_nodes" ("status", "path") VALUES ($1, $2) RETURNING "id" [["status", "Test"], ["path", "Test.None"]]
337
+  (26.8ms) COMMIT
338
+ NotUniqTreeNode Load (0.9ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
339
+  (0.5ms) BEGIN
340
+ SQL (0.8ms) INSERT INTO "not_uniq_tree_nodes" ("status", "path") VALUES ($1, $2) RETURNING "id" [["status", "Test"], ["path", "Test.None.1"]]
341
+  (22.5ms) COMMIT
342
+ NotUniqTreeNode Load (0.9ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
343
+  (0.4ms) BEGIN
344
+ SQL (0.7ms) INSERT INTO "not_uniq_tree_nodes" ("status", "path") VALUES ($1, $2) RETURNING "id" [["status", "Test"], ["path", "Test.None.2"]]
345
+  (9.2ms) COMMIT
346
+ NotUniqTreeNode Load (0.8ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
347
+  (0.5ms) BEGIN
348
+ SQL (0.8ms) INSERT INTO "not_uniq_tree_nodes" ("status", "path") VALUES ($1, $2) RETURNING "id" [["status", "Test"], ["path", "Test.Nones"]]
349
+  (18.4ms) COMMIT
350
+ SQL (20.8ms) DELETE FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."path" IS NULL
351
+ NotUniqTreeNode Load (4.0ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path))
352
+ NotUniqTreeNode Load (1.3ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path)) ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
353
+ NotUniqTreeNode Load (1.3ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path)) ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
354
+  (0.8ms) SELECT COUNT(*) FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (path @> 'Test.Nones') [["status", "Test"]]
355
+ NotUniqTreeNode Load (2.0ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path)) ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
356
+ NotUniqTreeNode Load (1.9ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path)) ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
357
+ NotUniqTreeNode Load (1.4ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path)) ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
358
+ NotUniqTreeNode Load (1.9ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path)) ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
359
+ NotUniqTreeNode Load (1.7ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path)) ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
360
+ NotUniqTreeNode Load (2.0ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path)) ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
361
+ NotUniqTreeNode Load (1.6ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path)) ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
362
+ NotUniqTreeNode Load (1.4ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path)) ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
363
+ NotUniqTreeNode Load (1.8ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path)) ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
364
+ NotUniqTreeNode Load (1.6ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path)) ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
365
+ NotUniqTreeNode Load (1.7ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path)) ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
366
+ NotUniqTreeNode Load (0.5ms) SELECT COUNT(path) = 1 FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (path <@ 'Test.Nones') [["status", "Test"]]
367
+ NotUniqTreeNode Load (0.4ms) SELECT COUNT(path) = 1 FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (path <@ 'Test.Nones') [["status", "Test"]]
368
+ NotUniqTreeNode Load (1.8ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path)) ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
369
+ NotUniqTreeNode Load (0.6ms) SELECT COUNT(path) = 1 FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (path <@ 'Test.Nones') [["status", "Test"]]
370
+ NotUniqTreeNode Load (1.9ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path)) ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
371
+ NotUniqTreeNode Load (0.6ms) SELECT COUNT(path) = 1 FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (path <@ 'Test.Nones') [["status", "Test"]]
372
+ NotUniqTreeNode Load (1.9ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path)) ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
373
+ NotUniqTreeNode Load (0.5ms) SELECT COUNT(path) = 1 FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (path <@ 'Test.Nones') [["status", "Test"]]
374
+  (0.5ms) SELECT COUNT(path) = 1 FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = 'Test' AND (path <@ 'Test.Nones')
375
+ NotUniqTreeNode Load (1.7ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path)) ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
376
+ NotUniqTreeNode Load (0.6ms) SELECT COUNT(path) = 1 FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (path <@ 'Test.Nones') [["status", "Test"]]
377
+ NotUniqTreeNode Load (2.3ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path)) ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
378
+ NotUniqTreeNode Load (0.6ms) SELECT COUNT(path) = 1 FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (path <@ 'Test.Nones') [["status", "Test"]]
379
+ NotUniqTreeNode Load (1.5ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path)) ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
380
+ NotUniqTreeNode Load (0.8ms) SELECT COUNT(path) = 1 FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (path <@ 'Test.Nones') [["status", "Test"]]
381
+ NotUniqTreeNode Load (1.2ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path)) ORDER BY "not_uniq_tree_nodes"."id" ASC LIMIT 1
382
+ NotUniqTreeNode Load (0.6ms) SELECT COUNT(path) = 1 FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (path <@ 'Test.None.1') [["status", "Test"]]
383
+ NotUniqTreeNode Load (1.8ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path)) ORDER BY "not_uniq_tree_nodes"."id" ASC LIMIT 1
384
+  (0.7ms) SELECT COUNT(*) FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE "not_uniq_tree_nodes"."status" = 'Test' AND (subquery.path <@ not_uniq_tree_nodes.path)) [["status", "Test"]]
385
+ NotUniqTreeNode Load (1.3ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path)) ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
386
+  (1.2ms) SELECT COUNT(*) FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE "not_uniq_tree_nodes"."status" = 'Test' AND (subquery.path <@ not_uniq_tree_nodes.path)) [["status", "Test"]]
387
+ NotUniqTreeNode Load (1.3ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path)) ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
388
+ NotUniqTreeNode Load (1.3ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path)) ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
389
+ NotUniqTreeNode Load (0.8ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE "not_uniq_tree_nodes"."status" = 'Test' AND (subquery.path <@ not_uniq_tree_nodes.path)) AND (path <@ 'Test.Nones') AND ("not_uniq_tree_nodes"."path" != $2) [["status", "Test"], ["path", "Test.Nones"]]
390
+ NotUniqTreeNode Load (1.9ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path)) ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
391
+ NotUniqTreeNode Load (0.7ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE "not_uniq_tree_nodes"."status" = 'Test' AND (subquery.path <@ not_uniq_tree_nodes.path)) AND (path <@ 'Test.Nones') AND ("not_uniq_tree_nodes"."path" != $2) [["status", "Test"], ["path", "Test.Nones"]]
392
+ NotUniqTreeNode Load (1.4ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path)) ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
393
+  (0.9ms) SELECT COUNT(*) FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE "not_uniq_tree_nodes"."status" = 'Test' AND (subquery.path <@ not_uniq_tree_nodes.path)) [["status", "Test"]]
394
+ NotUniqTreeNode Load (1.5ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path)) ORDER BY "not_uniq_tree_nodes"."id" ASC LIMIT 1
395
+  (1.1ms) SELECT COUNT(*) FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE "not_uniq_tree_nodes"."status" = 'Test' AND (subquery.path <@ not_uniq_tree_nodes.path)) [["status", "Test"]]
396
+ NotUniqTreeNode Load (1.3ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path)) ORDER BY "not_uniq_tree_nodes"."id" ASC LIMIT 1
397
+ NotUniqTreeNode Load (0.8ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE "not_uniq_tree_nodes"."status" = 'Test' AND (subquery.path <@ not_uniq_tree_nodes.path)) AND (path <@ 'Test.None.1') AND ("not_uniq_tree_nodes"."path" != $2) [["status", "Test"], ["path", "Test.None.1"]]
398
+ NotUniqTreeNode Load (1.4ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path)) ORDER BY "not_uniq_tree_nodes"."id" ASC LIMIT 1
399
+  (1.0ms) SELECT COUNT(*) FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE "not_uniq_tree_nodes"."status" = 'Test' AND (subquery.path <@ not_uniq_tree_nodes.path)) AND (path <@ 'Test.None.1') AND ("not_uniq_tree_nodes"."path" != $2) [["status", "Test"], ["path", "Test.None.1"]]
400
+ NotUniqTreeNode Load (1.4ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path)) ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
401
+  (0.8ms) SELECT COUNT(*) FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE "not_uniq_tree_nodes"."status" = 'Test' AND (subquery.path <@ not_uniq_tree_nodes.path)) AND (path <@ 'Test.Nones') AND ("not_uniq_tree_nodes"."path" != $2) [["status", "Test"], ["path", "Test.Nones"]]
402
+ NotUniqTreeNode Load (1.5ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path)) ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
403
+ NotUniqTreeNode Load (1.0ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE "not_uniq_tree_nodes"."status" = 'Test' AND (subquery.path <@ not_uniq_tree_nodes.path)) AND (path <@ 'Test.Nones') AND ("not_uniq_tree_nodes"."path" != $2) [["status", "Test"], ["path", "Test.Nones"]]
404
+ NotUniqTreeNode Load (1.8ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path)) ORDER BY "not_uniq_tree_nodes"."id" ASC LIMIT 1
405
+ NotUniqTreeNode Load (0.9ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE "not_uniq_tree_nodes"."status" = 'Test' AND (subquery.path <@ not_uniq_tree_nodes.path)) AND (path <@ 'Test.None.1') AND ("not_uniq_tree_nodes"."path" != $2) [["status", "Test"], ["path", "Test.None.1"]]
406
+ NotUniqTreeNode Load (1.5ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path)) ORDER BY "not_uniq_tree_nodes"."id" ASC LIMIT 1 OFFSET 1
407
+ NotUniqTreeNode Load (0.9ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE "not_uniq_tree_nodes"."status" = 'Test' AND (subquery.path <@ not_uniq_tree_nodes.path)) AND (path <@ 'Test.None.2') AND ("not_uniq_tree_nodes"."path" != $2) [["status", "Test"], ["path", "Test.None.2"]]
408
+ NotUniqTreeNode Load (3.7ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path))
409
+ NotUniqTreeNode Load (1.0ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path)) AND "not_uniq_tree_nodes"."path" = $1 [["path", "Test.None"]]
410
+ NotUniqTreeNode Load (0.7ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."path" = $1 [["path", "Test.None"]]
411
+ NotUniqTreeNode Load (0.8ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."path" = $1 [["path", "Test.None"]]
412
+ NotUniqTreeNode Load (0.7ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."path" = $1 ORDER BY "not_uniq_tree_nodes"."id" ASC LIMIT 1 [["path", "Test.None"]]
413
+ NotUniqTreeNode Load (0.8ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."path" = $1 ORDER BY "not_uniq_tree_nodes"."id" ASC LIMIT 1 [["path", "Test.None"]]
414
+  (0.9ms) SELECT COUNT(*) FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE "not_uniq_tree_nodes"."status" = 'Test' AND (subquery.path <@ not_uniq_tree_nodes.path)) [["status", "Test"]]
415
+ NotUniqTreeNode Load (1.4ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path)) ORDER BY "not_uniq_tree_nodes"."id" ASC LIMIT 1
416
+ NotUniqTreeNode Load (1.0ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE "not_uniq_tree_nodes"."status" = 'Test' AND (subquery.path <@ not_uniq_tree_nodes.path)) AND (path <@ 'Test.None.1') AND ("not_uniq_tree_nodes"."path" != $2) [["status", "Test"], ["path", "Test.None.1"]]
417
+ NotUniqTreeNode Load (1.3ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path)) ORDER BY "not_uniq_tree_nodes"."id" ASC LIMIT 1
418
+ NotUniqTreeNode Load (1.4ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path)) ORDER BY "not_uniq_tree_nodes"."id" ASC LIMIT 1
419
+  (1.0ms) SELECT COUNT(*) FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE "not_uniq_tree_nodes"."status" = 'Test' AND (subquery.path <@ not_uniq_tree_nodes.path)) [["status", "Test"]]
420
+ NotUniqTreeNode Load (1.9ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path)) ORDER BY "not_uniq_tree_nodes"."id" ASC LIMIT 1
421
+  (0.8ms) SELECT COUNT(*) FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE "not_uniq_tree_nodes"."status" = 'Test' AND (subquery.path <@ not_uniq_tree_nodes.path)) [["status", "Test"]]
422
+  (0.6ms) SELECT COUNT(*) FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE "not_uniq_tree_nodes"."status" = 'Test' AND (subquery.path <@ not_uniq_tree_nodes.path)) [["status", "Test"]]
423
+ NotUniqTreeNode Load (2.1ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path)) ORDER BY "not_uniq_tree_nodes"."id" ASC LIMIT 1
424
+  (0.8ms) SELECT COUNT(*) FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE "not_uniq_tree_nodes"."status" = 'Test' AND (subquery.path <@ not_uniq_tree_nodes.path)) AND (path <@ 'Test.None.1') AND ("not_uniq_tree_nodes"."path" != $2) [["status", "Test"], ["path", "Test.None.1"]]
425
+ NotUniqTreeNode Load (1.4ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path)) ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
426
+  (1.0ms) SELECT COUNT(*) FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE "not_uniq_tree_nodes"."status" = 'Test' AND (subquery.path <@ not_uniq_tree_nodes.path)) AND (path <@ 'Test.Nones') AND ("not_uniq_tree_nodes"."path" != $2) [["status", "Test"], ["path", "Test.Nones"]]
427
+ NotUniqTreeNode Load (1.3ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.path <@ not_uniq_tree_nodes.path))
428
+ NotUniqTreeNode Load (1.3ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" ASC LIMIT 1
429
+ NotUniqTreeNode Load (0.9ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" ASC LIMIT 1
430
+  (0.9ms) SELECT COUNT(*) FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE "not_uniq_tree_nodes"."status" = 'Test' AND (subquery.path <@ not_uniq_tree_nodes.path)) AND (path <@ 'Test') AND ("not_uniq_tree_nodes"."path" != $2) [["status", "Test"], ["path", "Test"]]
431
+ NotUniqTreeNode Load (4.2ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" ASC LIMIT 1
432
+ NotUniqTreeNode Load (0.8ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND ('Test' @> path AND nlevel(path) = NLEVEL('Test') + 1) [["status", "Test"]]
433
+ NotUniqTreeNode Load (1.0ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" ASC LIMIT 1
434
+ NotUniqTreeNode Load (1.0ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND ('Test' @> path AND nlevel(path) = NLEVEL('Test') + 1) ORDER BY "not_uniq_tree_nodes"."id" ASC LIMIT 1 [["status", "Test"]]
435
+ NotUniqTreeNode Load (1.0ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" ASC LIMIT 1
436
+ NotUniqTreeNode Load (0.8ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND ('Test' @> path AND nlevel(path) = NLEVEL('Test') + 1) ORDER BY "not_uniq_tree_nodes"."id" ASC LIMIT 1 [["status", "Test"]]
437
+  (0.9ms) SELECT COUNT(*) FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE "not_uniq_tree_nodes"."status" = 'Test' AND (subquery.path <@ not_uniq_tree_nodes.path)) AND (path <@ 'Test.None') AND ("not_uniq_tree_nodes"."path" != $2) [["status", "Test"], ["path", "Test.None"]]
438
+ NotUniqTreeNode Load (3.0ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" ASC LIMIT 1
439
+ NotUniqTreeNode Load (1.5ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND ('Test' @> path AND nlevel(path) = NLEVEL('Test') + 1) ORDER BY "not_uniq_tree_nodes"."id" ASC LIMIT 1 [["status", "Test"]]
440
+ NotUniqTreeNode Load (0.8ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND ('Test.None' @> path AND nlevel(path) = NLEVEL('Test.None') + 1) ORDER BY "not_uniq_tree_nodes"."id" ASC LIMIT 1 [["status", "Test"]]
441
+ NotUniqTreeNode Load (0.9ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" ASC LIMIT 1
442
+ NotUniqTreeNode Load (0.7ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND ('Test' @> path AND nlevel(path) = NLEVEL('Test') + 1) ORDER BY "not_uniq_tree_nodes"."id" ASC LIMIT 1 [["status", "Test"]]
443
+ NotUniqTreeNode Load (0.7ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND ('Test.None' @> path AND nlevel(path) = NLEVEL('Test.None') + 1) ORDER BY "not_uniq_tree_nodes"."id" ASC LIMIT 1 [["status", "Test"]]
444
+  (0.8ms) SELECT COUNT(*) FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (SELECT COUNT(subquery.path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE "not_uniq_tree_nodes"."status" = 'Test' AND (subquery.path <@ not_uniq_tree_nodes.path)) AND (path <@ 'Test.None.1') AND ("not_uniq_tree_nodes"."path" != $2) [["status", "Test"], ["path", "Test.None.1"]]
445
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
446
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
447
+  (3.2ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
448
+ FROM pg_constraint c
449
+ JOIN pg_class t1 ON c.conrelid = t1.oid
450
+ JOIN pg_class t2 ON c.confrelid = t2.oid
451
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
452
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
453
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
454
+ WHERE c.contype = 'f'
455
+ AND t1.relname = 'not_uniq_tree_nodes'
456
+ AND t3.nspname = ANY (current_schemas(false))
457
+ ORDER BY c.conname
458
+ 
459
+  (2.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
460
+ FROM pg_constraint c
461
+ JOIN pg_class t1 ON c.conrelid = t1.oid
462
+ JOIN pg_class t2 ON c.confrelid = t2.oid
463
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
464
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
465
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
466
+ WHERE c.contype = 'f'
467
+ AND t1.relname = 'tree_nodes'
468
+ AND t3.nspname = ANY (current_schemas(false))
469
+ ORDER BY c.conname
470
+
471
+  (53.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
472
+  (64.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
473
+ ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
474
+ Migrating to EnablePostgresLtree (20150809114511)
475
+  (0.4ms) BEGIN
476
+  (48.7ms)  CREATE EXTENSION IF NOT EXISTS ltree;
477
+ 
478
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114511"]]
479
+  (13.7ms) COMMIT
480
+ Migrating to CreateTreeNode (20150809114528)
481
+  (0.5ms) BEGIN
482
+  (75.1ms) CREATE TABLE "tree_nodes" ("id" serial primary key, "path" ltree) 
483
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114528"]]
484
+  (17.4ms) COMMIT
485
+ Migrating to CreateNotUniqTreeNode (20150809114547)
486
+  (0.6ms) BEGIN
487
+  (74.8ms) CREATE TABLE "not_uniq_tree_nodes" ("id" serial primary key, "status" character varying, "new_path" ltree) 
488
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114547"]]
489
+  (17.1ms) COMMIT
490
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
491
+  (6.9ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
492
+ FROM pg_constraint c
493
+ JOIN pg_class t1 ON c.conrelid = t1.oid
494
+ JOIN pg_class t2 ON c.confrelid = t2.oid
495
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
496
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
497
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
498
+ WHERE c.contype = 'f'
499
+ AND t1.relname = 'not_uniq_tree_nodes'
500
+ AND t3.nspname = ANY (current_schemas(false))
501
+ ORDER BY c.conname
502
+ 
503
+  (5.2ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
504
+ FROM pg_constraint c
505
+ JOIN pg_class t1 ON c.conrelid = t1.oid
506
+ JOIN pg_class t2 ON c.confrelid = t2.oid
507
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
508
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
509
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
510
+ WHERE c.contype = 'f'
511
+ AND t1.relname = 'tree_nodes'
512
+ AND t3.nspname = ANY (current_schemas(false))
513
+ ORDER BY c.conname
514
+
515
+  (57.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
516
+  (51.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
517
+ ActiveRecord::SchemaMigration Load (1.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
518
+ Migrating to EnablePostgresLtree (20150809114511)
519
+  (0.5ms) BEGIN
520
+  (53.9ms)  CREATE EXTENSION IF NOT EXISTS ltree;
521
+ 
522
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114511"]]
523
+  (20.3ms) COMMIT
524
+ Migrating to CreateTreeNode (20150809114528)
525
+  (0.6ms) BEGIN
526
+  (79.8ms) CREATE TABLE "tree_nodes" ("id" serial primary key, "path" ltree) 
527
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114528"]]
528
+  (11.7ms) COMMIT
529
+ Migrating to CreateNotUniqTreeNode (20150809114547)
530
+  (0.6ms) BEGIN
531
+  (91.9ms) CREATE TABLE "not_uniq_tree_nodes" ("id" serial primary key, "status" character varying, "new_path" ltree) 
532
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114547"]]
533
+  (11.8ms) COMMIT
534
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
535
+  (5.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
536
+ FROM pg_constraint c
537
+ JOIN pg_class t1 ON c.conrelid = t1.oid
538
+ JOIN pg_class t2 ON c.confrelid = t2.oid
539
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
540
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
541
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
542
+ WHERE c.contype = 'f'
543
+ AND t1.relname = 'not_uniq_tree_nodes'
544
+ AND t3.nspname = ANY (current_schemas(false))
545
+ ORDER BY c.conname
546
+ 
547
+  (5.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
548
+ FROM pg_constraint c
549
+ JOIN pg_class t1 ON c.conrelid = t1.oid
550
+ JOIN pg_class t2 ON c.confrelid = t2.oid
551
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
552
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
553
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
554
+ WHERE c.contype = 'f'
555
+ AND t1.relname = 'tree_nodes'
556
+ AND t3.nspname = ANY (current_schemas(false))
557
+ ORDER BY c.conname
558
+
559
+  (0.3ms) BEGIN
560
+ SQL (1.3ms) INSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id" [["path", "Top"]]
561
+  (23.3ms) COMMIT
562
+  (0.2ms) BEGIN
563
+ SQL (0.5ms) INSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id" [["path", "Top.Science"]]
564
+  (7.6ms) COMMIT
565
+  (0.3ms) BEGIN
566
+ SQL (0.9ms) INSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id" [["path", "Top.Science.Astronomy"]]
567
+  (7.8ms) COMMIT
568
+  (0.3ms) BEGIN
569
+ SQL (0.5ms) INSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id" [["path", "Top.Science.Astronomy.Astrophysics"]]
570
+  (7.8ms) COMMIT
571
+  (0.3ms) BEGIN
572
+ SQL (0.5ms) INSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id" [["path", "Top.Science.Astronomy.Cosmology"]]
573
+  (8.0ms) COMMIT
574
+  (0.3ms) BEGIN
575
+ SQL (0.5ms) INSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id" [["path", "Top.Hobbies"]]
576
+  (8.4ms) COMMIT
577
+  (0.3ms) BEGIN
578
+ SQL (0.4ms) INSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id" [["path", "Top.Hobbies.Amateurs_Astronomy"]]
579
+  (7.9ms) COMMIT
580
+  (0.4ms) BEGIN
581
+ SQL (0.7ms) INSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id" [["path", "Top.Collections"]]
582
+  (6.0ms) COMMIT
583
+  (0.3ms) BEGIN
584
+ SQL (0.5ms) INSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id" [["path", "Top.Collections.Pictures"]]
585
+  (7.7ms) COMMIT
586
+  (0.4ms) BEGIN
587
+ SQL (0.5ms) INSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id" [["path", "Top.Collections.Pictures.Astronomy"]]
588
+  (7.5ms) COMMIT
589
+  (0.3ms) BEGIN
590
+ SQL (0.4ms) INSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id" [["path", "Top.Collections.Pictures.Astronomy.Stars"]]
591
+  (7.8ms) COMMIT
592
+  (0.3ms) BEGIN
593
+ SQL (0.4ms) INSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id" [["path", "Top.Collections.Pictures.Astronomy.Galaxies"]]
594
+  (7.8ms) COMMIT
595
+  (0.3ms) BEGIN
596
+ SQL (0.5ms) INSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id" [["path", "Top.Collections.Pictures.Astronomy.Astronauts"]]
597
+  (7.8ms) COMMIT
598
+ TreeNode Load (1.5ms) SELECT "tree_nodes".* FROM "tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM tree_nodes AS subquery WHERE (subquery.path <@ tree_nodes.path))
599
+ TreeNode Load (1.5ms) SELECT "tree_nodes".* FROM "tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM tree_nodes AS subquery WHERE (subquery.path <@ tree_nodes.path))
600
+  (1.5ms) SELECT COUNT(*) FROM "tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM tree_nodes AS subquery WHERE (subquery.path <@ tree_nodes.path))
601
+  (1.5ms) SELECT "tree_nodes"."path" FROM "tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM tree_nodes AS subquery WHERE (subquery.path <@ tree_nodes.path))
602
+  (1.3ms) SELECT "tree_nodes"."path" FROM "tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM tree_nodes AS subquery WHERE (subquery.path <@ tree_nodes.path))
603
+  (1.6ms) SELECT "tree_nodes"."path" FROM "tree_nodes" WHERE (path ~ '*{,3}.Astronomy|Pictures')
604
+  (1.0ms) SELECT "tree_nodes"."path" FROM "tree_nodes" WHERE (path ~ '*{,2}.Astronomy|Pictures')
605
+  (1.4ms) SELECT "tree_nodes"."path" FROM "tree_nodes" WHERE (NLEVEL(path) = 0)
606
+  (0.9ms) SELECT "tree_nodes"."path" FROM "tree_nodes" WHERE (NLEVEL(path) = 1)
607
+  (0.9ms) SELECT "tree_nodes"."path" FROM "tree_nodes" WHERE (NLEVEL(path) = 2)
608
+  (0.8ms) SELECT "tree_nodes"."path" FROM "tree_nodes" WHERE (NLEVEL(path) = 3)
609
+  (1.0ms) SELECT "tree_nodes"."path" FROM "tree_nodes" WHERE (path ~ '*{3}.Astronomy|Pictures')
610
+  (1.0ms) SELECT "tree_nodes"."path" FROM "tree_nodes" WHERE (path ~ '*{3}|Astronomy|Pictures')
611
+ PG::SyntaxError: ERROR: syntax error at position 4
612
+ LINE 1: ...ree_nodes"."path" FROM "tree_nodes" WHERE (path ~ '*{3}|Astr...
613
+ ^
614
+ : SELECT "tree_nodes"."path" FROM "tree_nodes" WHERE (path ~ '*{3}|Astronomy|Pictures')
615
+  (1.0ms) SELECT "tree_nodes"."path" FROM "tree_nodes" WHERE (path ~ '*{2}Astronomy|Pictures')
616
+ PG::SyntaxError: ERROR: syntax error at position 4
617
+ LINE 1: ...ree_nodes"."path" FROM "tree_nodes" WHERE (path ~ '*{2}Astro...
618
+ ^
619
+ : SELECT "tree_nodes"."path" FROM "tree_nodes" WHERE (path ~ '*{2}Astronomy|Pictures')
620
+  (0.8ms) SELECT "tree_nodes"."path" FROM "tree_nodes" WHERE (path ~ '*{2}.Astronomy|Pictures')
621
+  (0.8ms) SELECT "tree_nodes"."path" FROM "tree_nodes" WHERE (NLEVEL(path) = 5)
622
+ TreeNode Load (3.8ms) SELECT "tree_nodes".* FROM "tree_nodes" ORDER BY "tree_nodes"."id" DESC LIMIT 1
623
+ TreeNode Load (1.2ms) SELECT "tree_nodes".* FROM "tree_nodes" WHERE (path @> 'Top.Collections.Pictures.Astronomy.Astronauts')
624
+ TreeNode Load (1.1ms) SELECT "tree_nodes".* FROM "tree_nodes" ORDER BY "tree_nodes"."id" DESC LIMIT 1
625
+  (0.8ms) SELECT "tree_nodes"."path" FROM "tree_nodes" WHERE (path @> 'Top.Collections.Pictures.Astronomy.Astronauts')
626
+ TreeNode Load (1.0ms) SELECT "tree_nodes".* FROM "tree_nodes" ORDER BY "tree_nodes"."id" DESC LIMIT 1
627
+  (0.4ms) BEGIN
628
+ SQL (1.0ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top"], ["status", "active"]]
629
+  (22.3ms) COMMIT
630
+  (0.4ms) BEGIN
631
+ SQL (0.6ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top"], ["status", "deactive"]]
632
+  (7.5ms) COMMIT
633
+  (0.3ms) BEGIN
634
+ SQL (0.6ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Science"], ["status", "active"]]
635
+  (7.5ms) COMMIT
636
+  (0.4ms) BEGIN
637
+ SQL (0.7ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Science"], ["status", "deactive"]]
638
+  (7.3ms) COMMIT
639
+  (0.4ms) BEGIN
640
+ SQL (0.7ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Science.Astronomy"], ["status", "active"]]
641
+  (7.5ms) COMMIT
642
+  (0.3ms) BEGIN
643
+ SQL (0.5ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Science.Astronomy"], ["status", "deactive"]]
644
+  (7.6ms) COMMIT
645
+  (0.2ms) BEGIN
646
+ SQL (0.5ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Science.Astronomy.Astrophysics"], ["status", "active"]]
647
+  (8.2ms) COMMIT
648
+  (0.4ms) BEGIN
649
+ SQL (0.5ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Science.Astronomy.Astrophysics"], ["status", "deactive"]]
650
+  (7.5ms) COMMIT
651
+  (0.4ms) BEGIN
652
+ SQL (0.5ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Science.Astronomy.Cosmology"], ["status", "active"]]
653
+  (7.9ms) COMMIT
654
+  (0.3ms) BEGIN
655
+ SQL (0.5ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Science.Astronomy.Cosmology"], ["status", "deactive"]]
656
+  (7.7ms) COMMIT
657
+  (0.4ms) BEGIN
658
+ SQL (0.5ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Hobbies"], ["status", "active"]]
659
+  (8.1ms) COMMIT
660
+  (0.7ms) BEGIN
661
+ SQL (0.6ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Hobbies"], ["status", "deactive"]]
662
+  (6.6ms) COMMIT
663
+  (0.4ms) BEGIN
664
+ SQL (0.5ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Hobbies.Amateurs_Astronomy"], ["status", "active"]]
665
+  (8.0ms) COMMIT
666
+  (0.5ms) BEGIN
667
+ SQL (0.5ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Hobbies.Amateurs_Astronomy"], ["status", "deactive"]]
668
+  (7.8ms) COMMIT
669
+  (0.3ms) BEGIN
670
+ SQL (0.4ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Collections"], ["status", "active"]]
671
+  (8.3ms) COMMIT
672
+  (0.3ms) BEGIN
673
+ SQL (0.4ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Collections"], ["status", "deactive"]]
674
+  (8.3ms) COMMIT
675
+  (0.3ms) BEGIN
676
+ SQL (0.4ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Collections.Pictures"], ["status", "active"]]
677
+  (8.2ms) COMMIT
678
+  (0.3ms) BEGIN
679
+ SQL (0.6ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Collections.Pictures"], ["status", "deactive"]]
680
+  (8.3ms) COMMIT
681
+  (0.3ms) BEGIN
682
+ SQL (0.5ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Collections.Pictures.Astronomy"], ["status", "active"]]
683
+  (8.0ms) COMMIT
684
+  (0.3ms) BEGIN
685
+ SQL (0.5ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Collections.Pictures.Astronomy"], ["status", "deactive"]]
686
+  (7.7ms) COMMIT
687
+  (0.3ms) BEGIN
688
+ SQL (0.4ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Collections.Pictures.Astronomy.Stars"], ["status", "active"]]
689
+  (8.3ms) COMMIT
690
+  (0.3ms) BEGIN
691
+ SQL (0.4ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Collections.Pictures.Astronomy.Stars"], ["status", "deactive"]]
692
+  (8.4ms) COMMIT
693
+  (0.3ms) BEGIN
694
+ SQL (0.7ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Collections.Pictures.Astronomy.Galaxies"], ["status", "active"]]
695
+  (7.4ms) COMMIT
696
+  (0.4ms) BEGIN
697
+ SQL (0.5ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Collections.Pictures.Astronomy.Galaxies"], ["status", "deactive"]]
698
+  (7.1ms) COMMIT
699
+  (0.4ms) BEGIN
700
+ SQL (0.5ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Collections.Pictures.Astronomy.Astronauts"], ["status", "active"]]
701
+  (7.3ms) COMMIT
702
+  (0.3ms) BEGIN
703
+ SQL (0.5ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Collections.Pictures.Astronomy.Astronauts"], ["status", "deactive"]]
704
+  (7.8ms) COMMIT
705
+  (1.1ms) SELECT "not_uniq_tree_nodes"."new_path" FROM "not_uniq_tree_nodes" WHERE (NLEVEL(new_path) = 1)
706
+  (1.0ms) SELECT "not_uniq_tree_nodes"."new_path" FROM "not_uniq_tree_nodes" WHERE (NLEVEL(new_path) = 5)
707
+  (1.5ms) SELECT "not_uniq_tree_nodes"."new_path" FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.new_path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.new_path <@ not_uniq_tree_nodes.new_path))
708
+  (1.7ms) SELECT "not_uniq_tree_nodes"."new_path" FROM "not_uniq_tree_nodes" WHERE (SELECT COUNT(subquery.new_path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE (subquery.new_path <@ not_uniq_tree_nodes.new_path))
709
+  (1.4ms) SELECT "not_uniq_tree_nodes"."new_path" FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (SELECT COUNT(subquery.new_path) = 1 FROM not_uniq_tree_nodes AS subquery WHERE "not_uniq_tree_nodes"."status" = 'active' AND (subquery.new_path <@ not_uniq_tree_nodes.new_path)) [["status", "active"]]
710
+ PG::UndefinedTable: ERROR: relation "subquery" does not exist
711
+ LINE 1: ...y.new_path) = (SELECT COUNT(DISTINCT status) FROM subquery) ...
712
+ ^
713
+ : SELECT "not_uniq_tree_nodes"."new_path" FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (SELECT COUNT(subquery.new_path) = (SELECT COUNT(DISTINCT status) FROM subquery) FROM not_uniq_tree_nodes AS subquery WHERE "not_uniq_tree_nodes"."status" = 'active' AND (subquery.new_path <@ not_uniq_tree_nodes.new_path))
714
+ PG::UndefinedTable: ERROR: relation "subquery" does not exist
715
+ LINE 1: ...y.new_path) = (SELECT COUNT(DISTINCT status) FROM subquery) ...
716
+ ^
717
+ : SELECT "not_uniq_tree_nodes"."new_path" FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (SELECT COUNT(subquery.new_path) = (SELECT COUNT(DISTINCT status) FROM subquery) FROM not_uniq_tree_nodes AS subquery WHERE "not_uniq_tree_nodes"."status" = 'active' AND (subquery.new_path <@ not_uniq_tree_nodes.new_path))
718
+  (1.4ms) SELECT "not_uniq_tree_nodes"."new_path" FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (SELECT COUNT(subquery.new_path) = (SELECT COUNT(DISTINCT status) FROM not_uniq_tree_nodes) FROM not_uniq_tree_nodes AS subquery WHERE "not_uniq_tree_nodes"."status" = 'active' AND (subquery.new_path <@ not_uniq_tree_nodes.new_path)) [["status", "active"]]