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> 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
Pg Upgrade Command: Check Clusters Before Upgrading
pg_upgrade -c -b <path/to/old_bin> -B <path/to/new_bin> -d <path/to/old_data> -D <path/to/new_data> Pg Upgrade Command: Display Help pg_upgrade -? Pg Upgrade Command: Perform Upgrade pg_upgrade -b <path/to/old_bin> -B <path/to/new_bin> -d <path/to/old_data> -D <path/to/new_data> Pg Upgrade Command: Use Hard Links Instead Of Copying pg_upgrade -k -b <path/to/old_bin> -B <path/to/new_bin> -d <path/to/old_data> -D <path/to/new_data> Pg Upgrade Command: Use Parallel Jobs During Upgrade pg_upgrade -j <njobs> -b <path/to/old_bin> -B <path/to/new_bin> -d <path/to/old_data> -D <path/to/new_data>