Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Committers > plproxy - plpro...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 16606 of 18152
Post > Topic >>

plproxy - plproxy: Sup****t dynamic record as return type.

by mkz@[EMAIL PROTECTED] (User Mkz) Jun 26, 2008 at 08:57 AM

Log Message:
-----------
Sup****t dynamic record as return type.

Now PL/Proxy allows function defined as RETURNS RECORD without
OUT parameters.  Such functions need actual result column
types specified with AS clause:

  SELECT * FROM func() AS (col1 type1, col2 type2);

PL/Proxy needs to detect the actual type on each call and pass
it to remote database.  Current implementation caches last
record type, drops it if type changes.

Original patch by Lei Yonghua, applied with some modifications.

Modified Files:
--------------
    plproxy:
        Makefile (r1.22 -> r1.23)
       
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/plproxy/plproxy/Makefile.diff?r1=1.22&r2=1.23)
    plproxy/src:
        function.c (r1.5 -> r1.6)
       
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/plproxy/plproxy/src/function.c.diff?r1=1.5&r2=1.6)
        plproxy.h (r1.12 -> r1.13)
       
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/plproxy/plproxy/src/plproxy.h.diff?r1=1.12&r2=1.13)
        query.c (r1.5 -> r1.6)
       
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/plproxy/plproxy/src/query.c.diff?r1=1.5&r2=1.6)
        type.c (r1.5 -> r1.6)
       
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/plproxy/plproxy/src/type.c.diff?r1=1.5&r2=1.6)

Added Files:
-----------
    plproxy/expected:
        plproxy_dynamic_record.out (r1.1)
       
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/plproxy/plproxy/expected/plproxy_dynamic_record.out?rev=1.1&content-type=text/x-cvsweb-markup)
    plproxy/sql:
        plproxy_dynamic_record.sql (r1.1)
       
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/plproxy/plproxy/sql/plproxy_dynamic_record.sql?rev=1.1&content-type=text/x-cvsweb-markup)

-- 
Sent via pgsql-committers mailing list (pgsql-committers@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
 




 1 Posts in Topic:
plproxy - plproxy: Support dynamic record as return type.
mkz@[EMAIL PROTECTED] (U  2008-06-26 08:57:46 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Dec 2 1:17:02 CST 2008.