AG_prodecures.sql

This is the postgres stored procedures for AG.