Skip to content

Commit

Permalink
Save upgrade idea
Browse files Browse the repository at this point in the history
  • Loading branch information
majst01 committed Aug 19, 2023
1 parent 7ff327f commit 47f371b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions cmd/internal/database/postgres/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,19 @@ func (db *Postgres) Upgrade() error {

// run the pg_upgrade command

// mkdir /data/postgres-new
// initdb -D /data/postgres-new

// pg_upgrade \
// --old-datadir /data/postgres \
// --new-datadir /data/postgres \
// --old-bindir /usr/local/bin/pg-old \
// --new-bindir /usr/local/bin \
// --link

// rm -rf /data/postgres
// mv /data/postgres-new /data/postgres

return nil
}

Expand Down

0 comments on commit 47f371b

Please sign in to comment.