Post

Visualizzazione dei post con l'etichetta PostgreSQL

Run a PostgreSQL .sql file using command line arguments

I have some .sql files with thousands of INSERT statements in them and need to run these inserts on my PostgreSQL database in order to add them to a table. The files are that large that it is impossible to open them and copy the INSERT statements into an editor window and run them there.

Utilizzo di PostgreSQL

Immagine
Prima di cominciare a parlare dell'argomento, su questo link potete trovare tutte le differenze tra MySQL e PostegreSQL. L'utente  postgres  (del database, non del sistema ospite) è l'amministratore del database stesso e per default ha tutti i privilegi. Alcune operazioni possono essere fatte con apposite utility da riga di comando, altre invece si devono fare dal monitor interattivo  psql  (applicazione client). In entrambi i casi il server PostgreSQL deve essere in funzione.