Re: proposal, patch: allow multiple plpgsql plugins

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Marko Tiikkaja <marko(at)joh(dot)to>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: proposal, patch: allow multiple plpgsql plugins
Date: 2014-03-02 19:47:14
Message-ID: CAFj8pRAnyk0kethbc4k-rq0tjBDDfW+Gu=wEkXg9sz1cQ__Nuw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi

2014-03-02 19:59 GMT+01:00 Marko Tiikkaja <marko(at)joh(dot)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.

probably
http://stackoverflow.com/questions/17281901/ignoring-an-undefined-symbol-in-a-dynamic-library-from-xcode

or you can add a reference on plpgsql to your Makefile

Regards

Pavel

>
>
> Regards,
> Marko Tiikkaja
>

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2014-03-02 20:12:27 Re: Securing "make check" (CVE-2014-0067)
Previous Message Dean Rasheed 2014-03-02 19:39:03 Re: [PATCH] Negative Transition Aggregate Functions (WIP)