Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
db:postgresql [2026/04/02 11:35]
tomas [PgSQL (Postgre SQL)]
db:postgresql [2026/04/02 11:37] (current)
tomas [Příkazová řádla]
Line 10: Line 10:
  
 ==== Příkazová řádla ==== ==== Příkazová řádla ====
-=== Start/stop/status === 
  
-=== client === +===zaloha / obnoveni zalohy databaze=== 
-%%psql -U uživatel postgre://server:port/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 === 
 +%%psql -U uživatel postgre://server:port/databaze%% ... připojení klientem do databáze\\
  
 ==== Postgre SQL příkazy a SQL jazyk ==== ==== Postgre SQL příkazy a SQL jazyk ====
Line 55: Line 62:
  
 ===Vnitrni funkce psql=== ===Vnitrni funkce psql===
- 
- 
 timeofday(); ... dnesni den\\ timeofday(); ... dnesni den\\
  
- 
- 
-===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====