Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Portable PostgreSQL for development off a usb drive

In order to take some development work home I have to be able to run a PostgreSQL database.

I don't want to install anything on the machine at home. Everything should run off the usb drive.

What development tools do you carry on your USB drive?

That question covers pretty much everything else, but I have yet to find a guide to getting postgresql portable. It doesn't seem easy if it's even possible.

So how do I get PostgreSQL portable? Is it even possible?

EDIT:

PostgreSQL Portable works. It's very slow on the usb-drive I have, but it works. I can't recommend doing constant development with it but for what I need it's great.

Perhaps if I pick up a full speed external drive I'll try out virtualization. Given the poor performance of just running the database off this drive, a full virtual OS running off of it would be unusable.

like image 304
Simurr Avatar asked Jul 08 '09 21:07

Simurr


People also ask

Is PostgreSQL portable?

PostgreSQLPortable is an open source database packaged as a portable app, so you can run a full PostgreSQL database on your iPod, USB flash drive, portable hard drive, etc.

Can you run Postgres locally?

Now that Postgres is running locally, we can connect to it via a “client” – a graphical or command-line interface that enables us to connect to the Postgres server, write and execute SQL commands as input, and see the resulting output.

Do you need a server for PostgreSQL?

It does not need a companion server, it acts as a database server in its own right. Postgres has its own SQL language called pgsql.

Is Postgres completely free?

Yup, you read that right. PostgreSQL is absolutely free to use, forever. All you need to do is download the database, install it, and start using it. You don't need to get into any contract negotiations, you don't need to worry about asking for permission from anyone, you don't need to haggle over pricing.


2 Answers

Here's how you can do this on your own: http://www.postgresonline.com/journal/archives/172-Starting-PostgreSQL-in-windows-without-install.html

like image 135
Je Monly Avatar answered Sep 16 '22 11:09

Je Monly


An alternate route would be to use something like VirtualBox and just install your development environment (database, whatever) on there.

like image 25
Alex Beardsley Avatar answered Sep 20 '22 11:09

Alex Beardsley