From 4114f6cc1762573ddf05cf92f2d304dbf04ed04e Mon Sep 17 00:00:00 2001
From: Andrew Harvey <andrew@alantgeo.com.au>
Date: Tue, 4 May 2021 16:12:13 +1000
Subject: major refactor and improvements

---
 src/createIndexQuery.sql | 5 +++++
 1 file changed, 5 insertions(+)
 create mode 100644 src/createIndexQuery.sql

(limited to 'src/createIndexQuery.sql')

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';
-- 
cgit v1.2.3

