Using the COPY command (http://www.postgresql.org/docs/9.1/static/sql-copy.html) I get each CHAR column filled up with spaces in the resulting text file.
Is there any way to trim them during this procedure ?
Using the COPY command ( http://www.postgresql.org/docs/9.1/static/sql-copy.html ) I get each CHAR column filled up
Share
You can specify a query instead of a table name with COPY so you can add a
TRIMcall to strip off the leading and trailing whitespace from yourchar(n)columns: