I search for a simple way to select all columns except one in psql.
With psql
I mean the interactive command line.
I would be happy with a tool that expands to *
to a list of quoted column names. Then I could remove the column to remove by hand.
My question is just about the interactive usage of psql. It is not a duplicate of questions of people unhappy with the sql standard and who want to execute something like "select *-foo".
information_schema
via a pl/pgsql function to generate a list pretty easily, but that way it'd be two queries.desc
command inpsql