Installing postgresql 9.1 on Ubuntu 11.10


Ok, so my first blog entry will be about how I recently installed postgresql 9.1 on Ubuntu 11.10 and some links. I couldn't get apt-get install to work, so I had to download a deb file and install it myself.











Here are the steps:

Verify that it has started:




In order to talk with postgresql you can run this (then you don't have to modify PATH):


To load this postgres into your environment, source the env file (if you don't run

this you will get errors like stuff you need to install):




Now you can try:



Try to create a database (will ask for postgres password).




Backup and restore that worked:



Backup:

http://www.commandprompt.com/blogs/joshua_drake/2010/07/a_better_backup_with_postgresql_using_pg_dump/


References:

http://wiki.openscg.com/index.php/Postgres_9.1_DEB
http://library.linode.com/databases/postgresql/ubuntu-10.10-maverick
http://www.commandprompt.com/blogs/joshua_drake/2010/07/a_better_backup_with_postgresql_using_pg_dump/



PS. If you know how to display shell code in a better way on Blogger, please let me know. I am currently considering Gist as an option.






Comments

Popular posts from this blog

Switching from Docker Desktop to Rancher Desktop on WSL2: Solving the Missing docker-credential-desktop.exe Error

Running LXD/LXC on WSL2 with Ubuntu 20.04

Proxmox Remote administration via VNC