<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <id>https://bugfactory.io/articles-on-postgresql/</id>
  <link href="https://bugfactory.io/"/>
  <link rel="self" type="application/atom+xml" href="https://bugfactory.io/articles-on-postgresql/feed.xml"/>
  <title>Web Development for SaaS Businesses | BugFactory</title>
  <updated>2025-09-15T00:00:00Z</updated>
  <author><name>Christoph Schiessl | BugFactory</name><email>cs@bugfactory.io</email></author>
  
      <entry>
        <id>https://bugfactory.io/articles/using-transaction-chaining-to-reduce-server-round-trips/</id>
        <link href="https://bugfactory.io/articles/using-transaction-chaining-to-reduce-server-round-trips/"/>
        <title>Using Transaction Chaining to Reduce Server Round-Trips</title>
        <published>2024-06-24T00:00:00Z</published>
        <updated>2024-06-28T00:00:00Z</updated>
        <author><name>Christoph Schiessl | BugFactory</name><email>cs@bugfactory.io</email></author>
        <summary>Cut the number of required PostgreSQL server round-trips by up to 50% using the `AND CHAIN` parameter of the `COMMIT` and `ROLLBACK` statements.</summary>
      </entry>
      <entry>
        <id>https://bugfactory.io/articles/repairing-corrupted-indexes-with-reindexing/</id>
        <link href="https://bugfactory.io/articles/repairing-corrupted-indexes-with-reindexing/"/>
        <title>Repairing Corrupted Indexes with `REINDEX`ing</title>
        <published>2024-03-18T00:00:00Z</published>
        <updated>2024-06-27T00:00:00Z</updated>
        <author><name>Christoph Schiessl | BugFactory</name><email>cs@bugfactory.io</email></author>
        <summary>This article outlines how to rebuild indexes with `REINDEX`. As an example, we will deliberately corrupt an index for a column that uses a custom `ENUM` column.</summary>
      </entry>
      <entry>
        <id>https://bugfactory.io/articles/generating-random-numbers-for-statistics-with-postgresql/</id>
        <link href="https://bugfactory.io/articles/generating-random-numbers-for-statistics-with-postgresql/"/>
        <title>Generating Random Numbers for Statistics with PostgreSQL</title>
        <published>2024-03-13T00:00:00Z</published>
        <updated>2024-07-23T00:00:00Z</updated>
        <author><name>Christoph Schiessl | BugFactory</name><email>cs@bugfactory.io</email></author>
        <summary>Learn how to use PostgreSQL&#39;s built-in `RANDOM()` function to generate pseudo-random numbers, which are uniformly, exponentially, or normally distributed.</summary>
      </entry>
      <entry>
        <id>https://bugfactory.io/articles/custom-enum-type-columns-and-order-by/</id>
        <link href="https://bugfactory.io/articles/custom-enum-type-columns-and-order-by/"/>
        <title>Custom `ENUM` Type Columns and `ORDER BY`</title>
        <published>2024-03-11T00:00:00Z</published>
        <updated>2024-06-21T00:00:00Z</updated>
        <author><name>Christoph Schiessl | BugFactory</name><email>cs@bugfactory.io</email></author>
        <summary>Learn how custom `ENUM` types in PostgreSQL can affect `SELECT` queries and `ORDER BY` clauses. Be mindful of indexing and typecasting.</summary>
      </entry>
      <entry>
        <id>https://bugfactory.io/articles/force-index-usage-by-manipulating-the-query-planner/</id>
        <link href="https://bugfactory.io/articles/force-index-usage-by-manipulating-the-query-planner/"/>
        <title>Force Index Usage by Manipulating the Query Planner</title>
        <published>2024-03-06T00:00:00Z</published>
        <updated>2024-06-15T00:00:00Z</updated>
        <author><name>Christoph Schiessl | BugFactory</name><email>cs@bugfactory.io</email></author>
        <summary>Learn how to manipulate PostgreSQL&#39;s query planner to force it to use your indexes while working on optimizing the performance of your queries.</summary>
      </entry>
      <entry>
        <id>https://bugfactory.io/articles/portability-via-static-linking-of-libpq/</id>
        <link href="https://bugfactory.io/articles/portability-via-static-linking-of-libpq/"/>
        <title>Portability via Static Linking of `libpq`</title>
        <published>2024-01-10T00:00:00Z</published>
        <updated>2024-06-13T00:00:00Z</updated>
        <author><name>Christoph Schiessl | BugFactory</name><email>cs@bugfactory.io</email></author>
        <summary>Learn how to remove LDAP support from PostgreSQL packages to remove indirect dependencies, thereby making your programs more portable across systems.</summary>
      </entry>
      <entry>
        <id>https://bugfactory.io/articles/caching-expensive-queries-with-materialized-views/</id>
        <link href="https://bugfactory.io/articles/caching-expensive-queries-with-materialized-views/"/>
        <title>Caching Expensive Queries with `MATERIALIZED VIEW`s</title>
        <published>2024-01-03T00:00:00Z</published>
        <updated>2024-06-06T00:00:00Z</updated>
        <author><name>Christoph Schiessl | BugFactory</name><email>cs@bugfactory.io</email></author>
        <summary>Learn how to use PostgreSQL&#39;s `MATERIALIZED VIEW`s to improve performance of complex queries. Persist query results and refresh them manually or automatically.</summary>
      </entry>
</feed>