pgrx
pgrx copied to clipboard
Maybe include some documentation about possibly installing/using `cargo pgx` in offline mode.
This was brought up during a conversation regarding https://github.com/tcdi/pgx/issues/252
Specifically, there is no official documentation in regards to installing cargo pgx
in offline mode, where the consensus at the moment is to "get the source code to pgx and run cargo install --path ./cargo-pgx
or similar. However, this does not include any details about possibly getting crates and dependencies in an offline manner (such as "vendoring").
hi PLease let me know if any possibility is there to install Promscale on server where internet doesn't exist. Since Cargo PGX is needed as pre-requisite to install Promscale however no offline binaries exist to install Cargo PGX . Please suggest how to install Cargo PGX on server without internet.
hi ,
Any update on this issue?
hi PLease let me know if any possibility is there to install Promscale on server where internet doesn't exist. Since Cargo PGX is needed as pre-requisite to install Promscale however no offline binaries exist to install Cargo PGX . Please suggest how to install Cargo PGX on server without internet.
You must build the cargo pgx binary for a machine with an equivalent hardware architecture and operating system, then copy it into somewhere accessible from the PATH on the server in question. Rust binaries generally do not need special installation otherwise, as they contain all of their components, except for the operating system. The cargo-pgx binary is a "cargo plugin" but that just means that when you call cargo pgx
, you call cargo
, and then cargo sets up the environment before running cargo-pgx, which means it needs to be able to find cargo-pgx in the PATH. You should make sure the cargo installation is the same version for both the cargo that builds cargo-pgx and for the cargo that will be used on the server.