mirror of
https://github.com/dimitri/pgloader.git
synced 2026-02-01 04:21:02 +01:00
15 lines
464 B
Fish
15 lines
464 B
Fish
load database
|
|
from pgsql://localhost/pgloader
|
|
into pgsql://localhost/copy
|
|
|
|
-- including only table names matching 'bits', ~/utilisateur/ in schema 'mysql'
|
|
including only table names matching ~/geolocations/ in schema 'public'
|
|
|
|
materialize views public.some_usps
|
|
as $$
|
|
select usps, geoid, aland, awater, aland_sqmi, awater_sqmi, location
|
|
from districts
|
|
where usps in ('MT', 'DE', 'AK', 'WY', 'PR', 'VT', 'SD', 'DC', 'ND');
|
|
$$
|
|
;
|