More flexible CONNECT function.
authorMarko Kreen <markokr@gmail.com>
Tue, 15 Sep 2009 12:21:39 +0000 (12:21 +0000)
committerMarko Kreen <markokr@gmail.com>
Tue, 15 Sep 2009 12:21:39 +0000 (12:21 +0000)
commit3ede1979af1f1eb26c8b504f26cc9219d67cc144
treec6f8c7c8ae0a6680eb30ea926f9d2578f3c57a99
parent89e3a1ec4a978ab9008305f98b43bd06b7993f75
More flexible CONNECT function.

It allows CONNECT to take function arguments or do function calls:

    CONNECT func(..);
    CONNECT argname;
    CONNECT $argnum;

NB: giving untrusted users ability to specify full connect string creates
security hole.  Eg it can real cleartext passwords from .pgpass/pg_service.
If such function cannot be avoided, it's access rights need to be restricted.

Patch by Ian Sollars
expected/plproxy_test.out
sql/plproxy_test.sql
src/cluster.c
src/function.c
src/parser.y
src/plproxy.h