pg_upgrade Verified for current stable LTS

Pg Upgrade Command: Specify Old And New Postgres Ports

Use for specify old and new postgres ports with Pg Upgrade. Exact CLI syntax to specify old and new postgres ports using Pg Upgrade.

When to use this: Use for specify old and new postgres ports with Pg Upgrade.

Command Syntax

pg_upgrade -p <port> -P <port> -b <path/to/old_bin> -B <path/to/new_bin> -d <path/to/old_data> -D <path/to/new_data>

Command Breakdown

-p
Command Option
Tool-specific option used by this command invocation.
-P
Command Option
Tool-specific option used by this command invocation.
-b
Command Option
Tool-specific option used by this command invocation.
-B
Command Option
Tool-specific option used by this command invocation.
-d
Command Option
Tool-specific option used by this command invocation.
-D
Command Option
Tool-specific option used by this command invocation.

FAQ

Purpose: Exact syntax to specify old and new postgres ports using Pg Upgrade.

Test path: Replace placeholders and run destructive commands in a disposable workspace first.

Flag behavior: Tool version, platform, and shell can change behavior.

Improve This Command

Suggest a correction, safer default, or version-specific note for this entry.

Related Operations

Back to Pg Upgrade directory