Re: proposal, patch: allow multiple plpgsql plugins - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: proposal, patch: allow multiple plpgsql plugins
Date
Msg-id CAFj8pRAnyk0kethbc4k-rq0tjBDDfW+Gu=wEkXg9sz1cQ__Nuw@mail.gmail.com
Whole thread Raw
In response to Re: proposal, patch: allow multiple plpgsql plugins  (Marko Tiikkaja <marko@joh.to>)
Responses Re: proposal, patch: allow multiple plpgsql plugins
List pgsql-hackers
Hi


2014-03-02 19:59 GMT+01:00 Marko Tiikkaja <marko@joh.to>:
Hi Pavel,

The extra semicolons are still in there; around line 525 in this patch.  However, I removed them to compile the patch, but I can't compile my plugin on OS X.  The plugin is simple, it just does:

void
_PG_init(void)
{
    DirectFunctionCall1(plpgsql_register_plugin, &pgt_plpgsql_plugin_struct);
}

I get:

Undefined symbols for architecture x86_64:
  "_plpgsql_register_plugin", referenced from:
      __PG_init in plpgtest.o

I'm guessing this is because PL/PgSQL is a shared library and not in core?  Is there a way around this?

yes, PLpgSQL is not referenced and, if I remember well, clang is too restrictive. 

or you can add a reference on plpgsql to your Makefile

Regards

Pavel


Regards,
Marko Tiikkaja

pgsql-hackers by date:

Previous
From: Dean Rasheed
Date:
Subject: Re: [PATCH] Negative Transition Aggregate Functions (WIP)
Next
From: Andrew Dunstan
Date:
Subject: Re: Securing "make check" (CVE-2014-0067)