Installation
pgEdge Document Loader is open-source and licensed with the PostgreSQL license. You can download pgEdge Document Loader source code from the pgEdge repository.
Prerequisites
Before building Document Loader, install:
- Go 1.21 or later
- PostgreSQL 12 or later
- Make (optional, for using Makefile targets)
Building from Source
To build Document Loader from source, clone the pgedge-docloader repository:
git clone https://github.com/pgedge/pgedge-docloader.git
cd pgedge-docloader
make to ensure that your Go installation is configured properly:
make deps
Alternatively, you can use the following command to ensure that Go is installed:
go mod download
Then, use make to build the Document Loader binary:
make build
The make build command creates the pgedge-docloader binary in the /bin directory in your current directory. If you'd prefer to install the binary in /usr/local/bin, use the command:
make install
To install the binary in a custom location, specify the installation path when you run the make command:
PREFIX=/opt/local make install
After building Document Loader, you can verify the installation worked by retrieving information about the tool:
pgedge-docloader version
Check supported formats:
pgedge-docloader formats
pgedge-docloader help