How can I iterate through all of the column headers in a table for a given database and add each column name individually to an array?
I know I can gather all of the information from the table using SELECT * FROM my_table but I need to work with just the column headers at this point. What is the best way to accomplish this?
Are you using the
pggem? If so, you can try this: