Sto cercando di copiare una tabella planet_osm_polygonda un database osma un altro test. Ho su postgreseseguito il pg_dump.
Problema: comunque sto ricevendo l'errore could not change directory to "/root"e il Password:prompt è comparso due volte! C'è un modo per eseguire il pg_dumpquando si accede come root?
root@lalaland:~# su postgres
postgres@lalaland:/root$ pg_dump -h localhost "osm" --table "public.planet_osm_polygon" |
psql -h localhost "test" --table "staging.planet_osm_polygon"
could not change directory to "/root"
could not change directory to "/root"
Password: Password:
AGGIORNARE
Problema n. 2: sembra che la tabella sia copiata nello publicschema anche se ho passato la bandiera --table="staging.planet_osm_polygon". Perché non viene copiato nello schema staging?
pg_dump, sta davvero chiamando psql? postgresql.org/docs/9.1/static/app-pgdump.html
psql -h localhost "test" --table "staging.planet_osm_polygon"
publicschema allora
psqlche potrebbe essere la causa del problema n. 2