Project

General

Profile

« Previous | Next » 

Revision 9042

lib/sh/db.sh: pg_export_table_to_dir_no_header (): use to_file so that the file is autoremoved in case of error

View differences:

lib/sh/db.sh
100 100
	echo_func
101 101
	local table="$1"; shift; mk_table_esc
102 102
	local cols="$(pg_header)"
103
	pg_export_table_no_header "$@" >"$exports_dir/$table.no_header.cols=$cols.csv"
103
	stdout="$exports_dir/$table.no_header.cols=$cols.csv" to_file \
104
pg_export_table_no_header "$@"
104 105
}
105 106

  
106 107
fi

Also available in: Unified diff