Martin Pitt <martin(at)piware(dot)de> writes:
> When using %[ and %] (prompt length ignore area) in .psqlrc's prompt
> formats, psql sends a \001 before the actual readline commands
> (RL_PROMPT_{START,END}_IGNORE). This is the way bash handles the
> shell's PSx format, but it is not a readline command, but a bash
> specific quirk.
Fixed back through 8.0 (we don't seem to have that code in 7.x branches).
Thanks for the report.
regards, tom lane