Skip to content

Commit

Permalink
Skeleton call handler and associated Makefile. This passes the first …
Browse files Browse the repository at this point in the history
…set of tests.
  • Loading branch information
Joshua Tolley committed Nov 6, 2009
1 parent 5cdff48 commit 4cc0bfb
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Expand Up @@ -4,11 +4,9 @@
*.o
core*
plparrot
Makefile
.*/*.pbc
src/lib/*.pbc
src/lib/Glue.pir
src/lib/Util.pir
src/*.o
src/lib/*.o
src/plparrot.c
18 changes: 18 additions & 0 deletions src/Makefile
@@ -0,0 +1,18 @@
# pllolcode Makefile $Id: Makefile,v 1.9 2009/05/04 15:04:55 eggyknap Exp $

MODULE_big = plparrot
OBJS= plparrot.o

EXTRA_CLEAN =

ifndef DONT_USE_PGXS
PGXS := $(shell pg_config --pgxs)
include $(PGXS)
else
subdir = contrib/plparrot
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
include $(top_srcdir)/contrib/contrib-global.mk
endif


19 changes: 19 additions & 0 deletions src/plparrot.c
@@ -0,0 +1,19 @@
#include "postgres.h"
#include "executor/spi.h"
#include "commands/trigger.h"
#include "fmgr.h"
#include "access/heapam.h"
#include "utils/syscache.h"
#include "catalog/pg_proc.h"
#include "catalog/pg_type.h"


PG_MODULE_MAGIC;

PG_FUNCTION_INFO_V1(plparrot_call_handler);

Datum
plparrot_call_handler(PG_FUNCTION_ARGS)
{
PG_RETURN_VOID();
}

0 comments on commit 4cc0bfb

Please sign in to comment.