From: | Karl Lehenbauer <karllehenbauer(at)gmail(dot)com> |
---|---|
To: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Cc: | Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Subject: | Re: Revised patches to add table function support to PL/Tcl (TODO item) |
Date: | 2010-12-29 02:23:58 |
Message-ID: | 26EA832F-C907-410B-846B-57EDC26F142A@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Dec 28, 2010, at 7:29 PM, Tom Lane wrote:
> This patch appears to be changing a whole lot of stuff that in fact
> pg_indent has never changed, so there's something wrong with the way you
> are doing it. It looks like a bad typedef list from here.
You were right, Tom. The problem was that typedefs "pltcl_interp_desc", "pltcl_proc_key", and "pltcl_proc_ptr" weren't in src/tools/pgindent/typedefs.list. After adding them (and building and installing the netbsd-based, patched indent), pgindent only changes a handful of lines.
pltcl-karl-try3-1-of-3-pgindent.patch patches typedefs.list with the three missing typedefs and pltcl.c with the small changes made by pgindent (it shifted some embedded comments left within their lines, mainly).
As before, but "try3" now, pltcl-karl-try3-2-of-3-objects.patch converts pltcl.c to use the "Tcl objects" C API.
And as before, but "try3" now, pltcl-karl-try3-3-of-3-setof.patch adds returning record and SETOF record.
Attachment | Content-Type | Size |
---|---|---|
pltcl-karl-try3-1-of-3-pgindent.patch | application/octet-stream | 3.0 KB |
unknown_filename | text/plain | 3 bytes |
pltcl-karl-try3-2-of-3-objects.patch | application/octet-stream | 52.9 KB |
unknown_filename | text/plain | 2 bytes |
pltcl-karl-try3-3-of-3-setof.patch | application/octet-stream | 35.7 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2010-12-29 04:54:46 | Re: and it's not a bunny rabbit, either |
Previous Message | Andrew Dunstan | 2010-12-29 01:51:38 | Re: pg_dump --split patch |