Enable JavaScript to use search. / 検索を使用するには JavaScript を有効にしてください。
Posts with #postgresql
Tue, March 5, 2013
2 min read
[Apache][PHP4] Cannot load /etc/httpd/modules/libphp4.so into server: libpq.so.2.1: cannot open shared object file: No such file or directory
Fixing libpq.so.2.1 not found on Apache + PHP4 by symlinking the PostgreSQL library into /lib.
read more →
Thu, December 29, 2022
[Ruby on Rails] Solution for 'An error occurred while installing pg (1.4.5), and Bundler cannot continue.' [macOS Edition]
How to fix pg gem install errors on macOS by installing libpq with Homebrew and updating PATH.
Sat, October 21, 2017
4 min read
[CircleCI 2.0] Rails 5.x + Webpacker Configuration Job Setup Method for Running Rspec Tests
A working config.yml for running Rspec on Rails 5.x + Webpacker on CircleCI 2.0's free plan, with notes on the gotchas.
Sat, January 4, 2025
Free PostgreSQL GUI Tool 'Postico' is User-Friendly on macOS
We compared free PostgreSQL GUI tools available on macOS and summarized the features and user experience of each. Postico particularly felt user-friendly.
Fri, June 1, 2012
1 min read
[Heroku] How to Configure heroku-postgresql:dev
How to install the heroku-postgresql:dev add-on and promote it as the primary DATABASE_URL.
Sun, August 20, 2017
Heroku PostgreSQL Version Check Method and Command: heroku pg:info
Use heroku pg:info to confirm the version of Heroku PostgreSQL your app is running.
Sat, January 14, 2012
3 min read
Summary of Commonly Used Commands and Flow for Web App Development with Heroku + Ruby on Rails 3.2
Commands and workflow for building and deploying a Rails 3.2 app to Heroku's Cedar stack, end to end.
Tue, October 4, 2011
[Rails] How to Redo db:migrate to Heroku's Default PostgreSQL
Three ways to force db:migrate to run again on Heroku when rake db:reset is not available.
Sat, September 16, 2017
[MacOS] How to Uninstall All Versions of PostgreSQL ~ Homebrew Edition
Using brew uninstall --force to remove every Homebrew-installed PostgreSQL version on macOS, plus cleaning up the data directory.
Sun, September 18, 2011
[MacOS] Steps to Install PostgreSQL with Homebrew
Installing PostgreSQL on macOS via Homebrew — initdb, launchd auto-start, PGDATA, and a non-superuser account.
Sun, March 22, 2026
7 min read
Building a Cloud-DB-Free Todo App with Next.js + PGlite and Deploying to Vercel
I built a Todo app with PGlite running in-browser Postgres and persisting to IndexedDB using Next.js 16, then deployed it to Vercel.
Sun, March 4, 2012
[Oracle] DESCRIBE Command to Check Table Definition
Oracle DESCRIBE plus the equivalent table-definition commands for MySQL and PostgreSQL.
[Oracle] Displaying Table List
Listing user tables in Oracle, MySQL, and PostgreSQL, side by side.
Fri, March 2, 2012
[PostgreSQL][8.0.4] Sequence Function Arguments are text Type, not regclass Type (ERROR: cannot cast type text to regclass)
Fixing the PostgreSQL 8.0.4 'cannot cast type text to regclass' error in nextval.
Thu, March 8, 2012
[PostgreSQL] The Convenient COALESCE Function That Returns the First Non-NULL Argument
Using PostgreSQL's COALESCE function to substitute a default value when a column or aggregate returns NULL.
Tue, March 27, 2012
[PostgreSQL] ERROR: Cannot insert a duplicate key into unique index
Quick note on PostgreSQL's duplicate-key error when INSERT hits a UNIQUE constraint.
Mon, December 26, 2011
[PostgreSQL] How to Output Tables to CSV
Two ways to export a PostgreSQL table to CSV: interactive psql commands and a one-liner `psql -c` invocation.
Sun, March 11, 2012
5 min read
[PostgreSQL] Configuration for Connecting from Other PCs
Configuring `listen_addresses` and pg_hba.conf so PostgreSQL accepts connections from other hosts.
Wed, August 15, 2012
[PostgreSQL] ERROR: missing FROM-clause entry for table
Handling the missing FROM-clause error in PostgreSQL, and what changed with add_missing_from in 9.0.
Thu, September 13, 2012
[PostgreSQL] ERROR: must be owner of extension plpgsql
Resolving `must be owner of extension plpgsql` on pg_dump import by granting the role superuser privileges.
Mon, March 5, 2012
[PostgreSQL] Check table permissions when ERROR: permission denied for ~ error occurs
Fixing PostgreSQL's permission denied error by checking table privileges with `\z` and running GRANT.
Tue, October 23, 2012
[PostgreSQL] ERROR: language "plpgsql" does not exist
Fixing PostgreSQL's missing plpgsql language by loading it with the `createlang` command.
Wed, March 6, 2013
[PostgreSQL] postmaster.opts is Auto-generated, So Editing It is Pointless
Notes on why editing postmaster.opts is pointless — it's regenerated on restart, so the startup script needs to change.
Sun, December 18, 2016
Got Library not loaded: libreadline error when running psql, so I ran brew upgrade postgresql
How I fixed a psql libreadline error with brew upgrade postgresql and pg_upgrade.
Mon, August 21, 2017
Steps to Create Ruby on Rails 5 and Deploy to Heroku
End-to-end steps for spinning up a Rails 5 app and deploying it to Heroku with Heroku Postgres.
Thu, October 27, 2011
[Rails] Correspondence Between ActiveRecord and DB Data Types
A quick reference for how ActiveRecord column types map to native PostgreSQL and MySQL types.
[Rails] Solving the 'rake aborted! no such file to load -- pg' Error with rake db:migrate Command
Fix `rake db:migrate` failing with `no such file to load -- pg` by swapping sqlite3 for pg in your Gemfile.
Mon, January 5, 2026
Rate Limit Storage Selection: PostgreSQL vs Redis
Comparing PostgreSQL and Redis as storage for rate limiting. We explain our decision to choose PostgreSQL based on the YAGNI principle, considering current rate limit settings and existing API request flow.
Sun, November 13, 2011
[Ruby] How to Change the Display Format of Time Objects
A quick note on using Time#strftime to format Ruby Time objects into arbitrary display strings.