This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
db:postgresql [2026/04/02 11:35] tomas [Příkazová řádla] |
db:postgresql [2026/04/02 11:37] (current) tomas [Příkazová řádla] |
||
|---|---|---|---|
| Line 10: | Line 10: | ||
| ==== Příkazová řádla ==== | ==== Příkazová řádla ==== | ||
| + | |||
| + | ===zaloha / obnoveni zalohy databaze=== | ||
| + | pg_dump dbname > outfile\\ | ||
| + | pg_dump -h db_server -U db_user -W db_name > db.20070725.dump\\ | ||
| + | |||
| + | psql dbname > infile\\ | ||
| + | pg_dumpall > vse.sql ... zazalohuje vse do txt souboru vse.sql\\ | ||
| + | psql -f vse.sql postgres ... obnovi vse z txt soubotu vse.txt\\ | ||
| + | |||
| === klient === | === klient === | ||
| %%psql -U uživatel postgre:// | %%psql -U uživatel postgre:// | ||
| Line 53: | Line 62: | ||
| ===Vnitrni funkce psql=== | ===Vnitrni funkce psql=== | ||
| - | |||
| - | |||
| timeofday(); | timeofday(); | ||
| - | |||
| - | |||
| - | ===zaloha / obnoveni zalohy databaze=== | ||
| - | pg_dump dbname > outfile\\ | ||
| - | pg_dump -h db_server -U db_user -W db_name > db.20070725.dump\\ | ||
| - | |||
| - | psql dbname > infile\\ | ||
| - | pg_dumpall > vse.sql ... zazalohuje vse do txt souboru vse.sql\\ | ||
| - | psql -f vse.sql postgres ... obnovi vse z txt soubotu vse.txt\\ | ||
| ====SQL==== | ====SQL==== | ||