PostgreSQL on windows
By Rayed
Last weekend I decided to try PostgreSQL on Windows, I download PostgreSQL 8.1 installation file from PostgreSQL website, it was 22Mg zip file.
I also downloaded the 12 Mg manual, which contains everything about Postgres.
The installation is straight forward, simple wizard with some clicks and everything is installed and Postgres is running.
Postgres comes with two clients:
- psql: CLI (command line) client.
- pgAdminIII: graphical client.
pgAdmin (see the screen shot) looks amazing and gives you access to all parts of the database, and you can connect to multiple databases. I got intimidated at first when I saw all the options in pgAdminIII but after looking carefully at them it isn’t that scary π
I saw many similarities between PostgreSQL and Oracle database, mainly how they use sequences instead of auto increment fields. In both databases to create auto incrementing field, e.g. ID, you create a sequence object, then during ask the sequence to get new ID for you.
Both databases have schemas, functions, triggers, procedures, view, tablespaces, among other thing, which makes PostgreSQL an ideal tool to learn Oracle too.