I just checked my WordPress dashboard, and it says:
- 1,000 Posts
- 1,847 Comments
First entry was posted on 13th of May 2006 – 1166 days ago.
During this time I had 2 breakdowns when I said that I close the blog, switched language, and moved from “everything that interests me" to “99% PostgreSQL only".
Blog helped me get new contacts, contracts and job.
So, thanks go to all of you who read and comment here – I can only try to keep you interested 🙂
In case you're interested – according to FeedBurner I have around 500 subscribers.
On 205h of July Andrew Dunstan committed patch by Andres Freund :
DROP IF EXISTS for columns and constraints. Andres Freund.
Continue reading Waiting for 8.5 – pgsql: DROP IF EXISTS for columns and constraints.
Today, on irc (#postgresql on freenode.net) Dim mentioned about writing median calculation code.
It got me thinking, and consequently writing my version of median calculation code.
Continue reading Calculating median
I had today a very weird situation.
From my laptop, I ssh to another system, and from there to yet another.
On this final system I noticed that vim starts relatively slow. i.e. this command:
time vim -u /dev/null -c “:q"
returned time in around 3.5 seconds, while on my laptop (which is much less powerful) it is:
=> time vim -u /dev/null -c ":q"
I tried to debug the situation, and it got weirder. If I did “su – another_user" (on the final system) – it became fast. What's more: if I did su – depesz (my account) back – vim was still fast!
After some debugging it occurred to me: I have automatic X11 forwarding turned on. I checked – and yes, in the shell that vim starts slowly, i had “DISPLAY" variable, set to localhost:10.0!
Quick unset DISPLAY, and suddenly vim starts 0.027s!
Lesson for future – do not use automatic X11 forwarding for long-distance ssh connections, or make sure you run vim with “-X" option.
Later I learned why it tries X11 connection – to get access to X copy/paste buffer (available as * register). Nice feature, but with quite problematic side effects.
Every so often you need to get list of unique elements in some column. The standard way to do it is:
select distinct column from table;
select column from table group by column;
The only problem is that it's slow – as it has to seq scan whole table. Can it be done faster?
Continue reading Getting list of unique elements
If you can read it, then something is definitely wrong with you ;-P
Also yesterday, and also Peter Eisentraut, committed patch by Guillaume Smet, which:
Add log_line_prefix placeholder %e to contain the current SQL state
Author: Guillaume Smet
Continue reading Waiting for 8.5 – Add log_line_prefix placeholder %e to contain the current SQL state
Yesterday Peter Eisentraut committed a patch, written by Damien Clochard, that modifies \d output in psql:
Have \d show child tables that inherit from the specified parent
As per discussion, \d shows only the number of child tables, because that
could be hundreds, when used for partitioning. \d+ shows the actual list.
Author: Damien Clochard <firstname.lastname@example.org>
Continue reading Waiting for 8.5 – Have \d show child tables that inherit from the specified parent
Everybody wrote that 8.4 was released, so it's not a news now.
But. Starting from yesterday, my own PostgreSQL reports it's version like this:
# select version();
PostgreSQL 8.5devel on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 4.2.4 (Ubuntu 4.2.4-1ubuntu4), 32-bit
Which means: I can start new blog posts series.
Continue reading Waiting for 8.5 – let's start