pg_ltree 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,494 +1,24 @@
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"
1
+  (265.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2
+  (29.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
+ ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
170
4
  Migrating to EnablePostgresLtree (20150809114511)
171
5
   (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;
6
+  (449.8ms)  CREATE EXTENSION IF NOT EXISTS ltree;
263
7
  
264
- SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114511"]]
265
-  (20.1ms) COMMIT
8
+ SQL (17.0ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114511"]]
9
+  (0.9ms) COMMIT
266
10
  Migrating to CreateTreeNode (20150809114528)
267
11
   (0.6ms) BEGIN
268
-  (79.8ms) CREATE TABLE "tree_nodes" ("id" serial primary key, "path" ltree) 
12
+  (165.2ms) CREATE TABLE "tree_nodes" ("id" serial primary key, "path" ltree) 
269
13
  SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114528"]]
270
-  (14.1ms) COMMIT
14
+  (0.6ms) COMMIT
271
15
  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"
16
+  (15.6ms) BEGIN
17
+  (19.4ms) CREATE TABLE "not_uniq_tree_nodes" ("id" serial primary key, "status" character varying, "new_path" ltree) 
18
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114547"]]
19
+  (0.7ms) COMMIT
446
20
  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
21
+  (2.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
492
22
  FROM pg_constraint c
493
23
  JOIN pg_class t1 ON c.conrelid = t1.oid
494
24
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -500,7 +30,7 @@ WHERE c.contype = 'f'
500
30
  AND t3.nspname = ANY (current_schemas(false))
501
31
  ORDER BY c.conname
502
32
  
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
33
+  (2.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
504
34
  FROM pg_constraint c
505
35
  JOIN pg_class t1 ON c.conrelid = t1.oid
506
36
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -512,207 +42,163 @@ WHERE c.contype = 'f'
512
42
  AND t3.nspname = ANY (current_schemas(false))
513
43
  ORDER BY c.conname
514
44
 
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
45
+ TreeNode Load (113.1ms) SELECT "tree_nodes".* FROM "tree_nodes" ORDER BY "tree_nodes"."id" ASC LIMIT 1
46
+ TreeNode Load (0.5ms) SELECT "tree_nodes".* FROM "tree_nodes" ORDER BY "tree_nodes"."id" ASC LIMIT 1
627
47
   (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
48
+ SQL (11.6ms) INSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id" [["path", "Top"]]
49
+  (50.3ms) COMMIT
50
+  (0.2ms) BEGIN
51
+ SQL (0.3ms) INSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id" [["path", "Top.Science"]]
52
+  (0.4ms) COMMIT
53
+  (0.1ms) BEGIN
54
+ SQL (0.2ms) INSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id" [["path", "Top.Science.Astronomy"]]
55
+  (0.4ms) COMMIT
56
+  (0.1ms) BEGIN
57
+ SQL (0.2ms) INSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id" [["path", "Top.Science.Astronomy.Astrophysics"]]
58
+  (0.4ms) COMMIT
59
+  (0.1ms) BEGIN
60
+ SQL (0.2ms) INSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id" [["path", "Top.Science.Astronomy.Cosmology"]]
61
+  (0.5ms) COMMIT
62
+  (0.2ms) BEGIN
63
+ SQL (0.3ms) INSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id" [["path", "Top.Hobbies"]]
64
+  (0.4ms) COMMIT
65
+  (0.2ms) BEGIN
66
+ SQL (0.2ms) INSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id" [["path", "Top.Hobbies.Amateurs_Astronomy"]]
67
+  (0.4ms) COMMIT
68
+  (0.1ms) BEGIN
69
+ SQL (0.2ms) INSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id" [["path", "Top.Collections"]]
70
+  (0.7ms) COMMIT
71
+  (0.2ms) BEGIN
72
+ SQL (0.2ms) INSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id" [["path", "Top.Collections.Pictures"]]
73
+  (0.4ms) COMMIT
74
+  (0.1ms) BEGIN
75
+ SQL (0.2ms) INSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id" [["path", "Top.Collections.Pictures.Astronomy"]]
76
+  (0.4ms) COMMIT
77
+  (0.1ms) BEGIN
78
+ SQL (0.2ms) INSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id" [["path", "Top.Collections.Pictures.Astronomy.Stars"]]
79
+  (0.4ms) COMMIT
80
+  (0.1ms) BEGIN
81
+ SQL (0.2ms) INSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id" [["path", "Top.Collections.Pictures.Astronomy.Galaxies"]]
82
+  (0.4ms) COMMIT
83
+  (0.1ms) BEGIN
84
+ SQL (0.2ms) INSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id" [["path", "Top.Collections.Pictures.Astronomy.Astronauts"]]
85
+  (0.4ms) COMMIT
86
+ TreeNode Load (28.8ms) SELECT "tree_nodes".* FROM "tree_nodes" ORDER BY "tree_nodes"."id" ASC LIMIT 1
87
+ SQL (11.9ms) UPDATE "tree_nodes" SET path = 'Top' OR subpath(path, nlevel('Top')) WHERE (path <@ 'Top')
88
+ PG::InvalidTextRepresentation: ERROR: invalid input syntax for type boolean: "Top"
89
+ LINE 1: UPDATE "tree_nodes" SET path = 'Top' OR subpath(path, nlevel...
90
+ ^
91
+ : UPDATE "tree_nodes" SET path = 'Top' OR subpath(path, nlevel('Top')) WHERE (path <@ 'Top')
92
+ TreeNode Load (0.4ms) SELECT "tree_nodes".* FROM "tree_nodes" ORDER BY "tree_nodes"."id" ASC LIMIT 1
93
+ SQL (0.3ms) UPDATE "tree_nodes" SET path = 'Top' OR subpath(path, nlevel('Top')) WHERE (path <@ 'Top')
94
+ PG::InvalidTextRepresentation: ERROR: invalid input syntax for type boolean: "Top"
95
+ LINE 1: UPDATE "tree_nodes" SET path = 'Top' OR subpath(path, nlevel...
96
+ ^
97
+ : UPDATE "tree_nodes" SET path = 'Top' OR subpath(path, nlevel('Top')) WHERE (path <@ 'Top')
98
+ TreeNode Load (0.6ms) SELECT "tree_nodes".* FROM "tree_nodes" ORDER BY "tree_nodes"."id" ASC LIMIT 1
99
+ SQL (0.5ms) UPDATE "tree_nodes" SET path = 'Top' OR subpath(path, nlevel('Top')) WHERE (path <@ 'Top')
100
+ PG::InvalidTextRepresentation: ERROR: invalid input syntax for type boolean: "Top"
101
+ LINE 1: UPDATE "tree_nodes" SET path = 'Top' OR subpath(path, nlevel...
102
+ ^
103
+ : UPDATE "tree_nodes" SET path = 'Top' OR subpath(path, nlevel('Top')) WHERE (path <@ 'Top')
104
+ TreeNode Load (1.5ms) SELECT "tree_nodes".* FROM "tree_nodes" ORDER BY "tree_nodes"."id" ASC LIMIT 1
105
+ SQL (20.4ms) UPDATE "tree_nodes" SET path = 'Top' OR subpath(path, nlevel('Top')) WHERE (path <@ 'Top')
106
+ PG::InvalidTextRepresentation: ERROR: invalid input syntax for type boolean: "Top"
107
+ LINE 1: UPDATE "tree_nodes" SET path = 'Top' OR subpath(path, nlevel...
108
+ ^
109
+ : UPDATE "tree_nodes" SET path = 'Top' OR subpath(path, nlevel('Top')) WHERE (path <@ 'Top')
633
110
   (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
111
+ SQL (33.9ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top"], ["status", "active"]]
112
+  (16.8ms) COMMIT
113
+  (0.2ms) BEGIN
114
+ SQL (0.3ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top"], ["status", "deactive"]]
115
+  (0.5ms) COMMIT
645
116
   (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
117
+ SQL (0.3ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Science"], ["status", "active"]]
118
+  (0.5ms) COMMIT
119
+  (0.2ms) BEGIN
120
+ SQL (0.3ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Science"], ["status", "deactive"]]
121
+  (0.5ms) COMMIT
122
+  (0.1ms) BEGIN
123
+ SQL (0.3ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Science.Astronomy"], ["status", "active"]]
124
+  (0.4ms) COMMIT
125
+  (0.2ms) BEGIN
126
+ SQL (0.3ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Science.Astronomy"], ["status", "deactive"]]
127
+  (0.5ms) COMMIT
128
+  (0.2ms) BEGIN
129
+ SQL (0.3ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Science.Astronomy.Astrophysics"], ["status", "active"]]
130
+  (0.6ms) COMMIT
654
131
   (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
132
+ SQL (0.4ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Science.Astronomy.Astrophysics"], ["status", "deactive"]]
133
+  (0.5ms) COMMIT
134
+  (0.2ms) BEGIN
135
+ SQL (0.2ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Science.Astronomy.Cosmology"], ["status", "active"]]
136
+  (0.4ms) COMMIT
137
+  (0.1ms) BEGIN
138
+ SQL (0.3ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Science.Astronomy.Cosmology"], ["status", "deactive"]]
139
+  (0.5ms) COMMIT
140
+  (0.2ms) BEGIN
141
+ SQL (0.2ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Hobbies"], ["status", "active"]]
142
+  (0.4ms) COMMIT
143
+  (0.1ms) BEGIN
144
+ SQL (0.2ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Hobbies"], ["status", "deactive"]]
145
+  (0.5ms) COMMIT
146
+  (0.1ms) BEGIN
147
+ SQL (0.3ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Hobbies.Amateurs_Astronomy"], ["status", "active"]]
148
+  (0.4ms) COMMIT
149
+  (0.2ms) BEGIN
150
+ SQL (0.4ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Hobbies.Amateurs_Astronomy"], ["status", "deactive"]]
151
+  (0.5ms) COMMIT
152
+  (0.2ms) BEGIN
670
153
  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
154
+  (0.4ms) COMMIT
155
+  (0.2ms) BEGIN
156
+ SQL (0.3ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Collections"], ["status", "deactive"]]
157
+  (0.4ms) COMMIT
158
+  (0.2ms) BEGIN
159
+ SQL (0.3ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Collections.Pictures"], ["status", "active"]]
160
+  (0.5ms) COMMIT
161
+  (0.2ms) BEGIN
162
+ SQL (0.3ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Collections.Pictures"], ["status", "deactive"]]
163
+  (0.6ms) COMMIT
693
164
   (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
165
+ SQL (0.4ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Collections.Pictures.Astronomy"], ["status", "active"]]
166
+  (0.6ms) COMMIT
167
+  (0.1ms) BEGIN
168
+ SQL (0.2ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Collections.Pictures.Astronomy"], ["status", "deactive"]]
169
+  (0.4ms) COMMIT
170
+  (0.1ms) BEGIN
171
+ SQL (0.2ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Collections.Pictures.Astronomy.Stars"], ["status", "active"]]
172
+  (0.4ms) COMMIT
173
+  (0.1ms) BEGIN
174
+ SQL (0.2ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Collections.Pictures.Astronomy.Stars"], ["status", "deactive"]]
175
+  (0.4ms) COMMIT
176
+  (0.2ms) BEGIN
177
+ SQL (0.4ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Collections.Pictures.Astronomy.Galaxies"], ["status", "active"]]
178
+  (0.5ms) COMMIT
179
+  (0.2ms) BEGIN
180
+ SQL (0.3ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Collections.Pictures.Astronomy.Galaxies"], ["status", "deactive"]]
181
+  (0.4ms) COMMIT
182
+  (0.2ms) BEGIN
183
+ SQL (0.6ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Collections.Pictures.Astronomy.Astronauts"], ["status", "active"]]
184
+  (0.4ms) COMMIT
185
+  (0.2ms) BEGIN
186
+ SQL (0.2ms) INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Collections.Pictures.Astronomy.Astronauts"], ["status", "deactive"]]
187
+  (0.4ms) COMMIT
188
+ NotUniqTreeNode Load (0.5ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."new_path" = $1 AND "not_uniq_tree_nodes"."status" = $2 [["new_path", "Top.Collections"], ["status", "active"]]
189
+ NotUniqTreeNode Load (0.4ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."new_path" = $1 AND "not_uniq_tree_nodes"."status" = $2 [["new_path", "Top.Collections"], ["status", "active"]]
190
+ NotUniqTreeNode Load (0.7ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."new_path" = $1 AND "not_uniq_tree_nodes"."status" = $2 [["new_path", "Top.Collections"], ["status", "active"]]
191
+  (0.2ms) BEGIN
192
+ SQL (0.4ms) DELETE FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."id" = $1 [["id", 15]]
193
+ SQL (1.2ms) DELETE FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (new_path <@ 'Top.Collections') [["status", "active"]]
194
+  (0.5ms) COMMIT
195
+ NotUniqTreeNode Load (0.5ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."new_path" = $1 AND "not_uniq_tree_nodes"."status" = $2 [["new_path", "Top.Collections"], ["status", "active"]]
196
+ NotUniqTreeNode Load (0.4ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."new_path" = $1 AND "not_uniq_tree_nodes"."status" = $2 [["new_path", "Top.Collections"], ["status", "active"]]
197
+ NotUniqTreeNode Load (0.5ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."new_path" = $1 AND "not_uniq_tree_nodes"."status" = $2 [["new_path", "Top.Collections"], ["status", "active"]]
198
+ NotUniqTreeNode Load (0.3ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."new_path" = $1 [["new_path", "Top.Collections"]]
199
+ NotUniqTreeNode Load (0.3ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."new_path" = $1 LIMIT 1 [["new_path", "Top.Collections"]]
200
+ NotUniqTreeNode Load (0.5ms) SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."new_path" = $1 LIMIT 1 [["new_path", "Top.Collections"]]
702
201
   (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"]]
202
+ SQL (0.3ms) DELETE FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."id" = $1 [["id", 16]]
203
+ SQL (0.4ms) DELETE FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (new_path <@ 'Top.Collections') [["status", "deactive"]]
204
+  (0.5ms) COMMIT