PostgreSQL: Unterschied zwischen den Versionen

Aus Tutorials
Zur Navigation springen Zur Suche springen
Zeile 6: Zeile 6:


=== Links ===
=== Links ===
[https://www.postgresql.org/docs/9.1/backup-dump.html https://www.postgresql.org/docs/9.1/backup-dump.html]


[https://dba.stackexchange.com/questions/161857/how-to-backup-restore-in-postgresql-pgadmin-4 https://dba.stackexchange.com/questions/161857/how-to-backup-restore-in-postgresql-pgadmin-4]
[https://dba.stackexchange.com/questions/161857/how-to-backup-restore-in-postgresql-pgadmin-4 https://dba.stackexchange.com/questions/161857/how-to-backup-restore-in-postgresql-pgadmin-4]

Version vom 8. Juni 2019, 11:09 Uhr

Backup erstellen und Restore

pg_restore -c -C <filename>

Links

https://www.postgresql.org/docs/9.1/backup-dump.html

https://dba.stackexchange.com/questions/161857/how-to-backup-restore-in-postgresql-pgadmin-4

Datenbank umbenennen

ALTER DATABASE db RENAME TO newdb;

Bei Bindestrichen im Namen den Namen in Anführungszeichen setzen z.B.: "pre-name"

Links

http://www.postgresqltutorial.com/postgresql-rename-database/

Login (mit Passwort)

psql -d database -U user -W

Passwort ändern

psql -d database -U user -W
\password

Links Allgemein

http://www.postgresqltutorial.com/psql-commands/

http://www.postgresqltutorial.com/


Zurück zu Allgemein