Created
July 30, 2016 15:24
-
-
Save duizendnegen/d4b31b5c4ad9380bb7b1ed293982890c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\copy (SELECT tags -> 'to' AS route_to, tags -> 'from' AS route_from, tags -> 'to' AS route_to2, tags -> 'from' AS route_from2 FROM railmap_line WHERE tags -> 'route' = 'train' AND tags -> 'from' != '' AND tags -> 'to' != '') TO /psql/dump.csv CSV DELIMITER ',' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment