xuebinsu / gp-compute

GP Compute (GPC) is desgined to be an elastic, resilient and secure computing framework for the Greenplum Database (GPDB).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GP Compute

GP Compute (GPC) is desgined to be an elastic, resilient and secure computing framework for the Greenplum Database (GPDB).

Installation

  1. Build and install GPDB.
  2. Clone the repo and configure GPDB as a shared library.
git clone https://github.com/xuebinsu/gp-compute.git
cd gp-compute
git submodule init
git submodule update
cd lib/gpdb/
CFLAGS+=-fPIC ./configure --disable-orca --prefix=gpdb/install/path/
  1. Build and install GP Compute. This step may take a long time since it need to build GPDB as a shared library.
cd ../../src/
make install
  1. Install GP Compute as an extension of GPDB using SQL:
CREATE EXTENSION gp_compute;

A Minimal Running Example

  1. To start a GPC server, open a bash session and run
gp_compute_server
  1. After the server starts, you can now create and execute UDFs using SQL:
CREATE OR REPLACE FUNCTION rint4(i int4) RETURNS int4 AS $$
return (as.integer(i))
$$ LANGUAGE gp_compute;

select rint4(12345678);

The result will be shown on the server side.

About

GP Compute (GPC) is desgined to be an elastic, resilient and secure computing framework for the Greenplum Database (GPDB).


Languages

Language:C 91.7%Language:Python 5.7%Language:Makefile 1.1%Language:C++ 1.0%Language:PLpgSQL 0.5%