aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/createIndexQuery.sql5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/createIndexQuery.sql b/src/createIndexQuery.sql
new file mode 100644
index 0000000..a4e2712
--- /dev/null
+++ b/src/createIndexQuery.sql
@@ -0,0 +1,5 @@
+SELECT
+ 'CREATE INDEX CONCURRENTLY ' || table_name || '_' || column_name || ' ON ' || table_name || ' ("' || column_name || '");'
+FROM information_schema.columns
+WHERE table_schema = 'public'
+ AND table_name = 'vmadd';