Project

General

Profile

« Previous | Next » 

Revision 3391

root Makefile: VegBIEN DB: Schemas: Added schemas/%.sql to extract a compressed custom-format backup to plain SQL

View differences:

Makefile
253 253
schemas/%.backup:
254 254
	"time" env data=1 bin/pg_dump_vegbien $* >$@
255 255

  
256
restoreBien = "time" bin/postgres_vegbien pg_restore --exit-on-error --verbose\
257
--dbname=vegbien
256
restore := "time" bin/postgres_vegbien pg_restore --exit-on-error --verbose
257
restoreBien := $(restore) --dbname=vegbien
258 258
# pg_restore doesn't support PGDATABASE env var
259 259

  
260 260
schemas/%.backup/restore: schemas/%.backup _always
261 261
	$(restoreBien) $< &>$<.log
262 262

  
263
schemas/%.sql: schemas/%.backup
264
	$(restore) $< >$@ 2>$<.extract.log
265

  
263 266
schemas/%/rm_indexes: _always
264 267
	bin/pg_dump_vegbien $*|bin/mk_rm_indexes|$(psqlAsBien) --echo-all
265 268

  

Also available in: Unified diff