Posts Tagged PostgreSQL

Porting applications from Oracle to PostgreSQL

If you are planning to migrate a database application from Oracle to PostgreSQL, this article can help you to understand and solve some of the issues occurring in such a process. PostgreSQL has recently become feature-complete in many areas and therefore porting projects from Oracle might be a feasible option in much more cases. Oracle and PostgreSQL both conform to standard SQL. However, they contain several extensions and implementation details that differentiate one from the other. Here is table with some of the differences and how to deal with them. Read the rest of this entry »

Tags: ,

Django schema migration using South

Over the developing period of Django web application the models change a lot. Managing these changes in a team environment working on a Django project can become complicated. Unfortunately Django doesn’t capture the changes in the existing models. Until Django will provide an solution to this problem, you will need to use a schema migration tool. After I have browsed for such tools, I decided to use South. This post will explain how to use South. Read the rest of this entry »

Tags: , , , , , ,

Extending PostgreSQL – A better CONCAT operator

PostgreSQL users have the option of extending the set of functions and operators available. If you have a common SQL or programmatic routine, custom functions can be an effective way to more succinctly and efficiently accomplish your tasks. Likewise, custom operators can be created to call these functions (or existing built-in functions) in order to make more efficient and legible SQL statements. Read the rest of this entry »

Tags: , , ,

SSH TCP Port Forwarding aka poor man’s VPN

In today’s world when the IPv4 addresses are a luxury and IPv6 is not wide deployed (yet) more and more servers are running behind NAT-ed addresses. To do remote management on these servers you connect to them using SSH through some port forwarding done on the border gateway. If you need to monitor these servers there are a few alternatives:

  • more ports forwarded from the gateway
  • use a vpn to  connect to the remote network
  • use TCP port forwarding through the SSH connection

This post will show how you can obtain more from the existing SSH connection to the remote system.

Read the rest of this entry »

Tags: , , , , , ,

Windowing Functions in PostgreSQL 8.4

PostgreSQL recently added several great new features like Common Table Expressions (CTE), Recursive CTEs, Windowing Functions (my favorite) and Parallel restoring of dumps. The goal of this article is to provide an overview of the new PostgreSQL Windowing Functions. Previously limited to enterprise databases such as Oracle and DB2, they open up a completely new world of functionality to SQL queries.
Read the rest of this entry »

Tags: , ,