Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Feb 8, 2015
  1. Update copyright dates

  2. Fix spec file

  3. Rename versioned filenames

  4. Remove autocommit setting -- it has been removed in PostgreSQL 9.5,

    and it has been ineffective for a long time. Reported by Peter E.
Commits on Oct 10, 2013
  1. Apparently rsinfo->expectedDesc can still be null, even though rsinfo…

    includes SFRM_Materialize. Therefore add this check and throw an error when
    we don't have an expectedDesc.
Commits on Oct 8, 2013
Commits on Oct 7, 2013
Commits on Oct 6, 2013
  1. Replace calls to AS_CHARACTER with new static function coerce_to_char.

    The new function checks that the R object is coercible and therefore
    ensures we don't throw an error in R code which involves a longjmp
    and subsequent crash in postgres.
    In passing generate body of R function in slightly cleaner fashion,
    and include the return value from R_PARSEVECTOR inside the PROTECT()
    macro in plr_parse_func_body().
Commits on Aug 1, 2013
  1. Update PL/R version number

Commits on Apr 13, 2013
  1. * wrap ANYRANGEOID in recent checkin with #ifdef/#endif in order to u…

    …nbreak compilation
    with older versions of postgres not having rangetypes
    * cast call to system() as void to stop compiler from complaining
Commits on Mar 31, 2013
  1. Allow use of OUT parameters

Commits on Feb 26, 2013
Commits on Feb 19, 2013
  1. The MacPorts installation has the header filed distributed across two…

    … different directories, so there is no single "rincludedir" to query from pkg-config. Instead, do it the proper way and ask pkg-config for the cflags, which should work for all installation variants.
  2. Update copyright for 2013

    Change version to
    Remove hack to take signal back from R interpreter
    Set R_SignalHandlers = 0, the proper way to prevent R from taking signals in the first place
    Adjust RPM spec file
Commits on Dec 28, 2012
Commits on Aug 29, 2011
  1. - Document CREATE EXTENSION support

    - Add Windsorize example to the WINDOW FUNCTION section (thanks to
      Ian Gow)
Commits on Aug 27, 2011
  1. - Fix Makefile so that msvc scripts can process it successfully. Was …

      expansion assignment (:=) in places that did not need it and msvc script
      was not prepared to deal with it.
    - Add support for pgsql 9.1 CREATE EXTENSION is a way that also preserves
      backward compatability for prior pgsql releases. Simple method used
      will require keeping old in sync with newer equiv files
      but that seemed to be the most straightforward
    - Initial some new-to-this-release variables to keep the compiler quiet.
      These warnings don't get generated when building with -O0, so I didn't
      see them until now.
Commits on Aug 22, 2011
  1. - adjust new WINDOW regression test to reduce chances of spurious

      failure on other platforms
Commits on Aug 21, 2011
  1. - Put in safeguard to prevent attempted return of non-data types from

      R. Specific example from Hans-Jürgen Schönig was trying to return
      a closure (function pointer) as pg data type TEXT. This was causing
      an untrappable long jump within the R interpreter when trying
      to coerce it to character, resulting in a Postgres crash.
      At this point only allow return of these non-standard data types
      when the pg return type is BYTEA. That will allow them to be streamed
      to pg for storage which is about the only useful thing you could do
      with them anyway.
  2. - Correct thinko from earlier pass-by-val array optimization. On conv…

      of R vector to pg array, cannot simply memcpy from R to Datum array for int4
      on 64 bit OS because Datums are 8 bytes. I originally missed the boat on the
      conversion optimization in this direction anyway since I was using
      construct_md_array() which still does element-by-element copying. Instead
      build the pg array manually and memcpy the data bytes directly.
Commits on Aug 18, 2011
  1. - Slightly improved WINDOW function documentation. Created a new chapter

      and cross linked to the Functions and Arguments chapter.
  2. - add some minimal documentation for WINDOW function capability

      and new plr_version() function.
Commits on Aug 17, 2011
  1. - Fixed few bugs in new farg code found based on test case from Ian Gow

    - Added two more arguments available to R:
      - fnumrows = number of rows in the window frame of the current row
      - prownum = the 1 based row number withing the partition
Commits on Aug 16, 2011
  1. - make WINDOW function feature safe for PostgreSQL 8.3 which does

      not support WINDOW functions
  2. - Add plr_version() function: outputs a version string. Includes

      regression test changes -- docs to be done later with WINDOW docs.
Commits on Aug 15, 2011
  1. - New feature: allow PL/R functions to be declared and used as WINDOW

      functions. Make window frame datums available as a new set of arguments
      (farg1, farg2, ..., fargN) to the R script. Inspiration by Ian Gow.
      Still lacks regression and documentation and needs more testing.
    - Minor fixes for compiler warnings by updated gcc
Commits on Jun 26, 2011
  1. In recent releases R is taking over SIGINT, which causes bad things

    to happen when query cancel is attempted. Take SIGINT back into
    Postgres control. Report and test case by Terry Schmitt.
Commits on Jan 2, 2011
Something went wrong with that request. Please try again.