(Shlomi Noach) The previous two parts have looked at some solutions offered by triggers. Let’s look now at some wishful triggers solutions, which are currently unavailable because of triggers limitations.
Tag: Open Source
Using cron and psql to transfer data across databases
(Greg Sabino Mullane) I recently had to move information from one database to another in an automatic function. I centralized some auditing information such that specific information about each database in the cluster could be stored in a single table, inside a single database. While I still needed
Faster MySQL failover with SELECT mirroring
(Baron Schwartz) One of my favorite MySQL configurations for high availability is master-master replication, which is just like normal master-slave replication except that you can fail over in both directions. Aside from MySQL Cluster, which is more special-purpose, this is probably the best general
Simple HA with PostgreSQL Point-In-Time Recovery
(Robert Hodges) Point-in-time recovery or PITR is one of my favorite PostgreSQL features. Most database servers have a transaction log for recovery. (MySQL is one of the few exceptions; more on that shortly.) However, PostgreSQL PITR allows and even encourages users to manipulate the logs to perform
PLPython Part 2: Control Flow and Returning Sets
(Leo Hsu and Regina Obe) We decided to continue with a Part 2 to this PL/Python series given the surprising popularity of the first. In our first article appearing in our January 2009 issue Quick Intro to PLPython we quickly went over installing PL/Python, doing a function that calls out to the oper
MySQL: Using CONNECT to Quickly Verify Replication Health
(Gerry Narvaja) One very helpful use of the technique Sheeri described in Remote connections without leaving the mysql shell is making sure that replication is working properly.
Seeding SQL RAND() Method With NEWID() For Per-Row Random Values (Thanks Joshua Cyr)
(Ben Nadel) From what I have read and from what I’ve seen demos of, I thought that MS SQL’s RAND() method could only return one random value per connection. As I never looked at the documentation for RAND(), I never realized that it could be seeded. This morning, in my post on selecting random recor
Source Control Layouts for Databases
(Gregory Haase) It’s easy to decide that you’re going to store changes to your database in source control, but it can be difficult to figure out what and where it should be stored. In this article I’ll explain what I like to see put into source control, and how I layout my source control folders. T
Another MySQL Proxy Tutorial
(Chris) Since MySQL Proxy 0.7.0 is soon to be released, I thought another brief tutorial would be helpful. Today we ran across a good use case, and so I wanted to pass this along. If you’ve not used Proxy yet, this is a great opportunity to get your feet wet with it and some Lua.
MySQL Memory Consumption
(Keith Murphy) Had an interesting situation come up today with a client. We had a situation where a server crashed because it ran out of memory. The calculation we used to monitor memory usage did not take into account all factors. When looking at this, I noticed a couple of things: There are num
