I am trying to drop a column from a table. How can I check if the column exists or not?
I went through the documentation at https://www.postgresql.org/docs/9.2/static/sql-altertable.html, but didn't find any example how to do it.
Even found How to check if a column exists in a SQL Server table?, but it does not seem relevant.