Creating Immutable Columns with PL/Java in PostgreSQL
We have created a catalog for our books to keep tabs on where they are in our many thousands of bookshelves around the house. The books have a name, an author and the shelf where they are located.Now...
View ArticleBuilding a relocatable PostgreSQL server
Normally, when building a Postgres server the run-time link path is hard coded to the installation directory. This article goes through the steps neccesary to make it depend on the location of the...
View ArticleUsing identd to authenticate local connections to PostgreSQL
The steps needed to setup and use identd to authenticate PostgreSQL are not very well documented with few examples floating on the web.Here we go over the steps needed. The examples as shown are done...
View ArticlePostgreSQL JDBC with GCJ
It is fairly easy to use the PostgreSQL JDBC driver with GCJ.As of GCC 4.1 (used in this example) it does not compile the JDBC 4 driver, so JDBC 3 was used.Step 1: Download the JDBC 3 driver from the...
View ArticleSet Returning Functions with PL/Java in PostgreSQL
There are three different ways to return sets from PL/Java stored procedures in PostgreSQL. Here we go through the steps necessary to return a set of the basic types using an Iterator and complex types...
View ArticlePerforming SQL with PL/Java in PostgreSQL
Here we give an example of SQL in PL/Java. The first one shows how a function can perform a simple query based on a primary key and return the results. The next example shows how the JDBC driver can be...
View Article
More Pages to Explore .....