title: Write a tool to programmatically check Netezza (Pure Data) for skew and get query plan
body: <p>I am pondering on the idea of writing a .NET tool that connects to a Netezza box with the following functionality:
  1. Check distribution/skew of an input list of tables
  2. Check query plan of an input query</p>
  
  <p>I know can do that using Aginity Workbench and/or NZADmin, but I would like to know if there are any way to do that in code so that I can do some automated tuning?</p>
  
  <p>I checked online for answers but it seems like there are very little information on how to do that or if it is even possible.</p>