diff --git a/examples/cities/pgsql/import_cities.sql b/examples/cities/pgsql/import_cities.sql new file mode 100644 index 0000000..692d1b9 --- /dev/null +++ b/examples/cities/pgsql/import_cities.sql @@ -0,0 +1,10 @@ + +-- the input file is made accessible for the postgres process +-- via a symbolic link to to the storage-common package + +copy cities + from '/var/lib/postgresql/data/storage-common/examples/cities/data/cities.csv' + with ( + format csv, + header true + ) \ No newline at end of file diff --git a/examples/cities/pgsql/init_cities.sql b/examples/cities/pgsql/init_cities.sql new file mode 100644 index 0000000..0f034e2 --- /dev/null +++ b/examples/cities/pgsql/init_cities.sql @@ -0,0 +1,13 @@ + +create table cities ( + rectype int, + ctype int, + regiokey text not null primary key, + ckey text not null, + name text, + area decimal, + inhabitants int, + zipcode text, + long decimal, + lat decimal +);