Project

General

Profile

« Previous | Next » 

Revision 8121

inputs/input.Makefile: Staging tables installation: $(exportHeader): Fixed bug where need to run postprocess.sql before exporting the header, because it can change the column names

View differences:

inputs/input.Makefile
243 243
$(bin)/csv2db) $(logInstall*Add))
244 244

  
245 245
define exportHeader
246
$(selfMake) $*/postprocess.sql/run
246 247
echo 'SELECT * FROM "$(datasrc)"."$*" LIMIT 0;'|env no_search_path=1\
247 248
$(bin)/psql_script_vegbien --no-align --field-separator=, --pset=footer=off\
248 249
>$*/header.csv
......
266 267

  
267 268
%/install: _always
268 269
	$(if $(isRef),$(exportHeader),$(if $(nonXml),$(import_install_)))
269
	$(selfMake) $*/postprocess.sql/run
270 270
define import_install_
271 271
(. $(bin)/vegbien_dest; unset schemas; "time" nice -n +5\
272 272
env schema=$(datasrc) table=$* $(bin)/csv2db $(catSrcs) $(logInstall*))

Also available in: Unified diff