pg_ltree 1.0.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 +7 -0
- data/MIT-LICENSE +20 -0
- data/Rakefile +29 -0
- data/lib/pg_ltree/ltree.rb +190 -0
- data/lib/pg_ltree/scoped_for.rb +45 -0
- data/lib/pg_ltree/version.rb +8 -0
- data/lib/pg_ltree.rb +5 -0
- data/lib/tasks/pg_ltree_tasks.rake +4 -0
- data/test/doc/_index.html +88 -0
- data/test/doc/class_list.html +58 -0
- data/test/doc/css/common.css +1 -0
- data/test/doc/css/full_list.css +57 -0
- data/test/doc/css/style.css +339 -0
- data/test/doc/file_list.html +57 -0
- data/test/doc/frames.html +26 -0
- data/test/doc/index.html +88 -0
- data/test/doc/js/app.js +219 -0
- data/test/doc/js/full_list.js +181 -0
- data/test/doc/js/jquery.js +4 -0
- data/test/doc/method_list.html +57 -0
- data/test/doc/top-level-namespace.html +102 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/models/not_uniq_tree_node.rb +6 -0
- data/test/dummy/app/models/tree_node.rb +3 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +29 -0
- data/test/dummy/config/application.rb +26 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml.example +14 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +41 -0
- data/test/dummy/config/environments/production.rb +79 -0
- data/test/dummy/config/environments/test.rb +42 -0
- data/test/dummy/config/initializers/assets.rb +11 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +56 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/migrate/20150809114511_enable_postgres_ltree.rb +13 -0
- data/test/dummy/db/migrate/20150809114528_create_tree_node.rb +7 -0
- data/test/dummy/db/migrate/20150809114547_create_not_uniq_tree_node.rb +8 -0
- data/test/dummy/db/schema.rb +29 -0
- data/test/dummy/log/development.log +718 -0
- data/test/dummy/log/test.log +34557 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/pg_ltree/ltree_test.rb +154 -0
- data/test/pg_ltree/scoped_for_test.rb +157 -0
- data/test/pg_ltree_test.rb +7 -0
- data/test/test_helper.rb +26 -0
- metadata +199 -0
@@ -0,0 +1,718 @@
|
|
1
|
+
[1m[36m (77.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
2
|
+
[1m[35m (63.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
3
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
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
|
170
|
+
Migrating to EnablePostgresLtree (20150809114511)
|
171
|
+
[1m[35m (0.3ms)[0m BEGIN
|
172
|
+
[1m[36m (54.5ms)[0m [1m CREATE EXTENSION IF NOT EXISTS ltree;
|
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;
|
263
|
+
[0m
|
264
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114511"]]
|
265
|
+
[1m[36m (20.1ms)[0m [1mCOMMIT[0m
|
266
|
+
Migrating to CreateTreeNode (20150809114528)
|
267
|
+
[1m[35m (0.6ms)[0m BEGIN
|
268
|
+
[1m[36m (79.8ms)[0m [1mCREATE TABLE "tree_nodes" ("id" serial primary key, "path" ltree) [0m
|
269
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114528"]]
|
270
|
+
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
|
271
|
+
Migrating to CreateNotUniqTreeNode (20150809114547)
|
272
|
+
[1m[35m (0.3ms)[0m BEGIN
|
273
|
+
[1m[36m (70.5ms)[0m [1mCREATE TABLE "not_uniq_tree_nodes" ("id" serial primary key, "status" character varying, "path" ltree) [0m
|
274
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150809114547"]]
|
275
|
+
[1m[36m (13.3ms)[0m [1mCOMMIT[0m
|
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
|
446
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
447
|
+
[1m[36m (3.2ms)[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
|
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
|
492
|
+
FROM pg_constraint c
|
493
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
494
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
495
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
496
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
497
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
498
|
+
WHERE c.contype = 'f'
|
499
|
+
AND t1.relname = 'not_uniq_tree_nodes'
|
500
|
+
AND t3.nspname = ANY (current_schemas(false))
|
501
|
+
ORDER BY c.conname
|
502
|
+
[0m
|
503
|
+
[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
|
504
|
+
FROM pg_constraint c
|
505
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
506
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
507
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
508
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
509
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
510
|
+
WHERE c.contype = 'f'
|
511
|
+
AND t1.relname = 'tree_nodes'
|
512
|
+
AND t3.nspname = ANY (current_schemas(false))
|
513
|
+
ORDER BY c.conname
|
514
|
+
|
515
|
+
[1m[36m (57.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
516
|
+
[1m[35m (51.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
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
|
627
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
628
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top"], ["status", "active"]]
|
629
|
+
[1m[36m (22.3ms)[0m [1mCOMMIT[0m
|
630
|
+
[1m[35m (0.4ms)[0m BEGIN
|
631
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id"[0m [["new_path", "Top"], ["status", "deactive"]]
|
632
|
+
[1m[35m (7.5ms)[0m COMMIT
|
633
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
634
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Science"], ["status", "active"]]
|
635
|
+
[1m[36m (7.5ms)[0m [1mCOMMIT[0m
|
636
|
+
[1m[35m (0.4ms)[0m BEGIN
|
637
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id"[0m [["new_path", "Top.Science"], ["status", "deactive"]]
|
638
|
+
[1m[35m (7.3ms)[0m COMMIT
|
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
|
645
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
646
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Science.Astronomy.Astrophysics"], ["status", "active"]]
|
647
|
+
[1m[36m (8.2ms)[0m [1mCOMMIT[0m
|
648
|
+
[1m[35m (0.4ms)[0m BEGIN
|
649
|
+
[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.Astrophysics"], ["status", "deactive"]]
|
650
|
+
[1m[35m (7.5ms)[0m COMMIT
|
651
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
652
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Science.Astronomy.Cosmology"], ["status", "active"]]
|
653
|
+
[1m[36m (7.9ms)[0m [1mCOMMIT[0m
|
654
|
+
[1m[35m (0.3ms)[0m BEGIN
|
655
|
+
[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.Cosmology"], ["status", "deactive"]]
|
656
|
+
[1m[35m (7.7ms)[0m COMMIT
|
657
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
658
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Hobbies"], ["status", "active"]]
|
659
|
+
[1m[36m (8.1ms)[0m [1mCOMMIT[0m
|
660
|
+
[1m[35m (0.7ms)[0m BEGIN
|
661
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id"[0m [["new_path", "Top.Hobbies"], ["status", "deactive"]]
|
662
|
+
[1m[35m (6.6ms)[0m COMMIT
|
663
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
664
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Hobbies.Amateurs_Astronomy"], ["status", "active"]]
|
665
|
+
[1m[36m (8.0ms)[0m [1mCOMMIT[0m
|
666
|
+
[1m[35m (0.5ms)[0m BEGIN
|
667
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id"[0m [["new_path", "Top.Hobbies.Amateurs_Astronomy"], ["status", "deactive"]]
|
668
|
+
[1m[35m (7.8ms)[0m COMMIT
|
669
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
670
|
+
[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 (8.3ms)[0m [1mCOMMIT[0m
|
672
|
+
[1m[35m (0.3ms)[0m BEGIN
|
673
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id"[0m [["new_path", "Top.Collections"], ["status", "deactive"]]
|
674
|
+
[1m[35m (8.3ms)[0m COMMIT
|
675
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
676
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Collections.Pictures"], ["status", "active"]]
|
677
|
+
[1m[36m (8.2ms)[0m [1mCOMMIT[0m
|
678
|
+
[1m[35m (0.3ms)[0m BEGIN
|
679
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id"[0m [["new_path", "Top.Collections.Pictures"], ["status", "deactive"]]
|
680
|
+
[1m[35m (8.3ms)[0m COMMIT
|
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
|
693
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
694
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "not_uniq_tree_nodes" ("new_path", "status") VALUES ($1, $2) RETURNING "id" [["new_path", "Top.Collections.Pictures.Astronomy.Galaxies"], ["status", "active"]]
|
695
|
+
[1m[36m (7.4ms)[0m [1mCOMMIT[0m
|
696
|
+
[1m[35m (0.4ms)[0m BEGIN
|
697
|
+
[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.Galaxies"], ["status", "deactive"]]
|
698
|
+
[1m[35m (7.1ms)[0m COMMIT
|
699
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
700
|
+
[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.Astronauts"], ["status", "active"]]
|
701
|
+
[1m[36m (7.3ms)[0m [1mCOMMIT[0m
|
702
|
+
[1m[35m (0.3ms)[0m BEGIN
|
703
|
+
[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.Astronauts"], ["status", "deactive"]]
|
704
|
+
[1m[35m (7.8ms)[0m COMMIT
|
705
|
+
[1m[36m (1.1ms)[0m [1mSELECT "not_uniq_tree_nodes"."new_path" FROM "not_uniq_tree_nodes" WHERE (NLEVEL(new_path) = 1)[0m
|
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"]]
|