(Leo Hsu and Regina Obe) Common table expressions are perhaps our favorite feature in PostgreSQL 8.4 even more so than windowing functions. Strangely enough I find myself using them more in SQL Server too now that PostgreSQL supports it.
Tag: Open Source
The DB problem inherent to dynamic web pages
(Shlomi Noach) When building web sites, a popular demand is a maximum page load time.
PostgreSQL 8.4 Faster array building with array_agg
(Leo Hsu and Regina Obe) One of the very handy features introduced in PostgreSQL 8.4 is the new aggregate function called array_agg which is a companion function to the unnest function we discussed earlier. This takes a set of elements similar to what COUNT, SUM etc do and builds an array out of the
Killing my softly with QUERY
(Ronald Bradford) The MySQL KILL command as the name suggests kills queries that are running.
MySQL: Five More Dials To Turn
(Sean Hull) Last month we talked about some things to set and tune in a new MySQL database installation. We touched on connections, query cache, temp tables, session memory, and the slow query log.
PostgreSQL 8.4 unnest and generate_series
(Leo Hsu and Regina Obe) In this issue we shall be celebrating the arrival of PostgreSQL 8.4 by showcasing the new treats that PostgreSQL 8.4 has to offer. Although 8.4 has some nice big ticket items like Windowing Functions which we briefly covered numerous times and Common Table Expressions, it al
Regular expressions to help in Finding and Replacing DML statements
Recently, we were updating our own database used for dbForge Data Compare for MySQL testing. I wanted to add several tables with data, using a dump file of one of the tables.
Window Functions Comparison Between PostgreSQL 8.4, SQL Server 2008, Oracle, IBM DB2
(Leo Hsu and Regina Obe) PostgreSQL 8.4 has ANSI SQL:2003 window functions support. These are often classified under the umbrella terms of basic Analytical or Online Application Processing (OLAP) functions. They are used most commonly for producing cumulative sums, moving averages and generally roll
The confusion over global and session status
(Ronald Bradford) I was trying to demonstrate to a client how to monitor queries that generate internal temporary tables. With an EXPLAIN plan you see ‘Creating temporary’. Within MySQL you can use the SHOW STATUS to look at queries that create temporary tables.
Gathering queries from a server with Maatkit and tcpdump
(Baron Schwartz) For the last couple of months, we’ve been quietly developing a MySQL protocol parser for Maatkit. It isn’t an implementation of the protocol: it’s an observer of the protocol. This lets us gather queries from servers that don’t have a slow query log enabled, at very high time resolu
