Skip to main content
thoughtbot thoughtbot
  • Live on Twitch!

    thoughtbot is livestreaming

    Work alongside the thoughtbot team as we collaborate with each other and our clients, live. Ask us anything, we're live right now!

  • Case Studies
  • Blog
  • Let’s Talk
Live on Twitch!

thoughtbot is livestreaming

Work alongside the thoughtbot team as we collaborate with each other and our clients, live. Ask us anything, we're live right now!

Let’s get started!
View all Services
Development
  • Ruby on Rails
  • Hotwire
  • AI and Machine Learning
  • Maintenance
  • Mobile
Design
  • Discovery Sprints
  • UX, UI, and Product Design
  • Design Systems
Product
  • MVP
  • Product Management
  • Accessibility
Team and Processes
  • Team Augmentation
  • Fractional Leadership
View all Services
View all Resources
Development
  • Tech Leadership Resources
  • Open Source
  • Books
  • The Bike Shed Podcast
  • Live Streaming on YouTube
  • Conference Talks
The business of great software
  • Playbook
  • Purpose Built
  • Giant Robots Smashing Into Other Giant Robots Podcast
  • Design Sprint Guide
  • Live Streaming on LinkedIn
View all Resources

PostgreSQL Articles

Written by thoughtbot, your expert partner for design and development.

    • All Topics
    • Design
    • Development
    • Product
    • More topics
  1. Optimizing Full Text Search with Postgres tsvector Columns and Triggers

    Improve the speed of Postgres full-text search by introducing a tsvector column to cache lexemes and using a trigger to keep the lexemes up-to-date.

    Dan Croak
    June 25, 2015
    • Web
    • Rails
    • PostgreSQL
  2. Have Some (Referential) Integrity with Foreign Keys

    What is referential integrity and why is it important to your Rails apps?

    Derek Prior
    December 2, 2014
    • Web
    • Rails
    • PostgreSQL
  3. Postgres Window Functions

    Take your queries to the next level with window functions.

    Simon Taranto
    September 16, 2014
    • Web
    • Performance
    • PostgreSQL
    • SQL
  4. Why Postgres Won't Always Use an Index

    Use SQL EXPLAIN to understand when and why indexes are used (or not).

    Simon Taranto
    July 25, 2014
    • Web
    • Performance
    • PostgreSQL
    • SQL
  5. An Explained psqlrc

    Let’s walk through my short psqlrc(5) to see what I’ve set, and to inspire...

    Mike Burns
    July 24, 2014
    • Web
    • PostgreSQL
  6. Avoid the Three-state Boolean Problem

    Use null: false, default: false on boolean columns in ActiveRecord migrations to avoid NULL problems.

    Gabe Berke-Williams
    February 24, 2014
    • Web
    • PostgreSQL
  7. Improving the Command-Line Postgres Experience

    Understanding the ~/.psqlrc configuration file, its options, and reading...

    Gabe Berke-Williams
    November 30, 2013
    • Web
    • PostgreSQL
  8. Implementing Multi-Table Full Text Search with Postgres in Rails

    Easily searching across an application’s data is a pervasive need. If you are...

    Derek Prior and Caleb Hearth
    August 16, 2013
    • Web
    • PostgreSQL
    • Rails
  9. How to Create Postgres Indexes Concurrently in ActiveRecord Migrations

    By default, Postgres locks writes (but not reads) to a table while creating...

    Dan Croak
    July 30, 2013
    • Web
    • PostgreSQL
    • Ruby
  10. The Perils of Uniqueness Validations

    Your Rails application probably makes use of uniqueness validations in...

    Derek Prior
    July 17, 2013
    • Web
    • Rails
    • PostgreSQL
  11. Sign up to receive a weekly recap from thoughtbot

    Looking for even more ways to stay connected?
    RSS feed icon Check out our feeds
« First ‹ Prev 1 2 3 4 5 6 Next › Last »

Footer

thoughtbot
  • Services
  • Case Studies
  • Resources
  • Let's Talk
  • Our Company
  • Careers
  • Purpose
  • Blog
  • Sponsor
  • Mastodon
  • Bluesky
  • GitHub
  • YouTube
  • Twitch
  • Feeds
© 2025 thoughtbot, inc.

The design of a robot and thoughtbot are registered trademarks of thoughtbot, inc.

  • US: +1 (877) 9-ROBOTS
  • UK: +44 (0)20 3807 0560
  • Beware of fraudulent thoughtbot job listings Learn more
  • Code of Conduct
  • Accessibility Statement
  • Privacy Policy