>>How can I access the SQL that executes when I
>>alter my tables...
There are two ways, the first is the change to uncomment and change the value of log_statement in
postgresql.conf to ddl
IE:
log_statement = 'ddl'
Then you must do a reload of the postgresql.conf.
ddl statements will then be captured to the log.
The other way is to make the changes to the table in properties.
A. right click on the table
B. left click on Properties...
C. Add column, constraints, etc as needed.
D. Click on the SQL tab _BEFORE_ clicking the OK button,
Melvin Davidson Cell 720-320-0155
I reserve the right to fantasize. Whether or not you
wish to share my fantasy is entirely up to you. 
www.youtube.com/unusedhero
Folk Alley - All Folk - 24 Hours a day
www.folkalley.com
From: Wizz <mastuh8@gmail.com>
To: pgadmin-support@postgresql.org
Sent: Tuesday, December 1, 2015 7:41 AM
Subject: [pgadmin-support] Accessing SQL that has been executed behind the interface