Skip to content

Latest commit

 

History

History
55 lines (46 loc) · 1.04 KB

README.md

File metadata and controls

55 lines (46 loc) · 1.04 KB

Plexor

Plexor is remote function call PL language.

Installation

$ make
$ make install

Quick examples

Remote call of function with same signature

create or replace function get_name(aperson_id integer)
returns text
    language plexor
    as $$
  cluster my_cluster;
  run on 0;
$$;

Remote call of function with same signature (explicit verion)

create or replace function get_name(aperson_id integer)
returns text
    language plexor
    as $$
  cluster my_cluster;
  run get_name(aperson_id) on 0;
$$;

Remote call of function with different signature on specified node

create or replace function get_name(anode integer, aperson_id integer)
returns text
    language plexor
    as $$
  cluster my_cluster;
  run get_person_name(aperson_id) on anode;
$$;

Remote call of function node is acquired by taking get_node(aperson_id)

create or replace function get_name(aperson_id integer)
returns text
    language plexor
    as $$
  cluster my_cluster;
  run get_person_name(aperson_id) on get_node(aperson_id);
$$;