Skip to content

Commit

Permalink
Various cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
David Fetter committed Jan 17, 2010
1 parent 103f362 commit 4e54cdb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -3,7 +3,7 @@ all:
cd src/handler; make

test: all
psql test <t/test.sql
psql test -f t/test.sql

clean:
cd src/handler; make clean
Expand Down
17 changes: 15 additions & 2 deletions t/test.sql
Expand Up @@ -17,8 +17,21 @@ SELECT plan(2);

--DROP FUNCTION plparrot_call_handler() CASCADE;
-- TODO: Make this configurable
CREATE FUNCTION plparrot_call_handler() RETURNS LANGUAGE_HANDLER AS '/Users/leto/git/postgresql/contrib/plparrot/libplparrot.so' LANGUAGE C;
CREATE LANGUAGE plparrot HANDLER plparrot_call_handler;
INSERT INTO pg_catalog.pg_pltemplate(
tmplname,
tmpltrusted,
tmpldbacreate,
tmplhandler,
tmpllibrary
)
VALUES (
'plparrot',
true,
true,
'plparrot_call_handler',
'$libdir/plparrot'
);
CREATE LANGUAGE plparrot;

-- These functions should be written in PIR

Expand Down

2 comments on commit 4e54cdb

@leto
Copy link
Owner

@leto leto commented on 4e54cdb Jan 19, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can no longer run the test after this commit => :(

@leto
Copy link
Owner

@leto leto commented on 4e54cdb Jan 19, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, I needed to do "cd src/handler && sudo make install" first

Please sign in to comment.