(Joel Jacobson) Two people might be simultaneously modifying the same database function. To protect against this scenario, I created a little tool to stage the source code of all functions in pg_proc and the definition of all views.
Tag: Open Source
BEFORE triggers and NOT NULL columns in MySQL
(Dmitry Shulga) For a long time there was a Bug#6295 in implementation of BEFORE triggers related to handling of NOT NULL column. The problem was that if a column is declared as NOT NULL, it wasn’t possible to do INSERT NULL (or UPDATE to NULL) even though there was associated trigger, setting NOT-N
The MEMORY storage engine
(Stewart Smith) I recently wrote about Where are they now: MySQL Storage Engines and The MERGE storage engine: not dead, just resting…. or forgotten. Today, it’s the turn of the MEMORY storage engine – otherwise known as HEAP.
Rotating MySQL slow logs safely
(Peter Boros) In my last post, I described a solution for keeping the caches of a MySQL standby server hot using MySQL slow logs with long_query_time set to 0. Here are a some lessons we learned when logging a high volume of queries to the slow log.
A very simple custom aggregate
(Josh Berkus) Custom aggregates are one of those features which are unique to Postgres, and seem hopelessly obscure. Once you actually create one in earnest though, you’ll wonder how you ever lived without one.
Is your MySQL buffer pool warm? Make it sweat!
(Peter Boros) There are numerous solutions for MySQL high availability. Many rely on MySQL’s asynchronous replication to maintain a warm standby server which is flipped into service if the active master server has an issue.
Postgres 9.3 feature highlight: JSON parsing functions
(Michael Paquier) Continuing on the coverage of new JSON features added in Postgres 9.3, and after writing about JSON data generation and JSON operators, let’s now focus on some new functions that can be used for the parsing of JSON data.
Disconnecting a replication slave is easier with MySQL 5.5+ (RESET SLAVE vs. RESET SLAVE ALL)
(Stephane Combaudon) It’s not uncommon to promote a server from slave to master. One of the key things to protect your data integrity is to make sure that the promoted slave is permanently disconnected from its old master. If not, it may get writes from the old master, which can cause all kinds of d
Diagnosing problems with SQL imports
(Maciej Dobrzanski) Importing a text file containing a list of SQL commands into MySQL is a straightforward task. All you need to do is simply feed the file contents through pipe into MySQL command line client. For example: mysql app_production < dump.sql. [membership level="0"] [pmpro_button level="14" text="Read More - Register for Free Membership"][/membership] [membership][standout-css3-button href="http://www.dbasquare.com/2013/04/17/diagnosing-problems-with-sql-imports/" opennewwindow=true]Read More[/standout-css3-button] (Community content) [/membership]
On configuring the Performance Schema
(Marc Alff) This article is a user guide about MySQL 5.6 Performance Schema configuration. As with many things, the way to approach problems may vary a lot based on systems, user experiences, or just plain opinions, so the “Your Mileage May Vary” caution applies here.
