by SathiyaMoorthy on March 26, 2010
Question: How do I executed PostgreSQL Commands inside a Linux / UNIX shell script?
Answer: With the help of the psql interactive terminal, you can execute the psql commands from the shell script. For this purpose, you should enable the password less login by pg_hba.conf, or .pgpass.
(more…)
by SathiyaMoorthy on May 21, 2009

Some of the open source application comes with postgreSQL database. To maintain those application, companies may not hire a fulltime postgreSQL DBA. Instead they may request the existing Oracle DBA, or Linux system administrator, or programmers to maintain the potgreSQL. In this article let discuss about the 15 practical postgresql database commands which will be useful to both DBA and expert psql users.
Also, refer to our previous article about 15 Practical PostgreSQL DBA Commands.
(more…)
by Ramesh Natarajan on April 16, 2009
by Ramesh Natarajan on April 9, 2009
by Ramesh Natarajan on January 21, 2009
This is a guest post written by SathiyaMoorthy
pg_dump is an effective tool to backup postgres database. It creates a *.sql file with CREATE TABLE, ALTER TABLE, and COPY SQL statements of source database. To restore these dumps psql command is enough.
Using pg_dump, you can backup a local database and restore it on a remote database at the same time, using a single command. In this article, let us review several practical examples on how to use pg_dump to backup and restore.
(more…)