Today another great patch, committed by Tom Lane. This patch was written by Martin Pihlak (with some edits by Tom).