<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>why = WHY_NOT; (Posts about databases)</title><link>https://blog.svedr.in/</link><description></description><atom:link href="https://blog.svedr.in/categories/databases.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><lastBuildDate>Sun, 15 Feb 2026 11:29:07 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Migrating from sqlite to MariaDB</title><link>https://blog.svedr.in/posts/migrating-from-sqlite-to-mariadb/</link><dc:creator>Svedrin</dc:creator><description>&lt;div&gt;&lt;p&gt;Here’s a clean way to migrate an SQLite DB to MariaDB.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://blog.svedr.in/posts/migrating-from-sqlite-to-mariadb/"&gt;Read more…&lt;/a&gt; (1 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>databases</category><guid>https://blog.svedr.in/posts/migrating-from-sqlite-to-mariadb/</guid><pubDate>Sun, 28 Dec 2025 14:31:07 GMT</pubDate></item><item><title>repmgr quick start</title><link>https://blog.svedr.in/posts/repmgr-quick-start/</link><dc:creator>Svedrin</dc:creator><description>&lt;div&gt;&lt;p&gt;Dear future self, this is a little copy-and-paste tutorial on how to get postgres replication running using repmgr.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://blog.svedr.in/posts/repmgr-quick-start/"&gt;Read more…&lt;/a&gt; (4 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>databases</category><category>linux</category><guid>https://blog.svedr.in/posts/repmgr-quick-start/</guid><pubDate>Thu, 22 Sep 2016 18:44:23 GMT</pubDate></item><item><title>Calculating percentiles</title><link>https://blog.svedr.in/posts/calculating-percentiles/</link><dc:creator>Svedrin</dc:creator><description>&lt;div&gt;&lt;p&gt;One thing I've been wanting to do for quite some time now is calculating a confidence interval for the metrics measured by Fluxmon. I still have to figure out whether or not it's the same thing, but for starters I'd like to calculate percentiles for those values.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://blog.svedr.in/posts/calculating-percentiles/"&gt;Read more…&lt;/a&gt; (4 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>databases</category><category>monitoring</category><guid>https://blog.svedr.in/posts/calculating-percentiles/</guid><pubDate>Fri, 21 Aug 2015 09:40:49 GMT</pubDate></item><item><title>Discrete Derivative Revisited: how to get dt</title><link>https://blog.svedr.in/posts/discrete-derivative-revisited-how-to-get-dt/</link><dc:creator>Svedrin</dc:creator><description>&lt;div&gt;&lt;p&gt;In the &lt;a class="reference external" href="http://blog.svedr.in/posts/discrete-derivative-over-time-series-data-using-postgresql.html"&gt;last post&lt;/a&gt;, I calculated the discrete derivative of a counter variable's measurements, and I took the short cut by dividing the value's difference — that is, &lt;code class="docutils literal"&gt;dx&lt;/code&gt; — simply by &lt;em&gt;300&lt;/em&gt; instead of calculating the correct value of &lt;code class="docutils literal"&gt;dt&lt;/code&gt;. This obviously needs to be fixed.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://blog.svedr.in/posts/discrete-derivative-revisited-how-to-get-dt/"&gt;Read more…&lt;/a&gt; (3 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>databases</category><category>monitoring</category><guid>https://blog.svedr.in/posts/discrete-derivative-revisited-how-to-get-dt/</guid><pubDate>Thu, 20 Aug 2015 14:12:29 GMT</pubDate></item><item><title>Discrete Derivative over time series data using PostgreSQL</title><link>https://blog.svedr.in/posts/discrete-derivative-over-time-series-data-using-postgresql/</link><dc:creator>Svedrin</dc:creator><description>&lt;div&gt;&lt;p&gt;I use FluxMon to query statistics from the inverter hooked up to our solar collectors. One of the values the inverter spits out is today's energy production in &lt;em&gt;Wh&lt;/em&gt;. This value is reset every day and counts up to a certain value. Fair enough, but I'd be way more interested in the derivative of that value, which would give an indication of how much power is being produced per hour or so.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://blog.svedr.in/posts/discrete-derivative-over-time-series-data-using-postgresql/"&gt;Read more…&lt;/a&gt; (4 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>databases</category><category>monitoring</category><guid>https://blog.svedr.in/posts/discrete-derivative-over-time-series-data-using-postgresql/</guid><pubDate>Sun, 16 Aug 2015 16:45:51 GMT</pubDate></item><item><title>Nifty queries over time-series data using PostgreSQL</title><link>https://blog.svedr.in/posts/nifty-queries-over-time-series-data-using-postgresql/</link><dc:creator>Svedrin</dc:creator><description>&lt;div&gt;&lt;p&gt;I'm currently looking into loads of maths stuff for &lt;a class="reference external" href="http://fluxmon.de"&gt;Fluxmon&lt;/a&gt;, so I eventually reached the point where I'd like to try a few things. I've even collected quite a nice amount of data by now, so I have something to go with. But how to store and analyze it?&lt;/p&gt;
&lt;p&gt;On the Chemnitz Linux Days, Hans-Jürgen Schönig held a talk named &lt;a class="reference external" href="https://chemnitzer.linux-tage.de/2015/de/programm/beitrag/122"&gt;PostgreSQL: Daten superschnell analysieren&lt;/a&gt; which I had attended, so I wanted to get the data into PostgreSQL and try out some of the fancy stuff he showed. Googling for &lt;em&gt;postgres time series&lt;/em&gt;, I stumbled upon &lt;a class="reference external" href="http://no0p.github.io/postgresql/2014/05/08/timeseries-tips-pg.html"&gt;this blog post&lt;/a&gt; showing a coupl'a nice things too, and since the schema used by this guy is radically simple, I just went ahead.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://blog.svedr.in/posts/nifty-queries-over-time-series-data-using-postgresql/"&gt;Read more…&lt;/a&gt; (4 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>databases</category><category>monitoring</category><guid>https://blog.svedr.in/posts/nifty-queries-over-time-series-data-using-postgresql/</guid><pubDate>Sun, 16 Aug 2015 15:45:02 GMT</pubDate></item></channel></rss>