Index: src/bin/psql/print.c =================================================================== RCS file: /projects/cvsroot/pgsql/src/bin/psql/print.c,v retrieving revision 1.82 diff -u -r1.82 print.c --- src/bin/psql/print.c 10 Feb 2006 22:29:06 -0000 1.82 +++ src/bin/psql/print.c 11 Feb 2006 23:23:15 -0000 @@ -573,6 +572,7 @@ for (j = 0; j < col_count; j++) { struct lineptr *this_line = col_lineptrs[j] + line_count; + int finalspaces = (opt_border != 2 && j == col_count-1); if (complete[j]) /* Just print spaces... */ fprintf(fout, "%*s", widths[j], ""); else @@ -602,7 +602,7 @@ } else fprintf(fout, "%-s%*s", this_line->ptr, - widths[j] - this_line->width, ""); + finalspaces ? 0 : (widths[j] - this_line->width), ""); /* If at the right height, done this col */ if (line_count == heights[j]-1 || !this_line[1].ptr) {