]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
Add package vertica-snippets
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Fri, 12 Jan 2018 14:16:57 +0000 (15:16 +0100)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Fri, 12 Jan 2018 14:16:57 +0000 (15:16 +0100)
move yasnippet collection for vertica into it's own package.

Signed-off-by: Andreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
32 files changed:
elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/check_rle_overridden [new file with mode: 0644]
elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/current_epoch [new file with mode: 0644]
elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/errors [new file with mode: 0644]
elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/get-partitions [new file with mode: 0644]
elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/get-projections [new file with mode: 0644]
elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/grants [new file with mode: 0644]
elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/nodes [new file with mode: 0644]
elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/rebalance_status [new file with mode: 0644]
elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/resource-pool-move [new file with mode: 0644]
elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/resources [new file with mode: 0644]
elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/sessions [new file with mode: 0644]
elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/storage-containers [new file with mode: 0644]
elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/storage-locations [new file with mode: 0644]
elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/user_sessions [new file with mode: 0644]
elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/vertica_users [new file with mode: 0644]
elpa/vertica-snippets-20180112.1202/snippets/sql-mode/.yas-parents [new file with mode: 0644]
elpa/vertica-snippets-20180112.1202/vertica-snippets-autoloads.el [new file with mode: 0644]
elpa/vertica-snippets-20180112.1202/vertica-snippets-pkg.el [new file with mode: 0644]
elpa/vertica-snippets-20180112.1202/vertica-snippets.el [new file with mode: 0644]
snippets/sql-interactive-mode/current_epoch [deleted file]
snippets/sql-interactive-mode/errors [deleted file]
snippets/sql-interactive-mode/get-partitions [deleted file]
snippets/sql-interactive-mode/get-projections [deleted file]
snippets/sql-interactive-mode/grants [deleted file]
snippets/sql-interactive-mode/nodes [deleted file]
snippets/sql-interactive-mode/rebalance_status [deleted file]
snippets/sql-interactive-mode/resource-pool-move [deleted file]
snippets/sql-interactive-mode/resources [deleted file]
snippets/sql-interactive-mode/sessions [deleted file]
snippets/sql-interactive-mode/storage-containers [deleted file]
snippets/sql-interactive-mode/user_sessions [deleted file]
snippets/sql-interactive-mode/vertica_users [deleted file]

diff --git a/elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/check_rle_overridden b/elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/check_rle_overridden
new file mode 100644 (file)
index 0000000..962da6a
--- /dev/null
@@ -0,0 +1,21 @@
+# -*- mode: snippet -*-
+# name: check_rle_overridden
+# key: rle_check_
+# group: vertica
+# condition: (if (string-equal sql-product 'vertica)t)
+# --
+select
+       qe.user_name,
+       count(*)
+from
+            v_monitor.query_events   qe
+       join v_monitor.query_requests qr
+         on qr.transaction_id        = qe.transaction_id
+        and qr.statement_id          = qe.statement_id
+where
+       qr.request_type                        = 'QUERY'
+  and  qe.event_type                          = 'RLE_OVERRIDDEN'
+  and  to_char(event_timestamp, 'YYYY-MM-DD') = '${1:`(format-time-string "%Y-%m-%d")`}'
+group by
+       1
+;
\ No newline at end of file
diff --git a/elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/current_epoch b/elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/current_epoch
new file mode 100644 (file)
index 0000000..cd4550f
--- /dev/null
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: current_epoch
+# key: epo_
+# group: vertica
+# condition: (if (string-equal sql-product 'vertica)t)
+# --
+SELECT current_epoch, ahm_epoch, last_good_epoch FROM v_monitor.system;
\ No newline at end of file
diff --git a/elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/errors b/elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/errors
new file mode 100644 (file)
index 0000000..f5629f0
--- /dev/null
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: errors
+# key: errors_
+# group: vertica
+# condition: (if (string-equal sql-product 'vertica)t)
+# --
+SELECT DISTINCT error_level, message FROM error_messages $0WHERE message ILIKE 'Vertica suggests%';
diff --git a/elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/get-partitions b/elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/get-partitions
new file mode 100644 (file)
index 0000000..dadd295
--- /dev/null
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: get-partitions
+# key: get-part
+# group: vertica
+# condition: (if (string-equal sql-product 'vertica)t)
+# --
+SELECT * FROM v_monitor.partitions WHERE table_schema = '$1' AND projection_name LIKE '%$2%';$0
\ No newline at end of file
diff --git a/elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/get-projections b/elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/get-projections
new file mode 100644 (file)
index 0000000..c445780
--- /dev/null
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: get-projections
+# key: get-proj
+# group: vertica
+# condition: (if (string-equal sql-product 'vertica)t)
+# --
+SELECT GET_PROJECTIONS('$1');$0
\ No newline at end of file
diff --git a/elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/grants b/elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/grants
new file mode 100644 (file)
index 0000000..96d0003
--- /dev/null
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: grants
+# key: grants_
+# group: vertica
+# condition: (if (string-equal sql-product 'vertica)t)
+# --
+SELECT grantee, object_name, privileges_description FROM v_catalog.grants WHERE object_type = '${1:$$(yas-choose-value '("RESOURCEPOOL" "ROLE" "SCHEMA" "TABLE" "VIEW" "STORAGELOCATION"))}' ORDER BY grantee $0LIMIT 50;
\ No newline at end of file
diff --git a/elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/nodes b/elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/nodes
new file mode 100644 (file)
index 0000000..7ef2cc9
--- /dev/null
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: show nodes
+# key: nodes_
+# group: vertica
+# condition: (if (string-equal sql-product 'vertica)t)
+# --
+SELECT * FROM nodes;
\ No newline at end of file
diff --git a/elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/rebalance_status b/elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/rebalance_status
new file mode 100644 (file)
index 0000000..9c014ca
--- /dev/null
@@ -0,0 +1,26 @@
+# -*- mode: snippet -*-
+# name: rebalance_status
+# key: rebalance_status_
+# group: vertica
+# condition: (if (string-equal sql-product 'vertica)t)
+# --
+SELECT rebalance_method rebalance_method,
+       status,
+       count(*) AS COUNT
+FROM
+  (SELECT rebalance_method,
+          CASE
+             WHEN (separated_percent = 100
+                    AND transferred_percent = 100) THEN 'Completed'
+             WHEN (separated_percent <> 0
+                    AND separated_percent <> 100)
+                   OR (transferred_percent <> 0
+                      AND transferred_percent <> 100) THEN 'In Progress'
+             ELSE 'Queued'
+          END AS status
+   FROM rebalance_projection_status
+   WHERE is_latest) AS tab
+GROUP BY 1,
+         2
+ORDER BY 1,
+         2;$0
diff --git a/elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/resource-pool-move b/elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/resource-pool-move
new file mode 100644 (file)
index 0000000..5486fe9
--- /dev/null
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: resource-pool-move
+# key: rpmv
+# group: vertica
+# condition: (if (string-equal sql-product 'vertica)t)
+# --
+SELECT * FROM resource_pool_move ORDER BY move_timestamp DESC LIMIT 40;$0
\ No newline at end of file
diff --git a/elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/resources b/elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/resources
new file mode 100644 (file)
index 0000000..16474d2
--- /dev/null
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: resources
+# key: res_
+# group: vertica
+# condition: (if (string-equal sql-product 'vertica)t)
+# --
+SELECT * FROM ${1:$$(yas-choose-value '("resource_pool_status" "resource_pool_move" "resource_rejections" "resource_rejection_details ORDER BY 1"))};$0
\ No newline at end of file
diff --git a/elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/sessions b/elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/sessions
new file mode 100644 (file)
index 0000000..529f7a6
--- /dev/null
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: sessions
+# key: sess_
+# group: vertica
+# condition: (if (string-equal sql-product 'vertica)t)
+# --
+SELECT * FROM sessions;$0
\ No newline at end of file
diff --git a/elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/storage-containers b/elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/storage-containers
new file mode 100644 (file)
index 0000000..5bb25bb
--- /dev/null
@@ -0,0 +1,19 @@
+# -*- mode: snippet -*-
+# name: storage-containers
+# key: storage-containers
+# group: vertica
+# condition: (if (string-equal sql-product 'vertica)t)
+# --
+SELECT s.node_name,
+       p.table_schema,
+       s.projection_name,
+       count(DISTINCT s.storage_oid) storage_container_count,
+       count(DISTINCT partition_key) partition_count,
+       count(r.rosid) ros_file_count
+FROM storage_containers s
+LEFT OUTER JOIN partitions p ON s.storage_oid = p.ros_id
+JOIN vs_ros r ON r.delid = s.storage_oid
+GROUP BY 1,
+         2,
+         3
+ORDER BY 4 DESC LIMIT 50;$0
\ No newline at end of file
diff --git a/elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/storage-locations b/elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/storage-locations
new file mode 100644 (file)
index 0000000..291fa40
--- /dev/null
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: storage-locations
+# key: storage-locations
+# group: vertica
+# condition: (if (string-equal sql-product 'vertica)t)
+# --
+SELECT * FROM v_catalog.grants gra, storage_locations loc WHERE gra.object_id = loc.location_id;$0
\ No newline at end of file
diff --git a/elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/user_sessions b/elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/user_sessions
new file mode 100644 (file)
index 0000000..2944456
--- /dev/null
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: user_sessions
+# key: ussess_
+# group: vertica
+# condition: (if (string-equal sql-product 'vertica)t)
+# --
+SELECT session_id, transaction_start FROM sessions WHERE user_name = '$1' ORDER BY 2 desc;$0
\ No newline at end of file
diff --git a/elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/vertica_users b/elpa/vertica-snippets-20180112.1202/snippets/sql-interactive-mode/vertica_users
new file mode 100644 (file)
index 0000000..73414e0
--- /dev/null
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: vertica_users
+# key: vertu_
+# group: vertica
+# condition: (if (string-equal sql-product 'vertica)t)
+# --
+SELECT user_name,resource_pool,default_roles FROM v_catalog.users ORDER BY 1;
\ No newline at end of file
diff --git a/elpa/vertica-snippets-20180112.1202/snippets/sql-mode/.yas-parents b/elpa/vertica-snippets-20180112.1202/snippets/sql-mode/.yas-parents
new file mode 100644 (file)
index 0000000..a20f5c6
--- /dev/null
@@ -0,0 +1 @@
+sql-interactive-mode
diff --git a/elpa/vertica-snippets-20180112.1202/vertica-snippets-autoloads.el b/elpa/vertica-snippets-20180112.1202/vertica-snippets-autoloads.el
new file mode 100644 (file)
index 0000000..12d3e9a
--- /dev/null
@@ -0,0 +1,29 @@
+;;; vertica-snippets-autoloads.el --- automatically extracted autoloads
+;;
+;;; Code:
+(add-to-list 'load-path (directory-file-name (or (file-name-directory #$) (car load-path))))
+\f
+;;;### (autoloads nil "vertica-snippets" "vertica-snippets.el" (23128
+;;;;;;  38466 776630 477000))
+;;; Generated autoloads from vertica-snippets.el
+
+(autoload 'vertica-snippets-initialize "vertica-snippets" "\
+Add snippet dir to yas-snippet-dirs and load it.
+
+\(fn)" nil nil)
+
+(eval-after-load 'yasnippet '(vertica-snippets-initialize))
+
+;;;***
+\f
+;;;### (autoloads nil nil ("vertica-snippets-pkg.el") (23128 38466
+;;;;;;  775088 24000))
+
+;;;***
+\f
+;; Local Variables:
+;; version-control: never
+;; no-byte-compile: t
+;; no-update-autoloads: t
+;; End:
+;;; vertica-snippets-autoloads.el ends here
diff --git a/elpa/vertica-snippets-20180112.1202/vertica-snippets-pkg.el b/elpa/vertica-snippets-20180112.1202/vertica-snippets-pkg.el
new file mode 100644 (file)
index 0000000..33f3d74
--- /dev/null
@@ -0,0 +1,12 @@
+(define-package "vertica-snippets" "20180112.1202" "Yasnippets for AWS"
+  '((yasnippet "0.6.1"))
+  :keywords
+  '("convenience" "snippets")
+  :authors
+  '(("Andreas Gerler" . "baronNOSPAMbundesbrandschatzamt.de"))
+  :maintainer
+  '("Andreas Gerler" . "baronNOSPAMbundesbrandschatzamt.de")
+  :url "https://github.com/baron42bba/vertica-snippets")
+;; Local Variables:
+;; no-byte-compile: t
+;; End:
diff --git a/elpa/vertica-snippets-20180112.1202/vertica-snippets.el b/elpa/vertica-snippets-20180112.1202/vertica-snippets.el
new file mode 100644 (file)
index 0000000..0faa230
--- /dev/null
@@ -0,0 +1,55 @@
+;;; vertica-snippets.el --- Yasnippets for AWS
+
+;; Copyright (C) 2018 Andreas Gerler
+;; keywords: convenience,snippets
+;; Version: 0.1.0
+;; Package-Requires: ((yasnippet "0.6.1"))
+
+;; Author: Andreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
+;; Maintainer: Andreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
+
+;; URL: https://github.com/baron42bba/vertica-snippets
+
+;; Permission is hereby granted, free of charge, to any person obtaining
+;; a copy of this software and associated documentation files (the
+;; "Software"), to deal in the Software without restriction, including
+;; without limitation the rights to use, copy, modify, merge, publish,
+;; distribute, sublicense, and/or sell copies of the Software, and to
+;; permit persons to whom the Software is furnished to do so, subject to
+;; the following conditions:
+
+;; The above copyright notice and this permission notice shall be
+;; included in all copies or substantial portions of the Software.
+
+;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+;; EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+;; MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+;; NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+;; LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+;; OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+;; WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+;;; Commentary:
+
+;; A collection of yasnippet snippets to be used with the Vertica Analytics Platform
+
+;;; Code:
+
+(require 'yasnippet)
+
+(defvar vertica-snippets-dir (file-name-directory (or (buffer-file-name)
+                                                 load-file-name)))
+
+;;;###autoload
+(defun vertica-snippets-initialize ()
+  "Add snippet dir to yas-snippet-dirs and load it."
+  (let ((snip-dir (expand-file-name "snippets" vertica-snippets-dir)))
+    (add-to-list 'yas-snippet-dirs snip-dir t)
+    (yas-load-directory snip-dir)))
+
+;;;###autoload
+(eval-after-load 'yasnippet
+   '(vertica-snippets-initialize))
+
+(provide 'vertica-snippets)
+;;; vertica-snippets.el ends here
diff --git a/snippets/sql-interactive-mode/current_epoch b/snippets/sql-interactive-mode/current_epoch
deleted file mode 100644 (file)
index b0148e7..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-# -*- mode: snippet -*-
-# name: current_epoch
-# key: epo_
-# --
-SELECT current_epoch, ahm_epoch, last_good_epoch FROM v_monitor.system;
\ No newline at end of file
diff --git a/snippets/sql-interactive-mode/errors b/snippets/sql-interactive-mode/errors
deleted file mode 100644 (file)
index f504432..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-# -*- mode: snippet -*-
-# name: errors
-# key: errors_
-# --
-SELECT DISTINCT error_level, message FROM error_messages $0WHERE message ILIKE 'Vertica suggests%';
diff --git a/snippets/sql-interactive-mode/get-partitions b/snippets/sql-interactive-mode/get-partitions
deleted file mode 100644 (file)
index 99230b7..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-# -*- mode: snippet -*-
-# name: get-partitions
-# key: get-part
-# --
-SELECT * FROM v_monitor.partitions WHERE table_schema = '$1' AND projection_name LIKE '%$2%';$0
\ No newline at end of file
diff --git a/snippets/sql-interactive-mode/get-projections b/snippets/sql-interactive-mode/get-projections
deleted file mode 100644 (file)
index 1dc0ff9..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-# -*- mode: snippet -*-
-# name: get-projections
-# key: get-proj
-# --
-SELECT GET_PROJECTIONS('$1');$0
\ No newline at end of file
diff --git a/snippets/sql-interactive-mode/grants b/snippets/sql-interactive-mode/grants
deleted file mode 100644 (file)
index e770e3f..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-# -*- mode: snippet -*-
-# name: grants
-# key: grants_
-# --
-SELECT grantee, object_name, privileges_description FROM v_catalog.grants WHERE object_type = '${1:$$(yas-choose-value '("RESOURCEPOOL" "ROLE" "SCHEMA" "TABLE" "VIEW" "STORAGELOCATION"))}' ORDER BY grantee $0LIMIT 50;
\ No newline at end of file
diff --git a/snippets/sql-interactive-mode/nodes b/snippets/sql-interactive-mode/nodes
deleted file mode 100644 (file)
index 77160e3..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-# -*- mode: snippet -*-
-# name: nodes
-# key: nodes_
-# --
-SELECT * FROM nodes;
\ No newline at end of file
diff --git a/snippets/sql-interactive-mode/rebalance_status b/snippets/sql-interactive-mode/rebalance_status
deleted file mode 100644 (file)
index acee692..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-# -*- mode: snippet -*-
-# name: rebalance_status
-# key: rebalance_status_
-# --
-SELECT rebalance_method rebalance_method,
-       status,
-       count(*) AS COUNT
-FROM
-  (SELECT rebalance_method,
-          CASE
-             WHEN (separated_percent = 100
-                    AND transferred_percent = 100) THEN 'Completed'
-             WHEN (separated_percent <> 0
-                    AND separated_percent <> 100)
-                   OR (transferred_percent <> 0
-                      AND transferred_percent <> 100) THEN 'In Progress'
-             ELSE 'Queued'
-          END AS status
-   FROM rebalance_projection_status
-   WHERE is_latest) AS tab
-GROUP BY 1,
-         2
-ORDER BY 1,
-         2;$0
diff --git a/snippets/sql-interactive-mode/resource-pool-move b/snippets/sql-interactive-mode/resource-pool-move
deleted file mode 100644 (file)
index 918bf43..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-# -*- mode: snippet -*-
-# name: resource-pool-move
-# key: rpmv
-# --
-SELECT * FROM resource_pool_move ORDER BY move_timestamp DESC LIMIT 40;$0
\ No newline at end of file
diff --git a/snippets/sql-interactive-mode/resources b/snippets/sql-interactive-mode/resources
deleted file mode 100644 (file)
index ba97ac8..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-# -*- mode: snippet -*-
-# name: resources
-# key: res_
-# --
-SELECT * FROM ${1:$$(yas-choose-value '("resource_pool_status" "resource_pool_move" "resource_rejections" "resource_rejection_details ORDER BY 1"))};$0
\ No newline at end of file
diff --git a/snippets/sql-interactive-mode/sessions b/snippets/sql-interactive-mode/sessions
deleted file mode 100644 (file)
index 8f17fe7..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-# -*- mode: snippet -*-
-# name: sessions
-# key: sess_
-# --
-SELECT * FROM sessions;$0
\ No newline at end of file
diff --git a/snippets/sql-interactive-mode/storage-containers b/snippets/sql-interactive-mode/storage-containers
deleted file mode 100644 (file)
index ee82f79..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-# -*- mode: snippet -*-
-# name: storage-containers
-# key: storage-containers
-# --
-SELECT s.node_name,
-       p.table_schema,
-       s.projection_name,
-       count(DISTINCT s.storage_oid) storage_container_count,
-       count(DISTINCT partition_key) partition_count,
-       count(r.rosid) ros_file_count
-FROM storage_containers s
-LEFT OUTER JOIN partitions p ON s.storage_oid = p.ros_id
-JOIN vs_ros r ON r.delid = s.storage_oid
-GROUP BY 1,
-         2,
-         3
-ORDER BY 4 DESC LIMIT 50;$0
\ No newline at end of file
diff --git a/snippets/sql-interactive-mode/user_sessions b/snippets/sql-interactive-mode/user_sessions
deleted file mode 100644 (file)
index c924efc..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-# -*- mode: snippet -*-
-# name: user_sessions
-# key: ussess_
-# --
-SELECT session_id, transaction_start FROM sessions WHERE user_name = '$1' ORDER BY 2 desc;$0
\ No newline at end of file
diff --git a/snippets/sql-interactive-mode/vertica_users b/snippets/sql-interactive-mode/vertica_users
deleted file mode 100644 (file)
index 030a445..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-# -*- mode: snippet -*-
-# name: vertica_users
-# key: vertu_
-# --
-SELECT user_name,resource_pool,default_roles FROM v_catalog.users ORDER BY 1;
\ No newline at end of file