pg_ltree 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/pg_ltree/ltree.rb +20 -4
- data/lib/pg_ltree/scoped_for.rb +1 -0
- data/lib/pg_ltree/version.rb +1 -1
- data/test/dummy/config/database.yml +14 -0
- data/test/dummy/log/development.log +167 -681
- data/test/dummy/log/test.log +135809 -21732
- data/test/pg_ltree/ltree_test.rb +16 -0
- data/test/pg_ltree/scoped_for_test.rb +190 -151
- data/test/test_helper.rb +0 -7
- metadata +44 -70
- data/lib/tasks/pg_ltree_tasks.rake +0 -4
- data/test/doc/_index.html +0 -88
- data/test/doc/class_list.html +0 -58
- data/test/doc/css/common.css +0 -1
- data/test/doc/css/full_list.css +0 -57
- data/test/doc/css/style.css +0 -339
- data/test/doc/file_list.html +0 -57
- data/test/doc/frames.html +0 -26
- data/test/doc/index.html +0 -88
- data/test/doc/js/app.js +0 -219
- data/test/doc/js/full_list.js +0 -181
- data/test/doc/js/jquery.js +0 -4
- data/test/doc/method_list.html +0 -57
- data/test/doc/top-level-namespace.html +0 -102
@@ -1,494 +1,24 @@
|
|
1
|
-
[1m[36m (
|
2
|
-
[1m[35m (
|
3
|
-
[1m[36mActiveRecord::SchemaMigration Load (
|
4
|
-
Migrating to CreateTreeNode (20150809114528)
|
5
|
-
[1m[35m (0.5ms)[0m BEGIN
|
6
|
-
[1m[36m (1.1ms)[0m [1mCREATE TABLE "tree_nodes" ("id" serial primary key, "path" ltree) [0m
|
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
|
-
[1m[35m (0.4ms)[0m ROLLBACK
|
12
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13
|
-
Migrating to EnablePostgresLtree (20150809114511)
|
14
|
-
[1m[35m (0.3ms)[0m BEGIN
|
15
|
-
[1m[36m (99.0ms)[0m [1m CREATE EXTENSION IF NOT EXISTS ltree;
|
16
|
-
[0m
|
17
|
-
[1m[35mSQL (0.6ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114511"]]
|
18
|
-
[1m[36m (28.1ms)[0m [1mCOMMIT[0m
|
19
|
-
Migrating to CreateTreeNode (20150809114528)
|
20
|
-
[1m[35m (0.6ms)[0m BEGIN
|
21
|
-
[1m[36m (75.6ms)[0m [1mCREATE TABLE "tree_nodes" ("id" serial primary key, "path" ltree) [0m
|
22
|
-
[1m[35mSQL (0.7ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114528"]]
|
23
|
-
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
|
24
|
-
Migrating to CreateNotUniqTreeNode (20150809114547)
|
25
|
-
[1m[35m (0.5ms)[0m BEGIN
|
26
|
-
[1m[36m (88.6ms)[0m [1mCREATE TABLE "not_uniq_tree_nodes" ("id" serial primary key, "type" character varying, "path" ltree) [0m
|
27
|
-
[1m[35mSQL (0.6ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114547"]]
|
28
|
-
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
|
29
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.7ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
30
|
-
[1m[36m (5.1ms)[0m [1mSELECT 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
|
-
[0m
|
42
|
-
[1m[35m (5.2ms)[0m 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
|
-
[1m[36mTreeNode Load (1.4ms)[0m [1mSELECT "tree_nodes".* FROM "tree_nodes" ORDER BY "tree_nodes"."id" DESC LIMIT 1[0m
|
55
|
-
[1m[35mTreeNode Load (2.9ms)[0m 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
|
-
[1m[36mTreeNode Load (1.5ms)[0m [1mSELECT "tree_nodes".* FROM "tree_nodes" WHERE (SELECT count(DISTINCT subquery.path) = 1 FROM "tree_nodes"AS subquery WHERE subquery.path <@ tree_nodes.path)[0m
|
57
|
-
[1m[35mNotUniqTreeNode Load (1.6ms)[0m 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
|
-
[1m[36mNotUniqTreeNode Load (1.2ms)[0m [1mSELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1[0m
|
59
|
-
[1m[36m (53.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
60
|
-
[1m[35m (51.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
61
|
-
[1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
62
|
-
Migrating to EnablePostgresLtree (20150809114511)
|
63
|
-
[1m[35m (0.5ms)[0m BEGIN
|
64
|
-
[1m[36m (51.2ms)[0m [1m CREATE EXTENSION IF NOT EXISTS ltree;
|
65
|
-
[0m
|
66
|
-
[1m[35mSQL (0.6ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114511"]]
|
67
|
-
[1m[36m (13.5ms)[0m [1mCOMMIT[0m
|
68
|
-
Migrating to CreateTreeNode (20150809114528)
|
69
|
-
[1m[35m (0.5ms)[0m BEGIN
|
70
|
-
[1m[36m (89.4ms)[0m [1mCREATE TABLE "tree_nodes" ("id" serial primary key, "path" ltree) [0m
|
71
|
-
[1m[35mSQL (0.7ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114528"]]
|
72
|
-
[1m[36m (13.4ms)[0m [1mCOMMIT[0m
|
73
|
-
Migrating to CreateNotUniqTreeNode (20150809114547)
|
74
|
-
[1m[35m (0.6ms)[0m BEGIN
|
75
|
-
[1m[36m (78.5ms)[0m [1mCREATE TABLE "not_uniq_tree_nodes" ("id" serial primary key, "type" character varying, "path" ltree) [0m
|
76
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114547"]]
|
77
|
-
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
|
78
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.6ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
79
|
-
[1m[36m (3.8ms)[0m [1mSELECT 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
|
-
[0m
|
91
|
-
[1m[35m (3.1ms)[0m 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
|
-
[1m[36m (60.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
104
|
-
[1m[35m (52.6ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
105
|
-
[1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
106
|
-
Migrating to EnablePostgresLtree (20150809114511)
|
107
|
-
[1m[35m (0.4ms)[0m BEGIN
|
108
|
-
[1m[36m (51.4ms)[0m [1m CREATE EXTENSION IF NOT EXISTS ltree;
|
109
|
-
[0m
|
110
|
-
[1m[35mSQL (0.7ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114511"]]
|
111
|
-
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
|
112
|
-
Migrating to CreateTreeNode (20150809114528)
|
113
|
-
[1m[35m (0.6ms)[0m BEGIN
|
114
|
-
[1m[36m (72.9ms)[0m [1mCREATE TABLE "tree_nodes" ("id" serial primary key, "path" ltree) [0m
|
115
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114528"]]
|
116
|
-
[1m[36m (19.7ms)[0m [1mCOMMIT[0m
|
117
|
-
Migrating to CreateNotUniqTreeNode (20150809114547)
|
118
|
-
[1m[35m (0.4ms)[0m BEGIN
|
119
|
-
[1m[36m (87.5ms)[0m [1mCREATE TABLE "not_uniq_tree_nodes" ("id" serial primary key, "status" character varying, "path" ltree) [0m
|
120
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114547"]]
|
121
|
-
[1m[36m (6.8ms)[0m [1mCOMMIT[0m
|
122
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.8ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
123
|
-
[1m[36m (5.1ms)[0m [1mSELECT 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
|
-
[0m
|
135
|
-
[1m[35m (4.6ms)[0m 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
|
-
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
148
|
-
[1m[35mSQL (1.9ms)[0m INSERT INTO "not_uniq_tree_nodes" ("status", "path") VALUES ($1, $2) RETURNING "id" [["status", "Test"], ["path", "Test"]]
|
149
|
-
[1m[36m (35.8ms)[0m [1mCOMMIT[0m
|
150
|
-
[1m[35mNotUniqTreeNode Load (1.7ms)[0m 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
|
-
[1m[36mNotUniqTreeNode Load (1.0ms)[0m [1mSELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1[0m
|
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
|
-
[1m[36mNotUniqTreeNode Load (1.7ms)[0m [1mSELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1[0m
|
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
|
-
[1m[36mNotUniqTreeNode Load (1.7ms)[0m [1mSELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1[0m
|
166
|
-
[1m[35mNotUniqTreeNode Load (0.7ms)[0m 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
|
-
[1m[36m (49.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
168
|
-
[1m[35m (53.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
169
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1
|
+
[1m[36m (265.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
2
|
+
[1m[35m (29.4ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
3
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
170
4
|
Migrating to EnablePostgresLtree (20150809114511)
|
171
5
|
[1m[35m (0.3ms)[0m BEGIN
|
172
|
-
[1m[36m (
|
173
|
-
[0m
|
174
|
-
[1m[35mSQL (0.7ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114511"]]
|
175
|
-
[1m[36m (13.4ms)[0m [1mCOMMIT[0m
|
176
|
-
Migrating to CreateTreeNode (20150809114528)
|
177
|
-
[1m[35m (0.4ms)[0m BEGIN
|
178
|
-
[1m[36m (82.8ms)[0m [1mCREATE TABLE "tree_nodes" ("id" serial primary key, "path" ltree) [0m
|
179
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114528"]]
|
180
|
-
[1m[36m (11.3ms)[0m [1mCOMMIT[0m
|
181
|
-
Migrating to CreateNotUniqTreeNode (20150809114547)
|
182
|
-
[1m[35m (0.3ms)[0m BEGIN
|
183
|
-
[1m[36m (72.0ms)[0m [1mCREATE TABLE "not_uniq_tree_nodes" ("id" serial primary key, "status" character varying, "path" ltree) [0m
|
184
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114547"]]
|
185
|
-
[1m[36m (21.5ms)[0m [1mCOMMIT[0m
|
186
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.8ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
187
|
-
[1m[36m (4.7ms)[0m [1mSELECT 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
|
-
[0m
|
199
|
-
[1m[35m (4.4ms)[0m 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
|
-
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
212
|
-
[1m[35mSQL (1.2ms)[0m INSERT INTO "not_uniq_tree_nodes" ("status", "path") VALUES ($1, $2) RETURNING "id" [["status", "Test"], ["path", "Test"]]
|
213
|
-
[1m[36m (13.7ms)[0m [1mCOMMIT[0m
|
214
|
-
[1m[35mNotUniqTreeNode Load (1.8ms)[0m SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
|
215
|
-
[1m[36mNotUniqTreeNode Load (1.2ms)[0m [1mSELECT "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')[0m [["status", "Test"]]
|
219
|
-
[1m[35mNotUniqTreeNode Load (1.1ms)[0m SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
|
220
|
-
[1m[36m (1.1ms)[0m [1mSELECT 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')[0m [["status", "Test"]]
|
224
|
-
[1m[36mNotUniqTreeNode Load (1.6ms)[0m [1mSELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1[0m
|
225
|
-
[1m[35mNotUniqTreeNode Load (0.7ms)[0m 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
|
-
[1m[36mNotUniqTreeNode Load (1.0ms)[0m [1mSELECT "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
|
-
)[0m [["status", "Test"]]
|
233
|
-
[1m[35mNotUniqTreeNode Load (1.2ms)[0m SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
|
234
|
-
[1m[36m (0.9ms)[0m [1mSELECT COUNT(*) FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (path <@ 'Test')[0m [["status", "Test"]]
|
235
|
-
[1m[36mNotUniqTreeNode Load (1.6ms)[0m [1mSELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1[0m
|
236
|
-
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (path @> 'Test') [["status", "Test"]]
|
237
|
-
[1m[36mNotUniqTreeNode Load (1.2ms)[0m [1mSELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1[0m
|
238
|
-
[1m[36mNotUniqTreeNode Load (1.7ms)[0m [1mSELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1[0m
|
239
|
-
[1m[35mNotUniqTreeNode Load (1.4ms)[0m SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
|
240
|
-
[1m[36mNotUniqTreeNode Load (1.2ms)[0m [1mSELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1[0m
|
241
|
-
[1m[35mNotUniqTreeNode Load (2.8ms)[0m SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
|
242
|
-
[1m[36mNotUniqTreeNode Load (1.7ms)[0m [1mSELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1[0m
|
243
|
-
[1m[36mNotUniqTreeNode Load (1.7ms)[0m [1mSELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1[0m
|
244
|
-
[1m[35mNotUniqTreeNode Load (0.6ms)[0m SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes"
|
245
|
-
[1m[36mNotUniqTreeNode Load (2.2ms)[0m [1mSELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1[0m
|
246
|
-
[1m[36mNotUniqTreeNode Load (1.7ms)[0m [1mSELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1[0m
|
247
|
-
[1m[35mNotUniqTreeNode Load (1.1ms)[0m SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
|
248
|
-
[1m[36mNotUniqTreeNode Load (2.9ms)[0m [1mSELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1[0m
|
249
|
-
[1m[36mNotUniqTreeNode Load (1.8ms)[0m [1mSELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1[0m
|
250
|
-
[1m[36mNotUniqTreeNode Load (1.5ms)[0m [1mSELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1[0m
|
251
|
-
[1m[36mNotUniqTreeNode Load (1.4ms)[0m [1mSELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1[0m
|
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
|
-
[1m[36m (54.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
258
|
-
[1m[35m (51.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
259
|
-
[1m[36mActiveRecord::SchemaMigration Load (1.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
260
|
-
Migrating to EnablePostgresLtree (20150809114511)
|
261
|
-
[1m[35m (0.5ms)[0m BEGIN
|
262
|
-
[1m[36m (54.5ms)[0m [1m CREATE EXTENSION IF NOT EXISTS ltree;
|
6
|
+
[1m[36m (449.8ms)[0m [1m CREATE EXTENSION IF NOT EXISTS ltree;
|
263
7
|
[0m
|
264
|
-
[1m[35mSQL (
|
265
|
-
[1m[36m (
|
8
|
+
[1m[35mSQL (17.0ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114511"]]
|
9
|
+
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
|
266
10
|
Migrating to CreateTreeNode (20150809114528)
|
267
11
|
[1m[35m (0.6ms)[0m BEGIN
|
268
|
-
[1m[36m (
|
12
|
+
[1m[36m (165.2ms)[0m [1mCREATE TABLE "tree_nodes" ("id" serial primary key, "path" ltree) [0m
|
269
13
|
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114528"]]
|
270
|
-
[1m[36m (
|
14
|
+
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
|
271
15
|
Migrating to CreateNotUniqTreeNode (20150809114547)
|
272
|
-
[1m[35m (
|
273
|
-
[1m[36m (
|
274
|
-
[1m[35mSQL (0.
|
275
|
-
[1m[36m (
|
276
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.8ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
277
|
-
[1m[36m (4.9ms)[0m [1mSELECT 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
|
-
[0m
|
289
|
-
[1m[35m (4.6ms)[0m 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
|
-
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
302
|
-
[1m[35mSQL (1.2ms)[0m INSERT INTO "not_uniq_tree_nodes" ("status", "path") VALUES ($1, $2) RETURNING "id" [["status", "Test"], ["path", "Test"]]
|
303
|
-
[1m[36m (37.4ms)[0m [1mCOMMIT[0m
|
304
|
-
[1m[35mNotUniqTreeNode Load (2.1ms)[0m 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
|
-
[1m[36mNotUniqTreeNode Load (1.0ms)[0m [1mSELECT "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))[0m
|
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
|
-
[1m[36mNotUniqTreeNode Load (2.0ms)[0m [1mSELECT "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))[0m
|
315
|
-
[1m[35mNotUniqTreeNode Load (1.5ms)[0m SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1
|
316
|
-
[1m[36mNotUniqTreeNode Load (0.9ms)[0m [1mSELECT "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)[0m [["status", "Test"], ["path", "Test"]]
|
317
|
-
[1m[35mNotUniqTreeNode Load (0.7ms)[0m 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
|
-
[1m[36mNotUniqTreeNode Load (0.7ms)[0m [1mSELECT "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[0m [["status", "Test"]]
|
319
|
-
[1m[35mNotUniqTreeNode Load (1.0ms)[0m 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
|
-
[1m[36mNotUniqTreeNode Load (1.0ms)[0m [1mSELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1[0m
|
321
|
-
[1m[35mNotUniqTreeNode Load (0.9ms)[0m 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
|
-
[1m[36mNotUniqTreeNode Load (0.9ms)[0m [1mSELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1[0m
|
323
|
-
[1m[35m (0.4ms)[0m BEGIN
|
324
|
-
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "not_uniq_tree_nodes" ("status") VALUES ($1) RETURNING "id"[0m [["status", "Test"]]
|
325
|
-
[1m[35m (27.9ms)[0m COMMIT
|
326
|
-
[1m[36mNotUniqTreeNode Load (1.2ms)[0m [1mSELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1[0m
|
327
|
-
[1m[35m (0.5ms)[0m BEGIN
|
328
|
-
[1m[36mSQL (2.4ms)[0m [1mINSERT INTO "not_uniq_tree_nodes" ("status") VALUES ($1) RETURNING "id"[0m [["status", "Test"]]
|
329
|
-
[1m[35m (10.7ms)[0m COMMIT
|
330
|
-
[1m[36mNotUniqTreeNode Load (1.1ms)[0m [1mSELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1[0m
|
331
|
-
[1m[35m (0.4ms)[0m BEGIN
|
332
|
-
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "not_uniq_tree_nodes" ("status") VALUES ($1) RETURNING "id"[0m [["status", "Test"]]
|
333
|
-
[1m[35m (8.3ms)[0m COMMIT
|
334
|
-
[1m[36mNotUniqTreeNode Load (0.9ms)[0m [1mSELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1[0m
|
335
|
-
[1m[35m (0.3ms)[0m BEGIN
|
336
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "not_uniq_tree_nodes" ("status", "path") VALUES ($1, $2) RETURNING "id"[0m [["status", "Test"], ["path", "Test.None"]]
|
337
|
-
[1m[35m (26.8ms)[0m COMMIT
|
338
|
-
[1m[36mNotUniqTreeNode Load (0.9ms)[0m [1mSELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1[0m
|
339
|
-
[1m[35m (0.5ms)[0m BEGIN
|
340
|
-
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "not_uniq_tree_nodes" ("status", "path") VALUES ($1, $2) RETURNING "id"[0m [["status", "Test"], ["path", "Test.None.1"]]
|
341
|
-
[1m[35m (22.5ms)[0m COMMIT
|
342
|
-
[1m[36mNotUniqTreeNode Load (0.9ms)[0m [1mSELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1[0m
|
343
|
-
[1m[35m (0.4ms)[0m BEGIN
|
344
|
-
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "not_uniq_tree_nodes" ("status", "path") VALUES ($1, $2) RETURNING "id"[0m [["status", "Test"], ["path", "Test.None.2"]]
|
345
|
-
[1m[35m (9.2ms)[0m COMMIT
|
346
|
-
[1m[36mNotUniqTreeNode Load (0.8ms)[0m [1mSELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" DESC LIMIT 1[0m
|
347
|
-
[1m[35m (0.5ms)[0m BEGIN
|
348
|
-
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "not_uniq_tree_nodes" ("status", "path") VALUES ($1, $2) RETURNING "id"[0m [["status", "Test"], ["path", "Test.Nones"]]
|
349
|
-
[1m[35m (18.4ms)[0m COMMIT
|
350
|
-
[1m[36mSQL (20.8ms)[0m [1mDELETE FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."path" IS NULL[0m
|
351
|
-
[1m[35mNotUniqTreeNode Load (4.0ms)[0m 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
|
-
[1m[36mNotUniqTreeNode Load (1.3ms)[0m [1mSELECT "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[0m
|
353
|
-
[1m[35mNotUniqTreeNode Load (1.3ms)[0m 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
|
-
[1m[36m (0.8ms)[0m [1mSELECT COUNT(*) FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (path @> 'Test.Nones')[0m [["status", "Test"]]
|
355
|
-
[1m[36mNotUniqTreeNode Load (2.0ms)[0m [1mSELECT "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[0m
|
356
|
-
[1m[35mNotUniqTreeNode Load (1.9ms)[0m 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
|
-
[1m[36mNotUniqTreeNode Load (1.4ms)[0m [1mSELECT "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[0m
|
358
|
-
[1m[36mNotUniqTreeNode Load (1.9ms)[0m [1mSELECT "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[0m
|
359
|
-
[1m[36mNotUniqTreeNode Load (1.7ms)[0m [1mSELECT "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[0m
|
360
|
-
[1m[36mNotUniqTreeNode Load (2.0ms)[0m [1mSELECT "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[0m
|
361
|
-
[1m[35mNotUniqTreeNode Load (1.6ms)[0m 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
|
-
[1m[36mNotUniqTreeNode Load (1.4ms)[0m [1mSELECT "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[0m
|
363
|
-
[1m[36mNotUniqTreeNode Load (1.8ms)[0m [1mSELECT "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[0m
|
364
|
-
[1m[35mNotUniqTreeNode Load (1.6ms)[0m 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
|
-
[1m[36mNotUniqTreeNode Load (1.7ms)[0m [1mSELECT "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[0m
|
366
|
-
[1m[35mNotUniqTreeNode Load (0.5ms)[0m SELECT COUNT(path) = 1 FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (path <@ 'Test.Nones') [["status", "Test"]]
|
367
|
-
[1m[36mNotUniqTreeNode Load (0.4ms)[0m [1mSELECT COUNT(path) = 1 FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (path <@ 'Test.Nones')[0m [["status", "Test"]]
|
368
|
-
[1m[36mNotUniqTreeNode Load (1.8ms)[0m [1mSELECT "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[0m
|
369
|
-
[1m[35mNotUniqTreeNode Load (0.6ms)[0m SELECT COUNT(path) = 1 FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (path <@ 'Test.Nones') [["status", "Test"]]
|
370
|
-
[1m[36mNotUniqTreeNode Load (1.9ms)[0m [1mSELECT "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[0m
|
371
|
-
[1m[35mNotUniqTreeNode Load (0.6ms)[0m SELECT COUNT(path) = 1 FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (path <@ 'Test.Nones') [["status", "Test"]]
|
372
|
-
[1m[36mNotUniqTreeNode Load (1.9ms)[0m [1mSELECT "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[0m
|
373
|
-
[1m[35mNotUniqTreeNode Load (0.5ms)[0m SELECT COUNT(path) = 1 FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (path <@ 'Test.Nones') [["status", "Test"]]
|
374
|
-
[1m[36m (0.5ms)[0m [1mSELECT COUNT(path) = 1 FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = 'Test' AND (path <@ 'Test.Nones')[0m
|
375
|
-
[1m[36mNotUniqTreeNode Load (1.7ms)[0m [1mSELECT "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[0m
|
376
|
-
[1m[35mNotUniqTreeNode Load (0.6ms)[0m SELECT COUNT(path) = 1 FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (path <@ 'Test.Nones') [["status", "Test"]]
|
377
|
-
[1m[36mNotUniqTreeNode Load (2.3ms)[0m [1mSELECT "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[0m
|
378
|
-
[1m[35mNotUniqTreeNode Load (0.6ms)[0m SELECT COUNT(path) = 1 FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (path <@ 'Test.Nones') [["status", "Test"]]
|
379
|
-
[1m[36mNotUniqTreeNode Load (1.5ms)[0m [1mSELECT "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[0m
|
380
|
-
[1m[35mNotUniqTreeNode Load (0.8ms)[0m SELECT COUNT(path) = 1 FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (path <@ 'Test.Nones') [["status", "Test"]]
|
381
|
-
[1m[36mNotUniqTreeNode Load (1.2ms)[0m [1mSELECT "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[0m
|
382
|
-
[1m[35mNotUniqTreeNode Load (0.6ms)[0m SELECT COUNT(path) = 1 FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (path <@ 'Test.None.1') [["status", "Test"]]
|
383
|
-
[1m[36mNotUniqTreeNode Load (1.8ms)[0m [1mSELECT "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[0m
|
384
|
-
[1m[35m (0.7ms)[0m 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
|
-
[1m[36mNotUniqTreeNode Load (1.3ms)[0m [1mSELECT "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[0m
|
386
|
-
[1m[35m (1.2ms)[0m 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
|
-
[1m[36mNotUniqTreeNode Load (1.3ms)[0m [1mSELECT "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[0m
|
388
|
-
[1m[35mNotUniqTreeNode Load (1.3ms)[0m 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
|
-
[1m[36mNotUniqTreeNode Load (0.8ms)[0m [1mSELECT "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)[0m [["status", "Test"], ["path", "Test.Nones"]]
|
390
|
-
[1m[36mNotUniqTreeNode Load (1.9ms)[0m [1mSELECT "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[0m
|
391
|
-
[1m[35mNotUniqTreeNode Load (0.7ms)[0m 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
|
-
[1m[36mNotUniqTreeNode Load (1.4ms)[0m [1mSELECT "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[0m
|
393
|
-
[1m[35m (0.9ms)[0m 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
|
-
[1m[36mNotUniqTreeNode Load (1.5ms)[0m [1mSELECT "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[0m
|
395
|
-
[1m[35m (1.1ms)[0m 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
|
-
[1m[36mNotUniqTreeNode Load (1.3ms)[0m [1mSELECT "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[0m
|
397
|
-
[1m[35mNotUniqTreeNode Load (0.8ms)[0m 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
|
-
[1m[36mNotUniqTreeNode Load (1.4ms)[0m [1mSELECT "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[0m
|
399
|
-
[1m[35m (1.0ms)[0m 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
|
-
[1m[36mNotUniqTreeNode Load (1.4ms)[0m [1mSELECT "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[0m
|
401
|
-
[1m[35m (0.8ms)[0m 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
|
-
[1m[36mNotUniqTreeNode Load (1.5ms)[0m [1mSELECT "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[0m
|
403
|
-
[1m[35mNotUniqTreeNode Load (1.0ms)[0m 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
|
-
[1m[36mNotUniqTreeNode Load (1.8ms)[0m [1mSELECT "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[0m
|
405
|
-
[1m[35mNotUniqTreeNode Load (0.9ms)[0m 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
|
-
[1m[36mNotUniqTreeNode Load (1.5ms)[0m [1mSELECT "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[0m
|
407
|
-
[1m[35mNotUniqTreeNode Load (0.9ms)[0m 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
|
-
[1m[36mNotUniqTreeNode Load (3.7ms)[0m [1mSELECT "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))[0m
|
409
|
-
[1m[35mNotUniqTreeNode Load (1.0ms)[0m 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
|
-
[1m[36mNotUniqTreeNode Load (0.7ms)[0m [1mSELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."path" = $1[0m [["path", "Test.None"]]
|
411
|
-
[1m[35mNotUniqTreeNode Load (0.8ms)[0m SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."path" = $1 [["path", "Test.None"]]
|
412
|
-
[1m[36mNotUniqTreeNode Load (0.7ms)[0m [1mSELECT "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[0m [["path", "Test.None"]]
|
413
|
-
[1m[35mNotUniqTreeNode Load (0.8ms)[0m 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
|
-
[1m[36m (0.9ms)[0m [1mSELECT 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))[0m [["status", "Test"]]
|
415
|
-
[1m[35mNotUniqTreeNode Load (1.4ms)[0m 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
|
-
[1m[36mNotUniqTreeNode Load (1.0ms)[0m [1mSELECT "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)[0m [["status", "Test"], ["path", "Test.None.1"]]
|
417
|
-
[1m[35mNotUniqTreeNode Load (1.3ms)[0m 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
|
-
[1m[36mNotUniqTreeNode Load (1.4ms)[0m [1mSELECT "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[0m
|
419
|
-
[1m[35m (1.0ms)[0m 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
|
-
[1m[36mNotUniqTreeNode Load (1.9ms)[0m [1mSELECT "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[0m
|
421
|
-
[1m[35m (0.8ms)[0m 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
|
-
[1m[36m (0.6ms)[0m [1mSELECT 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))[0m [["status", "Test"]]
|
423
|
-
[1m[36mNotUniqTreeNode Load (2.1ms)[0m [1mSELECT "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[0m
|
424
|
-
[1m[35m (0.8ms)[0m 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
|
-
[1m[36mNotUniqTreeNode Load (1.4ms)[0m [1mSELECT "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[0m
|
426
|
-
[1m[35m (1.0ms)[0m 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
|
-
[1m[36mNotUniqTreeNode Load (1.3ms)[0m [1mSELECT "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))[0m
|
428
|
-
[1m[35mNotUniqTreeNode Load (1.3ms)[0m SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" ASC LIMIT 1
|
429
|
-
[1m[36mNotUniqTreeNode Load (0.9ms)[0m [1mSELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" ASC LIMIT 1[0m
|
430
|
-
[1m[35m (0.9ms)[0m 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
|
-
[1m[36mNotUniqTreeNode Load (4.2ms)[0m [1mSELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" ASC LIMIT 1[0m
|
432
|
-
[1m[35mNotUniqTreeNode Load (0.8ms)[0m 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
|
-
[1m[36mNotUniqTreeNode Load (1.0ms)[0m [1mSELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" ASC LIMIT 1[0m
|
434
|
-
[1m[35mNotUniqTreeNode Load (1.0ms)[0m 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
|
-
[1m[36mNotUniqTreeNode Load (1.0ms)[0m [1mSELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" ASC LIMIT 1[0m
|
436
|
-
[1m[35mNotUniqTreeNode Load (0.8ms)[0m 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
|
-
[1m[36m (0.9ms)[0m [1mSELECT 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)[0m [["status", "Test"], ["path", "Test.None"]]
|
438
|
-
[1m[35mNotUniqTreeNode Load (3.0ms)[0m SELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" ASC LIMIT 1
|
439
|
-
[1m[36mNotUniqTreeNode Load (1.5ms)[0m [1mSELECT "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[0m [["status", "Test"]]
|
440
|
-
[1m[35mNotUniqTreeNode Load (0.8ms)[0m 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
|
-
[1m[36mNotUniqTreeNode Load (0.9ms)[0m [1mSELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" ORDER BY "not_uniq_tree_nodes"."id" ASC LIMIT 1[0m
|
442
|
-
[1m[35mNotUniqTreeNode Load (0.7ms)[0m 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
|
-
[1m[36mNotUniqTreeNode Load (0.7ms)[0m [1mSELECT "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[0m [["status", "Test"]]
|
444
|
-
[1m[35m (0.8ms)[0m 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
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
16
|
+
[1m[35m (15.6ms)[0m BEGIN
|
17
|
+
[1m[36m (19.4ms)[0m [1mCREATE TABLE "not_uniq_tree_nodes" ("id" serial primary key, "status" character varying, "new_path" ltree) [0m
|
18
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114547"]]
|
19
|
+
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
|
446
20
|
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
447
|
-
[1m[36m (
|
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
|
-
[0m
|
459
|
-
[1m[35m (2.7ms)[0m 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
|
-
[1m[36m (53.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
472
|
-
[1m[35m (64.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
473
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
474
|
-
Migrating to EnablePostgresLtree (20150809114511)
|
475
|
-
[1m[35m (0.4ms)[0m BEGIN
|
476
|
-
[1m[36m (48.7ms)[0m [1m CREATE EXTENSION IF NOT EXISTS ltree;
|
477
|
-
[0m
|
478
|
-
[1m[35mSQL (0.6ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114511"]]
|
479
|
-
[1m[36m (13.7ms)[0m [1mCOMMIT[0m
|
480
|
-
Migrating to CreateTreeNode (20150809114528)
|
481
|
-
[1m[35m (0.5ms)[0m BEGIN
|
482
|
-
[1m[36m (75.1ms)[0m [1mCREATE TABLE "tree_nodes" ("id" serial primary key, "path" ltree) [0m
|
483
|
-
[1m[35mSQL (0.7ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114528"]]
|
484
|
-
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
|
485
|
-
Migrating to CreateNotUniqTreeNode (20150809114547)
|
486
|
-
[1m[35m (0.6ms)[0m BEGIN
|
487
|
-
[1m[36m (74.8ms)[0m [1mCREATE TABLE "not_uniq_tree_nodes" ("id" serial primary key, "status" character varying, "new_path" ltree) [0m
|
488
|
-
[1m[35mSQL (0.6ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114547"]]
|
489
|
-
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
|
490
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.8ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
491
|
-
[1m[36m (6.9ms)[0m [1mSELECT 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
|
+
[1m[36m (2.4ms)[0m [1mSELECT 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
|
[0m
|
503
|
-
[1m[35m (
|
33
|
+
[1m[35m (2.1ms)[0m 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
|
-
[1m[
|
516
|
-
[1m[
|
517
|
-
[1m[36mActiveRecord::SchemaMigration Load (1.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
518
|
-
Migrating to EnablePostgresLtree (20150809114511)
|
519
|
-
[1m[35m (0.5ms)[0m BEGIN
|
520
|
-
[1m[36m (53.9ms)[0m [1m CREATE EXTENSION IF NOT EXISTS ltree;
|
521
|
-
[0m
|
522
|
-
[1m[35mSQL (0.6ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114511"]]
|
523
|
-
[1m[36m (20.3ms)[0m [1mCOMMIT[0m
|
524
|
-
Migrating to CreateTreeNode (20150809114528)
|
525
|
-
[1m[35m (0.6ms)[0m BEGIN
|
526
|
-
[1m[36m (79.8ms)[0m [1mCREATE TABLE "tree_nodes" ("id" serial primary key, "path" ltree) [0m
|
527
|
-
[1m[35mSQL (0.7ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114528"]]
|
528
|
-
[1m[36m (11.7ms)[0m [1mCOMMIT[0m
|
529
|
-
Migrating to CreateNotUniqTreeNode (20150809114547)
|
530
|
-
[1m[35m (0.6ms)[0m BEGIN
|
531
|
-
[1m[36m (91.9ms)[0m [1mCREATE TABLE "not_uniq_tree_nodes" ("id" serial primary key, "status" character varying, "new_path" ltree) [0m
|
532
|
-
[1m[35mSQL (0.6ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114547"]]
|
533
|
-
[1m[36m (11.8ms)[0m [1mCOMMIT[0m
|
534
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.7ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
535
|
-
[1m[36m (5.4ms)[0m [1mSELECT 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
|
-
[0m
|
547
|
-
[1m[35m (5.3ms)[0m 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
|
-
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
560
|
-
[1m[35mSQL (1.3ms)[0m INSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id" [["path", "Top"]]
|
561
|
-
[1m[36m (23.3ms)[0m [1mCOMMIT[0m
|
562
|
-
[1m[35m (0.2ms)[0m BEGIN
|
563
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id"[0m [["path", "Top.Science"]]
|
564
|
-
[1m[35m (7.6ms)[0m COMMIT
|
565
|
-
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
566
|
-
[1m[35mSQL (0.9ms)[0m INSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id" [["path", "Top.Science.Astronomy"]]
|
567
|
-
[1m[36m (7.8ms)[0m [1mCOMMIT[0m
|
568
|
-
[1m[35m (0.3ms)[0m BEGIN
|
569
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id"[0m [["path", "Top.Science.Astronomy.Astrophysics"]]
|
570
|
-
[1m[35m (7.8ms)[0m COMMIT
|
571
|
-
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
572
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id" [["path", "Top.Science.Astronomy.Cosmology"]]
|
573
|
-
[1m[36m (8.0ms)[0m [1mCOMMIT[0m
|
574
|
-
[1m[35m (0.3ms)[0m BEGIN
|
575
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id"[0m [["path", "Top.Hobbies"]]
|
576
|
-
[1m[35m (8.4ms)[0m COMMIT
|
577
|
-
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
578
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id" [["path", "Top.Hobbies.Amateurs_Astronomy"]]
|
579
|
-
[1m[36m (7.9ms)[0m [1mCOMMIT[0m
|
580
|
-
[1m[35m (0.4ms)[0m BEGIN
|
581
|
-
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id"[0m [["path", "Top.Collections"]]
|
582
|
-
[1m[35m (6.0ms)[0m COMMIT
|
583
|
-
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
584
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id" [["path", "Top.Collections.Pictures"]]
|
585
|
-
[1m[36m (7.7ms)[0m [1mCOMMIT[0m
|
586
|
-
[1m[35m (0.4ms)[0m BEGIN
|
587
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id"[0m [["path", "Top.Collections.Pictures.Astronomy"]]
|
588
|
-
[1m[35m (7.5ms)[0m COMMIT
|
589
|
-
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
590
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id" [["path", "Top.Collections.Pictures.Astronomy.Stars"]]
|
591
|
-
[1m[36m (7.8ms)[0m [1mCOMMIT[0m
|
592
|
-
[1m[35m (0.3ms)[0m BEGIN
|
593
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id"[0m [["path", "Top.Collections.Pictures.Astronomy.Galaxies"]]
|
594
|
-
[1m[35m (7.8ms)[0m COMMIT
|
595
|
-
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
596
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id" [["path", "Top.Collections.Pictures.Astronomy.Astronauts"]]
|
597
|
-
[1m[36m (7.8ms)[0m [1mCOMMIT[0m
|
598
|
-
[1m[35mTreeNode Load (1.5ms)[0m SELECT "tree_nodes".* FROM "tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM tree_nodes AS subquery WHERE (subquery.path <@ tree_nodes.path))
|
599
|
-
[1m[36mTreeNode Load (1.5ms)[0m [1mSELECT "tree_nodes".* FROM "tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM tree_nodes AS subquery WHERE (subquery.path <@ tree_nodes.path))[0m
|
600
|
-
[1m[35m (1.5ms)[0m SELECT COUNT(*) FROM "tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM tree_nodes AS subquery WHERE (subquery.path <@ tree_nodes.path))
|
601
|
-
[1m[36m (1.5ms)[0m [1mSELECT "tree_nodes"."path" FROM "tree_nodes" WHERE (SELECT COUNT(subquery.path) = 1 FROM tree_nodes AS subquery WHERE (subquery.path <@ tree_nodes.path))[0m
|
602
|
-
[1m[35m (1.3ms)[0m 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
|
-
[1m[36m (1.6ms)[0m [1mSELECT "tree_nodes"."path" FROM "tree_nodes" WHERE (path ~ '*{,3}.Astronomy|Pictures')[0m
|
604
|
-
[1m[35m (1.0ms)[0m SELECT "tree_nodes"."path" FROM "tree_nodes" WHERE (path ~ '*{,2}.Astronomy|Pictures')
|
605
|
-
[1m[36m (1.4ms)[0m [1mSELECT "tree_nodes"."path" FROM "tree_nodes" WHERE (NLEVEL(path) = 0)[0m
|
606
|
-
[1m[35m (0.9ms)[0m SELECT "tree_nodes"."path" FROM "tree_nodes" WHERE (NLEVEL(path) = 1)
|
607
|
-
[1m[36m (0.9ms)[0m [1mSELECT "tree_nodes"."path" FROM "tree_nodes" WHERE (NLEVEL(path) = 2)[0m
|
608
|
-
[1m[35m (0.8ms)[0m SELECT "tree_nodes"."path" FROM "tree_nodes" WHERE (NLEVEL(path) = 3)
|
609
|
-
[1m[36m (1.0ms)[0m [1mSELECT "tree_nodes"."path" FROM "tree_nodes" WHERE (path ~ '*{3}.Astronomy|Pictures')[0m
|
610
|
-
[1m[35m (1.0ms)[0m 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
|
-
[1m[36m (1.0ms)[0m [1mSELECT "tree_nodes"."path" FROM "tree_nodes" WHERE (path ~ '*{2}Astronomy|Pictures')[0m
|
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
|
-
[1m[35m (0.8ms)[0m SELECT "tree_nodes"."path" FROM "tree_nodes" WHERE (path ~ '*{2}.Astronomy|Pictures')
|
621
|
-
[1m[36m (0.8ms)[0m [1mSELECT "tree_nodes"."path" FROM "tree_nodes" WHERE (NLEVEL(path) = 5)[0m
|
622
|
-
[1m[35mTreeNode Load (3.8ms)[0m SELECT "tree_nodes".* FROM "tree_nodes" ORDER BY "tree_nodes"."id" DESC LIMIT 1
|
623
|
-
[1m[36mTreeNode Load (1.2ms)[0m [1mSELECT "tree_nodes".* FROM "tree_nodes" WHERE (path @> 'Top.Collections.Pictures.Astronomy.Astronauts')[0m
|
624
|
-
[1m[35mTreeNode Load (1.1ms)[0m SELECT "tree_nodes".* FROM "tree_nodes" ORDER BY "tree_nodes"."id" DESC LIMIT 1
|
625
|
-
[1m[36m (0.8ms)[0m [1mSELECT "tree_nodes"."path" FROM "tree_nodes" WHERE (path @> 'Top.Collections.Pictures.Astronomy.Astronauts')[0m
|
626
|
-
[1m[35mTreeNode Load (1.0ms)[0m SELECT "tree_nodes".* FROM "tree_nodes" ORDER BY "tree_nodes"."id" DESC LIMIT 1
|
45
|
+
[1m[36mTreeNode Load (113.1ms)[0m [1mSELECT "tree_nodes".* FROM "tree_nodes" ORDER BY "tree_nodes"."id" ASC LIMIT 1[0m
|
46
|
+
[1m[35mTreeNode Load (0.5ms)[0m SELECT "tree_nodes".* FROM "tree_nodes" ORDER BY "tree_nodes"."id" ASC LIMIT 1
|
627
47
|
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
628
|
-
[1m[35mSQL (
|
629
|
-
[1m[36m (
|
630
|
-
[1m[35m (0.
|
631
|
-
[1m[36mSQL (0.
|
632
|
-
[1m[35m (
|
48
|
+
[1m[35mSQL (11.6ms)[0m INSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id" [["path", "Top"]]
|
49
|
+
[1m[36m (50.3ms)[0m [1mCOMMIT[0m
|
50
|
+
[1m[35m (0.2ms)[0m BEGIN
|
51
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id"[0m [["path", "Top.Science"]]
|
52
|
+
[1m[35m (0.4ms)[0m COMMIT
|
53
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
54
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id" [["path", "Top.Science.Astronomy"]]
|
55
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
56
|
+
[1m[35m (0.1ms)[0m BEGIN
|
57
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id"[0m [["path", "Top.Science.Astronomy.Astrophysics"]]
|
58
|
+
[1m[35m (0.4ms)[0m COMMIT
|
59
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
60
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id" [["path", "Top.Science.Astronomy.Cosmology"]]
|
61
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
62
|
+
[1m[35m (0.2ms)[0m BEGIN
|
63
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id"[0m [["path", "Top.Hobbies"]]
|
64
|
+
[1m[35m (0.4ms)[0m COMMIT
|
65
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
66
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id" [["path", "Top.Hobbies.Amateurs_Astronomy"]]
|
67
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
68
|
+
[1m[35m (0.1ms)[0m BEGIN
|
69
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id"[0m [["path", "Top.Collections"]]
|
70
|
+
[1m[35m (0.7ms)[0m COMMIT
|
71
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
72
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id" [["path", "Top.Collections.Pictures"]]
|
73
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
74
|
+
[1m[35m (0.1ms)[0m BEGIN
|
75
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id"[0m [["path", "Top.Collections.Pictures.Astronomy"]]
|
76
|
+
[1m[35m (0.4ms)[0m COMMIT
|
77
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
78
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id" [["path", "Top.Collections.Pictures.Astronomy.Stars"]]
|
79
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
80
|
+
[1m[35m (0.1ms)[0m BEGIN
|
81
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id"[0m [["path", "Top.Collections.Pictures.Astronomy.Galaxies"]]
|
82
|
+
[1m[35m (0.4ms)[0m COMMIT
|
83
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
84
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "tree_nodes" ("path") VALUES ($1) RETURNING "id" [["path", "Top.Collections.Pictures.Astronomy.Astronauts"]]
|
85
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
86
|
+
[1m[35mTreeNode Load (28.8ms)[0m SELECT "tree_nodes".* FROM "tree_nodes" ORDER BY "tree_nodes"."id" ASC LIMIT 1
|
87
|
+
[1m[36mSQL (11.9ms)[0m [1mUPDATE "tree_nodes" SET path = 'Top' OR subpath(path, nlevel('Top')) WHERE (path <@ 'Top')[0m
|
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
|
+
[1m[35mTreeNode Load (0.4ms)[0m SELECT "tree_nodes".* FROM "tree_nodes" ORDER BY "tree_nodes"."id" ASC LIMIT 1
|
93
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "tree_nodes" SET path = 'Top' OR subpath(path, nlevel('Top')) WHERE (path <@ 'Top')[0m
|
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
|
+
[1m[35mTreeNode Load (0.6ms)[0m SELECT "tree_nodes".* FROM "tree_nodes" ORDER BY "tree_nodes"."id" ASC LIMIT 1
|
99
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "tree_nodes" SET path = 'Top' OR subpath(path, nlevel('Top')) WHERE (path <@ 'Top')[0m
|
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
|
+
[1m[35mTreeNode Load (1.5ms)[0m SELECT "tree_nodes".* FROM "tree_nodes" ORDER BY "tree_nodes"."id" ASC LIMIT 1
|
105
|
+
[1m[36mSQL (20.4ms)[0m [1mUPDATE "tree_nodes" SET path = 'Top' OR subpath(path, nlevel('Top')) WHERE (path <@ 'Top')[0m
|
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
|
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
634
|
-
[1m[35mSQL (
|
635
|
-
[1m[36m (
|
636
|
-
[1m[35m (0.
|
637
|
-
[1m[36mSQL (0.
|
638
|
-
[1m[35m (
|
639
|
-
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
640
|
-
[1m[35mSQL (0.7ms)[0m INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Science.Astronomy"], ["status", "active"]]
|
641
|
-
[1m[36m (7.5ms)[0m [1mCOMMIT[0m
|
642
|
-
[1m[35m (0.3ms)[0m BEGIN
|
643
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id"[0m [["new_path", "Top.Science.Astronomy"], ["status", "deactive"]]
|
644
|
-
[1m[35m (7.6ms)[0m COMMIT
|
111
|
+
[1m[35mSQL (33.9ms)[0m INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top"], ["status", "active"]]
|
112
|
+
[1m[36m (16.8ms)[0m [1mCOMMIT[0m
|
113
|
+
[1m[35m (0.2ms)[0m BEGIN
|
114
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id"[0m [["new_path", "Top"], ["status", "deactive"]]
|
115
|
+
[1m[35m (0.5ms)[0m COMMIT
|
645
116
|
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
646
|
-
[1m[35mSQL (0.
|
647
|
-
[1m[36m (
|
648
|
-
[1m[35m (0.
|
649
|
-
[1m[36mSQL (0.
|
650
|
-
[1m[35m (
|
651
|
-
[1m[36m (0.
|
652
|
-
[1m[35mSQL (0.
|
653
|
-
[1m[36m (
|
117
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Science"], ["status", "active"]]
|
118
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
119
|
+
[1m[35m (0.2ms)[0m BEGIN
|
120
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id"[0m [["new_path", "Top.Science"], ["status", "deactive"]]
|
121
|
+
[1m[35m (0.5ms)[0m COMMIT
|
122
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
123
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Science.Astronomy"], ["status", "active"]]
|
124
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
125
|
+
[1m[35m (0.2ms)[0m BEGIN
|
126
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id"[0m [["new_path", "Top.Science.Astronomy"], ["status", "deactive"]]
|
127
|
+
[1m[35m (0.5ms)[0m COMMIT
|
128
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
129
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Science.Astronomy.Astrophysics"], ["status", "active"]]
|
130
|
+
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
|
654
131
|
[1m[35m (0.3ms)[0m BEGIN
|
655
|
-
[1m[36mSQL (0.
|
656
|
-
[1m[35m (
|
657
|
-
[1m[36m (0.
|
658
|
-
[1m[35mSQL (0.
|
659
|
-
[1m[36m (
|
660
|
-
[1m[35m (0.
|
661
|
-
[1m[36mSQL (0.
|
662
|
-
[1m[35m (
|
663
|
-
[1m[36m (0.
|
664
|
-
[1m[35mSQL (0.
|
665
|
-
[1m[36m (
|
666
|
-
[1m[35m (0.
|
667
|
-
[1m[36mSQL (0.
|
668
|
-
[1m[35m (
|
669
|
-
[1m[36m (0.
|
132
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id"[0m [["new_path", "Top.Science.Astronomy.Astrophysics"], ["status", "deactive"]]
|
133
|
+
[1m[35m (0.5ms)[0m COMMIT
|
134
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
135
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Science.Astronomy.Cosmology"], ["status", "active"]]
|
136
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
137
|
+
[1m[35m (0.1ms)[0m BEGIN
|
138
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id"[0m [["new_path", "Top.Science.Astronomy.Cosmology"], ["status", "deactive"]]
|
139
|
+
[1m[35m (0.5ms)[0m COMMIT
|
140
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
141
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Hobbies"], ["status", "active"]]
|
142
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
143
|
+
[1m[35m (0.1ms)[0m BEGIN
|
144
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id"[0m [["new_path", "Top.Hobbies"], ["status", "deactive"]]
|
145
|
+
[1m[35m (0.5ms)[0m COMMIT
|
146
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
147
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Hobbies.Amateurs_Astronomy"], ["status", "active"]]
|
148
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
149
|
+
[1m[35m (0.2ms)[0m BEGIN
|
150
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id"[0m [["new_path", "Top.Hobbies.Amateurs_Astronomy"], ["status", "deactive"]]
|
151
|
+
[1m[35m (0.5ms)[0m COMMIT
|
152
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
670
153
|
[1m[35mSQL (0.4ms)[0m INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Collections"], ["status", "active"]]
|
671
|
-
[1m[36m (
|
672
|
-
[1m[35m (0.
|
673
|
-
[1m[36mSQL (0.
|
674
|
-
[1m[35m (
|
675
|
-
[1m[36m (0.
|
676
|
-
[1m[35mSQL (0.
|
677
|
-
[1m[36m (
|
678
|
-
[1m[35m (0.
|
679
|
-
[1m[36mSQL (0.
|
680
|
-
[1m[35m (
|
681
|
-
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
682
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Collections.Pictures.Astronomy"], ["status", "active"]]
|
683
|
-
[1m[36m (8.0ms)[0m [1mCOMMIT[0m
|
684
|
-
[1m[35m (0.3ms)[0m BEGIN
|
685
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id"[0m [["new_path", "Top.Collections.Pictures.Astronomy"], ["status", "deactive"]]
|
686
|
-
[1m[35m (7.7ms)[0m COMMIT
|
687
|
-
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
688
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Collections.Pictures.Astronomy.Stars"], ["status", "active"]]
|
689
|
-
[1m[36m (8.3ms)[0m [1mCOMMIT[0m
|
690
|
-
[1m[35m (0.3ms)[0m BEGIN
|
691
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id"[0m [["new_path", "Top.Collections.Pictures.Astronomy.Stars"], ["status", "deactive"]]
|
692
|
-
[1m[35m (8.4ms)[0m COMMIT
|
154
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
155
|
+
[1m[35m (0.2ms)[0m BEGIN
|
156
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id"[0m [["new_path", "Top.Collections"], ["status", "deactive"]]
|
157
|
+
[1m[35m (0.4ms)[0m COMMIT
|
158
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
159
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Collections.Pictures"], ["status", "active"]]
|
160
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
161
|
+
[1m[35m (0.2ms)[0m BEGIN
|
162
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id"[0m [["new_path", "Top.Collections.Pictures"], ["status", "deactive"]]
|
163
|
+
[1m[35m (0.6ms)[0m COMMIT
|
693
164
|
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
694
|
-
[1m[35mSQL (0.
|
695
|
-
[1m[36m (
|
696
|
-
[1m[35m (0.
|
697
|
-
[1m[36mSQL (0.
|
698
|
-
[1m[35m (
|
699
|
-
[1m[36m (0.
|
700
|
-
[1m[35mSQL (0.
|
701
|
-
[1m[36m (
|
165
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Collections.Pictures.Astronomy"], ["status", "active"]]
|
166
|
+
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
|
167
|
+
[1m[35m (0.1ms)[0m BEGIN
|
168
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id"[0m [["new_path", "Top.Collections.Pictures.Astronomy"], ["status", "deactive"]]
|
169
|
+
[1m[35m (0.4ms)[0m COMMIT
|
170
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
171
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Collections.Pictures.Astronomy.Stars"], ["status", "active"]]
|
172
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
173
|
+
[1m[35m (0.1ms)[0m BEGIN
|
174
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id"[0m [["new_path", "Top.Collections.Pictures.Astronomy.Stars"], ["status", "deactive"]]
|
175
|
+
[1m[35m (0.4ms)[0m COMMIT
|
176
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
177
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Collections.Pictures.Astronomy.Galaxies"], ["status", "active"]]
|
178
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
179
|
+
[1m[35m (0.2ms)[0m BEGIN
|
180
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id"[0m [["new_path", "Top.Collections.Pictures.Astronomy.Galaxies"], ["status", "deactive"]]
|
181
|
+
[1m[35m (0.4ms)[0m COMMIT
|
182
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
183
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Collections.Pictures.Astronomy.Astronauts"], ["status", "active"]]
|
184
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
185
|
+
[1m[35m (0.2ms)[0m BEGIN
|
186
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id"[0m [["new_path", "Top.Collections.Pictures.Astronomy.Astronauts"], ["status", "deactive"]]
|
187
|
+
[1m[35m (0.4ms)[0m COMMIT
|
188
|
+
[1m[36mNotUniqTreeNode Load (0.5ms)[0m [1mSELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."new_path" = $1 AND "not_uniq_tree_nodes"."status" = $2[0m [["new_path", "Top.Collections"], ["status", "active"]]
|
189
|
+
[1m[35mNotUniqTreeNode Load (0.4ms)[0m 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
|
+
[1m[36mNotUniqTreeNode Load (0.7ms)[0m [1mSELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."new_path" = $1 AND "not_uniq_tree_nodes"."status" = $2[0m [["new_path", "Top.Collections"], ["status", "active"]]
|
191
|
+
[1m[35m (0.2ms)[0m BEGIN
|
192
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."id" = $1[0m [["id", 15]]
|
193
|
+
[1m[35mSQL (1.2ms)[0m DELETE FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (new_path <@ 'Top.Collections') [["status", "active"]]
|
194
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
195
|
+
[1m[35mNotUniqTreeNode Load (0.5ms)[0m 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
|
+
[1m[36mNotUniqTreeNode Load (0.4ms)[0m [1mSELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."new_path" = $1 AND "not_uniq_tree_nodes"."status" = $2[0m [["new_path", "Top.Collections"], ["status", "active"]]
|
197
|
+
[1m[35mNotUniqTreeNode Load (0.5ms)[0m 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
|
+
[1m[36mNotUniqTreeNode Load (0.3ms)[0m [1mSELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."new_path" = $1[0m [["new_path", "Top.Collections"]]
|
199
|
+
[1m[35mNotUniqTreeNode Load (0.3ms)[0m 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
|
+
[1m[36mNotUniqTreeNode Load (0.5ms)[0m [1mSELECT "not_uniq_tree_nodes".* FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."new_path" = $1 LIMIT 1[0m [["new_path", "Top.Collections"]]
|
702
201
|
[1m[35m (0.3ms)[0m BEGIN
|
703
|
-
[1m[36mSQL (0.
|
704
|
-
[1m[
|
705
|
-
[1m[36m (
|
706
|
-
[1m[35m (1.0ms)[0m SELECT "not_uniq_tree_nodes"."new_path" FROM "not_uniq_tree_nodes" WHERE (NLEVEL(new_path) = 5)
|
707
|
-
[1m[36m (1.5ms)[0m [1mSELECT "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))[0m
|
708
|
-
[1m[35m (1.7ms)[0m 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
|
-
[1m[36m (1.4ms)[0m [1mSELECT "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))[0m [["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
|
-
[1m[36m (1.4ms)[0m [1mSELECT "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))[0m [["status", "active"]]
|
202
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."id" = $1[0m [["id", 16]]
|
203
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "not_uniq_tree_nodes" WHERE "not_uniq_tree_nodes"."status" = $1 AND (new_path <@ 'Top.Collections') [["status", "deactive"]]
|
204
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|