Introducing Crunchy Data Warehouse: A next-generation Postgres-native data warehouse. Crunchy Data Warehouse Learn more

  • 5 min read

    PostGIS vs GPU: Performance and Spatial Joins

    Paul Ramsey

    Crunchy Bridge for Analytics
    Read More
  • 4 min read

    CQL Filtering in pg_featureserv

    Martin Davis

    The goal of pg_featureserv is to provide easy and efficient access to PostGIS from web clients.

    To do this, it uses the emerging OGC API for Features

    Read More
  • 13 min read

    How to Cheat at WORDLE with PostgreSQL

    Jean-Paul Argudo

    What is Wordle?

    Wordle became very popular on the internet very quickly. It's a 5 letter word game to guess among all possible words in a given language. The French version is like the English one, except words aren't be written with the accents we have in French, like “é, è, ê, ë, à, ô,” etc. Words with the special character “œ” are written with 2 characters like “oe”.

    Prepare the database for some fun

    Read More
  • 5 min read

    Cloud Data Sources for the Postgres Operator for Kubernetes

    Andrew L'Ecuyer

    One of the many powerful features in PGO, the open source Postgres Operator from Crunchy Data, is the ability to use an existing data source to initialize a new Postgres cluster. If you are cloning an existing cluster or migrating volumes, PGO data sources make cluster initialization easy. New in PGO v5.0.5, we've expanded support for data sources even further with the introduction of cloud data sources! We’re excited to offer this new feature to customers onboarding to Crunchy Postgres for Kubernetes

    Read More
  • 8 min read

    Safer Application Users in Postgres

    Mike Palmiotto

    We deleted our database.

    Two years ago on a Friday afternoon around 4pm I had a customer open a support ticket. The customer thought they were running their test suite against a dev environment. In reality they were running on production. One of the early steps in many test suites is to ensure a clean state:

    1. DROP
    Read More
  • Postgres Constraints for Newbies

    Elizabeth Christensen

    One of the things that makes Postgres so awesome for software development is the incredibly useful system of constraints. Constraints are a way to tell Postgres which kinds of data can be inserted into tables, columns, or rows.

    As an application developer, you're going to build in this logic to your application as well and that’s great. However…adding this logic into your database protects your data long-term from bad data, null statements, or application code that isn't working quite right and does not conform to your data requirements. Constraints are also great for catching outliers and things you didn’t account for in application code but you know need to be caught before an insert statement.

    To illustrate the major constraint types, I’m going to show you an example database schema where you’re building a room reservation system with a table for users, a table for rooms, and reservations tables referencing users and rooms along with a start and end time.

    reservation_schema

    We can set up these first two tables for users and rooms without any constraints, let’s add this:

    CREATE TABLE users (
        id serial PRIMARY KEY,
        name text,
        email text
    );
    
    CREATE TABLE rooms (
        id serial PRIMARY KEY,
        number text
    );
    
    Read More
  • 14 min read

    Secure Permissions for pgBackRest

    Greg Sabino Mullane

    The pgBackRest tool is a fantastic backup solution for Postgres, with many features including encryption, compression, automatic expiration, PITR, asynchronous archiving, and lots more. By default it runs as the Unix user "postgres" and connects to the database as the "postgres" superuser. In working with one of our finance clients on Crunchy High Availability Postgres

    Read More
  • 5 min read

    Elevation Profiles and Flightlines with PostGIS

    Paul Ramsey

    A community member on the postgis-users mailing list had a question recently:

    I have a table of elevation points, and I would like to figure out an elevation profile for a flightline running through those points. How?

    This question is a nice showcase of some of my favorite spatial tools

    Read More
  • Postgres Indexes for Newbies

    Elizabeth Christensen

    If you’ve read Crunchy blogs recently you probably noticed by now that we’re all big fans of indexing. Indexing is key to optimizing your database workloads and reducing query times. Postgres now supports quite a few types

    Read More
  • 4 min read

    PostGIS 3.2 New and Improved

    Paul Ramsey

    Last month, just under the wire for a 2021 release, the 3.2 version of PostGIS hit the streets! This new PostGIS also supports the latest 3.10 release of GEOS, which underpins a few of the new features.

    Raster Algorithms

    Read More