Pavel Golub: Factorial using CTE in PostgreSQL
Not so long ago I used Common Table Expressions for Fibonacci Numbers calculation. Today I had a conversation with one client about SQL in general and about PosgreSQL dialect in particular. We talked...
View ArticleHubert 'depesz' Lubaczewski: Waiting for 9.2 – ALTER IF EXISTS
On 23th of January, Simon Riggs committed patch: ALTER <thing> [IF EXISTS] ... allows silent DDL IF required, e.g. ALTER FOREIGN TABLE IF EXISTS foo RENAME TO bar Pavel Stehule This adds...
View ArticleBruce Momjian: Postgres Memory Surprises
In my previous blog entry, I analyzed how various tools (ps and smem) report memory usage. In summary: ps columns TRS, DRS, and VSZ report virtual address space allocated, not actual RAM allocated....
View ArticleJim Smith: Why aren't more people/companies using PostgreSQL?
Why aren't more people/companies using PostgreSQL? Why aren't they moving from proprietary databases to PostgreSQL? Possible answers: I haven't heard of PostgreSQL. I don't think PostgreSQL will meet...
View ArticleHubert 'depesz' Lubaczewski: Waiting for 9.2 – Trigger Depth
On 25th of January, Alvaro Herrera committed patch: ADD pg_trigger_depth() FUNCTION This reports the depth level OF triggers currently IN execution, OR zero IF NOT called FROM inside a TRIGGER. No...
View ArticleBruce Momjian: Let's See work_mem
Having shown memory allocation (and deallocation) in my previous blog post, I would like to show work_mem in action. First, I ran the following database session using a ~6k RPM drive: Continue Reading »
View ArticleJared Watkins: What I Do – Broadsoft CDR Files to Radius Accounting Records
As part of a larger project I needed to generate real time radius records from the CDR accounting files of several cluster pairs of Broadsoft application servers. So I wrote a perl script to do just...
View ArticleHubert 'depesz' Lubaczewski: Waiting for 9.2 – pg_basebackup from slave
On 25th of January, Simon Riggs committed patch: Allow pg_basebackup FROM standby node WITH safety checking. Base backup follows recommended PROCEDURE, plus goes TO great lengths TO ensure that partial...
View ArticleChris Travers: LedgerSMB talk at FOSDEM
Hi,I just arrived at FOSDEM - Brussels. Due to last minute arrangements, my talk about LedgerSMB isn't in the schedule. So, here's the announcement:There will be a LedgerSMB talk in the Perl devroom...
View ArticleLeo Hsu and Regina Obe: Back from DDOS Attack
As many may have noticed, PostgresOnline.com has been down for the past week or so and probably is still not reachable from many parts of the world since our DNS server was also taken down as a result...
View ArticleAndrew Dunstan: JSON for PG 9.2 ... and now for 9.1!
Robert Haas committed his bare bones JSON type five days ago, and three days later I committed my array_to_json and row_to_json constructors, so this is now definitely a go for 9.2. Kudos to Robert for...
View ArticleJoe Abbate: Automated Database Augmentation
Suppose you have a PostgreSQL database like the Pagila sample with 14 tables, each with a last_update timestamp column to record the date and time each row was modified, and it is now a requirement to...
View ArticleSteve Singer: 10 years of PostgreSQL replication
February 6′th 2012 marks the 10 year anniversary of the open source release of the DBMirror replication system. DBMirror was not the first PostgreSQL replication solution to be released but it was the...
View ArticleChris Travers: Robert Young is Wrong about Threads and PostgreSQL
Robert Young has claimed, not once but twice, that a multi-threaded engine is necessary for database performance to be good enough. I am going to explain here why he is wrong.Mr Young's argument more...
View ArticleHubert 'depesz' Lubaczewski: Waiting for 9.2 – temporary file stats per database
On 26th of January, Magnus Hagander committed patch: Add counters for number and size of temporary files used for spill-to-disk queries for each database to the pg_stat_database view. Tomas Vondra,...
View ArticleSelena Deckelmann: Catching up with pgsql-hackers: CRCs, checkpoint...
TweetI’ve been sick for a few days, so I settled in with a nice cup of tea and started in on the tremendous backlog I’ve got on pgsql-hackers. I put patch status at the end of each paragraph. The first...
View ArticleRobert Haas: My Patches Are Breeding
One of the great things about being a long-term contributor to an open source project like PostgreSQL is that you get to see other people take the stuff you've done and use it as a stepping stone to...
View ArticleChris Travers: Further Response to Robert Young
Robert Young has responded to my previous post and clarified his position. However, he is still incorrect in his assessment. The issue is lost cycles as one moves down to a single thread. It's more...
View ArticleHubert 'depesz' Lubaczewski: Waiting for 9.2 – deadlock counter
On 26th of January, Magnus Hagander committed patch: Adds a counter that tracks number of deadlocks that occurred in each database to pg_stat_database. Magnus Hagander, reviewed by Jaime Casanova...
View ArticleBruce Momjian: Virtualizing Postgres
Postgres is an ideal database to run in a virtual environment or public/private cloud — one reason is that Postgres relies heavily on the operating system, rather than using features like raw devices....
View Article