Project

General

Profile

« Previous | Next » 

Revision 13169

lib/sh/db.sh: removed no longer used pg_as_root(), which was buggy anyway. use `as_root=1 ...` instead.

View differences:

trunk/lib/sh/db.sh
266 266
}
267 267
alias pg_cmd='"pg_cmd" "${FUNCNAME%%__*}"'
268 268

  
269
pg_as_root() # usage: pg_as_root {psql|pg_*} ... # only works inside runscript
270
{ echo_func; : "${wrap_fn?}"; echo_run sudo -E -u postgres "$wrap_fn" "$@"; }
271

  
272 269
fi # load new aliases
273 270
if self_being_included; then
274 271

  

Also available in: Unified diff