Database Administration & Monitoring Migrating the Oracle 12cR1 sample schemas to PostgreSQL Plus Advanced Server 9.4 29.11.2015 by Daniel Westermann This post takes a look on how to migrate the Oracle 12cR1 sample schemas to PPAS 9.4 (PostgreSQL Plus Advanced Server 9.4). I’ll not dig into how to install PPAS as this was described in detail(…)
Database Administration & Monitoring Row level security is coming to PostgreSQL 29.08.2015 by Daniel Westermann Before PostgreSQL 9.5 (which is in alpha2 currently) you could grant access to individual columns of a table to users or roles. A little test script to demonstrate this: (postgres@[local]:5432) [postgres] > select version(); version -------------------------------------------------------------------------------------------------------------- PostgreSQL(…)
Database Administration & Monitoring Representing ranges with one data type? 25.08.2015 by Daniel Westermann How many applications do you know that need to define a validity of a row? And how many of these do that by adding two columns: valid_from and valid_to or similar column names? Well, in PostgreSQL (you already suspect it(…)
Database Administration & Monitoring Connecting your PostgreSQL instance to an Oracle database – The PostgreSQL 9.5 way 20.08.2015 by Daniel Westermann As you might know PostgreSQL 9.5 is currently in alpha 2. One of the new features will be the possibility to import foreign schemas. Having this it is no longer required to create all the foreign(…)
Database Administration & Monitoring Connecting your PostgreSQL instance to an Oracle database 19.08.2015 by Daniel Westermann For integrating data from other systems PostgreSQL has the concept of foreign data wrappers. Many of these exist for different types of systems. In this post I’ll look into how you may connect PostgreSQL to Oracle. The(…)
Database Administration & Monitoring Testing the just released PostgreSQL 9.5 Alpha in a docker container 03.07.2015 by Daniel Westermann On the 2cnd of July the PostgreSQL Global Development Group released an alpha version of the upcoming PostgreSQL 9.5. The same day, Josh Berkus, another of those PostgreSQL core team members released a docker image for(…)
Database Administration & Monitoring Indexing for like/similarity operations 29.06.2015 by Daniel Westermann Indexing queries for like/similarity conditions is not that easy with the usual index types. The only option you have with btree indexes (especially if the wild-card is at the beginning of the filter) is to create a partial(…)
Database Administration & Monitoring Quickly create a hundred databases and users 26.06.2015 by Daniel Westermann Do you need a hundred databases and users for training etc. in PostgreSQL? Just a few lines of code: [postgres8@oel7 data]$ cat create_databases.sh #!/bin/bash NUMOFDBS=100 for i in `seq ${NUMOFDBS}`; do psql -q -c "create user u${i}(…)
Database Administration & Monitoring What is more efficient: arrays or single column values? 15.06.2015 by Daniel Westermann In PostgreSQL ( as well as in other rdbms ) you can define columns as arrays. What I wondered is: What is more efficient when it comes to space: Creating several columns or just creating once column as array? The(…)
Database Administration & Monitoring SQL Interpolation with psql 15.06.2015 by Daniel Westermann The PostgreSQL psql utility provides some really nice features. One of these features is SQL interpolation which allows us to do interesting things, e.g. reading files and analyze the results directly in the database. This post(…)