John P Weatherman <jweatherman91(at)alumni(dot)wfu(dot)edu> writes:
> I can't seem to find a way to pass a CTRL-D character from within a bash
> script to the postgres executable.
Control-D is just a way to signal EOF from the keyboard. If you're
scripting, reaching the end of the script input does the same thing.
regards, tom lane