Skip to content

Instantly share code, notes, and snippets.

@kdunn-pivotal
kdunn-pivotal / postgres-top-tables.py
Last active February 3, 2018 00:18
Greenplum table access
from multiprocessing.pool import ThreadPool
import pandas as pd
import psqlparse
from glob import glob
columns = [
"logtime",
"loguser",
"logdatabase",
"logpid",
@kdunn-pivotal
kdunn-pivotal / greenplum-azure-arm-template
Created August 29, 2017 04:13
greenplum-azure-arm-template
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"artifactsBaseUrl": {
"type": "string",
"defaultValue": "https://ameypivotal.blob.core.windows.net/gpdb-autodeploy",
"metadata": {
"description": "Base URL for artifacts such as nested templates and scripts",
"artifactsBaseUrl": ""