Is there a way to generate CREATE statement for pk/fk constraints in progresql programmatically
<p><a href="https://stackoverflow.com/questions/28716760/how-to-generate-a-create-script-for-several-tables-in-pgadmin-iii">Here</a> is an example of how to generate CREATE statement from pgAdminIII.  But is there a way to generate this programmatically in plpgsql?  What I mean is, is there a convenient function that generates this for me?</p>