Postgresql (Postgres) Quick Notes 2..
Sep 30, 2011 in Database, PostgreSQL
— Set superuser :
ALTER ROLE username WITH SUPERUSER;
— Export / extract / dump database :
pg_dump --username=pgadmin --format=p mydb > mydb_pg_dump.sql
Sep 30, 2011 in Database, PostgreSQL
— Set superuser :
ALTER ROLE username WITH SUPERUSER;
— Export / extract / dump database :
pg_dump --username=pgadmin --format=p mydb > mydb_pg_dump.sql
Sep 21, 2011 in Linux
bash Comparison Operators ..
Some of them:
compound comparison
-a logical and exp1 -a exp2 returns true if both exp1 and exp2 are true. -o logical or exp1 -o exp2 returns true if either exp1 or exp2 is true.
.. and more ..