Postgres

Command Line

Postres’ command line interface can be used with

$ psql -U <user> <db>

Backup and Restore

Migrate to a newer Version

Tips und Tricks

Grant on all tables

To grant a user some (or all) permissions on all tables in a database:

SELECT 'grant all on '||tablename||' to <user>;' FROM pg_tables WHERE tablename LIKE '<tname>';

It prints a list of commands to execute.

 
wiki/postgres.txt · Last modified: 08.04.2007 23:03 by eglimi
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki