How to completely uninstall and reinstall Homebrew Postgres

04-Feb-2021 1103
Lately, I’m finding that Postgres is becoming more and more vital to my development workflow. My days of leaning on an ORM like Rails’ ActiveRecord in order to get away with treating the database as a dumb hash are long behind me.As a result, even though I’ve optimized my development setup for quickly wiping and reinitializing my entire Mac, lately I’ve found myself needing to frequently clear out any trace of my Postgres installation. In particular, and while I absolutely adore my M1 Mac, a few people have noticed that—for whatever reason—Postgres can experience some data corruption issues when run under Rosetta. Specifically, I’ve been seeing a lot of errors that look like this lately:.
Use coupon code:

RUBYONRAILS

to get 30% discount on our bundle!
Prepare for your next tech interview with our comprehensive collection of programming interview guides. Covering JavaScript, Ruby on Rails, React, and Python, these highly-rated books offer thousands of essential questions and answers to boost your interview success. Buy our 'Ultimate Job Interview Preparation eBook Bundle' featuring 2200+ questions across multiple languages. Ultimate Job Interview Preparation eBook Bundle