Revision 13279
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/lib/sh/db.sh | ||
---|---|---|
285 | 285 |
fi # load new aliases |
286 | 286 |
if self_being_included; then |
287 | 287 |
|
288 |
psql() # usage: [stdin=copy_pstdin_file] [output_data=1] psql \ |
|
288 |
psql() # usage: [stdin=copy_pstdin_file|<(pstdin_cmd)] [output_data=1] psql \
|
|
289 | 289 |
# <<<"cmds (eg. \copy from pstdin)" |
290 | 290 |
# SUDO_USER: when set, avoids outputting to /dev/fd/#, because this causes a |
291 | 291 |
# "Permission denied" error when running as sudo on Linux |
Also available in: Unified diff
lib/sh/db.sh: psql(): usage: $stdin: documented that can also use process substitution for this