Skip to content

Commit

Permalink
Use 8.4 in plr.control (#61)
Browse files Browse the repository at this point in the history
* Use 8.4 in plr.control

* Remove unused testing files

Those were to be used with PG < 9.x
  • Loading branch information
mlt authored and davecramer committed Jun 4, 2019
1 parent a958ceb commit c82fe19
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 143 deletions.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ PG_CPPFLAGS += $(r_includespec)
SRCS += plr.c pg_conversion.c pg_backend_support.c pg_userfuncs.c pg_rsupport.c
OBJS := $(SRCS:.c=.o)
SHLIB_LINK += -L$(r_libdir1x) -L$(r_libdir2x) -lR
DATA_built = plr.sql
DATA = plr--8.4.sql plr--8.3.0.18--8.4.sql plr--unpackaged--8.4.sql
REGRESS = plr bad_fun opt_window do out_args

Expand Down
7 changes: 2 additions & 5 deletions expected/plr.out
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
--
-- first, define the language and functions. Turn off echoing so that expected file
-- does not depend on contents of plr.sql.
--
\set ECHO none
-- install extension
create extension plr;
-- make sure we get the notices
set client_min_messages to notice;
-- check version
Expand Down
2 changes: 0 additions & 2 deletions plr--8.4.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
-- keep this in sync with the plr.sql.in legacy install file

CREATE FUNCTION plr_call_handler()
RETURNS LANGUAGE_HANDLER
AS 'MODULE_PATHNAME' LANGUAGE C;
Expand Down
2 changes: 1 addition & 1 deletion plr.control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# plr extension
comment = 'load R interpreter and execute R script from within a database'
default_version = '8.5'
default_version = '8.4'
module_pathname = '$libdir/plr'
relocatable = true
114 changes: 0 additions & 114 deletions plr.sql.in

This file was deleted.

1 change: 0 additions & 1 deletion plr.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@
<Command>$(mingw)$(PlatformArchitecture)\bin\gendef.exe - "$(R_HOME)\bin\$(rbin)\R.dll" &gt; R$(PlatformTarget).def
lib /def:R$(PlatformTarget).def /out:R$(PlatformTarget).lib /MACHINE:$(PlatformTarget)
if "%CI%"=="" ( if not exist data "$(pgroot)\bin\initdb" -D data )
if not exist plr.sql "$(sed)" -e "s#MODULE_PATHNAME#$libdir/plr#" plr.sql.in &gt; plr.sql
</Command>
<Outputs>R$(PlatformTarget).lib</Outputs>
<Message>Generate R import library</Message>
Expand Down
9 changes: 2 additions & 7 deletions sql/plr.sql
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
--
-- first, define the language and functions. Turn off echoing so that expected file
-- does not depend on contents of plr.sql.
--
\set ECHO none
\i plr.sql
\set ECHO all
-- install extension
create extension plr;

-- make sure we get the notices
set client_min_messages to notice;
Expand Down
12 changes: 0 additions & 12 deletions testplr.bat

This file was deleted.

0 comments on commit c82fe19

Please sign in to comment.