Laur's blog
Sign in Subscribe

database

A collection of 2 posts
Migrate PostgreSQL Between Two Machines
database

Migrate PostgreSQL Between Two Machines

TL;DR: Once you prepare the connection, pg_dump is your friend. Recently, we had to migrate a large-ish DB (1.5 TB) from a Windows installation to a Linux one in order to accommodate a series of third party extensions. We have split the process in three: 1. Prepare
Feb 5, 2016 3 min read
Postgres: Show Schema Sizes in a Database
database

Postgres: Show Schema Sizes in a Database

While loading a large database from files to a Postgres schema, I found very useful to know how much space on disk it actually occupies (just in case I need to re-size the disk). I found this answer online: SELECT schema_name, pg_size_pretty(sum(table_size)::bigint) as
Oct 2, 2014 1 min read
Page 1 of 1
Laur's blog © 2025
  • Sign up
Powered by Ghost