mirror of
https://github.com/dimitri/pgloader.git
synced 2026-02-04 14:01:02 +01:00
Fix Advanced Howto for Geolite.
The example was still using a very old syntax for per-field options, and even the current debian package doesn't support this syntax anymore... Update the docs to use current syntax. Fix #475.
This commit is contained in:
parent
af46dc280f
commit
e5c8b8d159
@ -121,18 +121,18 @@ LOAD ARCHIVE
|
||||
|
||||
LOAD CSV
|
||||
FROM FILENAME MATCHING ~/GeoLiteCity-Location.csv/
|
||||
WITH ENCODING iso-8859-1
|
||||
(
|
||||
locId,
|
||||
country,
|
||||
region null if blanks,
|
||||
city null if blanks,
|
||||
postalCode null if blanks,
|
||||
latitude,
|
||||
longitude,
|
||||
metroCode null if blanks,
|
||||
areaCode null if blanks
|
||||
)
|
||||
WITH ENCODING iso-8859-1
|
||||
(
|
||||
locId,
|
||||
country,
|
||||
region [ null if blanks ],
|
||||
city [ null if blanks ],
|
||||
postalCode [ null if blanks ],
|
||||
latitude,
|
||||
longitude,
|
||||
metroCode [ null if blanks ],
|
||||
areaCode [ null if blanks ]
|
||||
)
|
||||
INTO postgresql:///ip4r?geolite.location
|
||||
(
|
||||
locid,country,region,city,postalCode,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user