ho generato un file di backup di dettagli per i miei Postgres 9.3.4 utilizza questo:non è possibile ripristinare un file di backup di dettagli per Postgres usando pg_restore
pg_dump table_name -U myusername -h localhost -O > backup.dump
Ora sto cercando di eseguire il backup del vecchio database utilizzando:
pg_restore -U myusername -n public -d table_name backup.dump
Ma continuo a ricevere questo errore:
pg_restore: [archiver] input file appears to be a text format dump. Please use psql.
si prega di notare che il file non è il file sql semplice dal momento che generat ed usando pg_dump.
ho usato il comando follwoing:
psql perchwell -U myusername -f backup.dump -v ON_ERROR_STOP=1
e avviare riceve il seguente errore: formato di output
SET
SET
SET
SET
SET
SET
psql:backup.dump:16: ERROR: schema "propertydir" already exists
"* Si noti che il file non è un semplice file sql poiché l'ho generato utilizzando pg_dump *" - pg_dump * fa * crea un file di testo semplice nel modo in cui lo si utilizza. Si prega di leggere il manuale. –