vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Use the .pgpass file. On Thu, 1 Dec 2005, Theo Galanakis wrote: > database.bak prompts me for a password. How can I run the psql command > without being prompted for a password. The password prompt and < command -- Jeff Frost, Owner <jeff@frostconsultingllc.com> Frost Consulting, LLC http://www.frostconsultingllc.com/ Phone: 650-780-7908 FAX: 650-649-1954 ---------------------------(end of broadcast)--------------------------- TIP 2: Don't 'kill -9' the postmaster |
| |||
| Alternatively you can login with your password as normal and then once in psql use the '\i filename' command to read in your backup. E.g., psql dbname Password: dbname=# \i database.bak dbname=# \q Regards - Paul Breen --- Jeff Frost <jeff@frostconsultingllc.com> wrote: > Use the .pgpass file. > > On Thu, 1 Dec 2005, Theo Galanakis wrote: > > > database.bak prompts me for a password. How can I > run the psql command > > without being prompted for a password. The > password prompt and < command > > -- > Jeff Frost, Owner <jeff@frostconsultingllc.com> > Frost Consulting, LLC > http://www.frostconsultingllc.com/ > Phone: 650-780-7908 FAX: 650-649-1954 > > ---------------------------(end of > broadcast)--------------------------- > TIP 2: Don't 'kill -9' the postmaster > ---------------------------(end of broadcast)--------------------------- TIP 2: Don't 'kill -9' the postmaster |
| ||||
| Paul Breen <paul.breen6@btinternet.com> writes: > Alternatively you can login with your password as > normal and then once in psql use the '\i filename' > command to read in your backup. Or use "psql -f file" instead of "psql < file". regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 6: explain analyze is your friend |