webb sprague <wsprague(at)o1(dot)com> writes:
> Does anybody know of a good way to COPY a file into a table if the data is
> based on fixed width format?
COPY insists on having delimiters; you'll need to translate the file
format into something COPY can deal with.
> Do I just have to write some code with scanf(Ick)?
If you like C, that would work, but you could doubtless accomplish the
same result with very short scripts in sed, awk, perl, tcl, or half a
dozen other text-bashing tools. Pick your poison...
regards, tom lane