| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2009-09-11 | Fix argument value NULL check. | Marko Kreen | |
| Incoming NULL value could cause crash in function containing SELECT with different argument order. Due to thinko, NULL check was done with query arg index, instead of function arg index. Reported by João Matos | |||
| 2009-09-11 | Fix potential buffer overflow when len(typname) > 32 | Marko Kreen | |
| The fixed size buffer tmp[32] was not updated when type casting was added. Reported by Ian Sollars | |||
| 2009-06-29 | Make scanner accept dot as standalone symbol | Marko Kreen | |
| Currently PL/Proxy fails to parse following query: select (ret_numtuple(1)).num, (ret_numtuple(1)).name; The fix is to add "." to the SQLSYM rule in the lexer. This should be OK because an identifier chain will always be longer than a single dot, so flex will prefer it over parsing the single dot. Patch by Peter Eisentraut | |||
| 2009-06-29 | Avoid parsing "SELECT (" as function call | Marko Kreen | |
| Currently PL/Proxy fails to parse following statement: select (0*0); As only SELECT statement is affected, fix it by explicitly checking for that case. In long-term, the function-call detection should be moved to parser, thus getting rid of the hack. Patch by Peter Eisentraut | |||
| 2009-01-02 | allow direct argument references for RUN statement: RUN ON $1; | Marko Kreen | |
| 2008-12-17 | Clear ->tuning bit on connection close. | Marko Kreen | |
| If tuning query fails, the bit can stay set, thus creating always-failing connection slot. Report and analyze by Jonah Harris. | |||
| 2008-11-19 | If query is canceled by user, send cancel request | Marko Kreen | |
| to remote databases too. Patch by Ye Wenbin | |||
| 2008-09-12 | use pg_strcasecmp instead strcasecmp for consistency | Marko Kreen | |
| 2008-09-11 | Use server_encoding as remote connection encoding | Marko Kreen | |
| Previous use of client_encoding was wrong, but seemed to work because of binary i/o which bypassed the encoding checks. Noticed and fixed by Hiroshi Saito | |||
| 2008-09-11 | disable binary i/o completely | Marko Kreen | |
| 2008-09-11 | allow non-ascii chars in idents | Marko Kreen | |
| 2008-09-11 | dont crash on nameless input arguments | Marko Kreen | |
| 2008-09-08 | Postgres 8.2 did not have PGDLLIMPORT on win32 (Hiroshi Saito) | Marko Kreen | |
| Also remove double include. | |||
| 2008-09-05 | Redefine YYMALLOC/YYFREE instead malloc/free. Its safer. | Marko Kreen | |
| 2008-07-28 | use PGDLLIMPORT instead __attribute__ | Marko Kreen | |
| 2008-07-28 | Support compilation on win32. | Marko Kreen | |
| Original patch by Hiroshi Saito, applied with minor modifications. | |||
| 2008-07-28 | Remove unused CONST token. | Marko Kreen | |
| Noticed by Hiroshi Saito | |||
| 2008-07-21 | require exactly 1 row for non-setof functions | Marko Kreen | |
| 2008-06-27 | Few cleanups | Marko Kreen | |
| - parser.y: move xfunc reset together with other vars - plproxy.h: - use bool instead bitfield for booleans - remove duplicate include - reorder fields and make arg_count short to decrease holes | |||
| 2008-06-27 | accept int2 and int8 from hash function | Marko Kreen | |
| 2008-06-27 | add def for new function | Marko Kreen | |
| 2008-06-27 | 8.4 requires explicit include for standard_conforming_strings | Marko Kreen | |
| 2008-06-27 | Scanner/parser portability changes. | Marko Kreen | |
| - Avoid use of alloca in parser, instead redefine malloc/free to palloc/pfree. - Previously exception from palloc() confused scanner as invalid pointer could stay around. Now forcibly reinitialize everything. - Remove debug malloc wrappers from scanner. | |||
| 2008-06-26 | Support dynamic record as return type. | Marko Kreen | |
| 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. | |||
| 2008-06-06 | move variable reset close to definitions | Marko Kreen | |
| 2008-06-06 | make RUN default to ANY | Marko Kreen | |
| 2008-05-14 | Better poll() compat and few cleanups. | Marko Kreen | |
| - Make resulting fd-count correct for poll(). - Don't allow any negative value as timeout, only -1. - Clearer label names. | |||
| 2008-05-14 | make RUN optional, defaulting to RUN ON 0; | Marko Kreen | |
| 2008-05-14 | Reset cluster_sql on parser entry. | Marko Kreen | |
| Fixes crash in case CLUSTER 'name'; follows CLUSTER func(); | |||
| 2008-01-04 | disable date/time type too as they are also affected by integer_datetimes | Marko Kreen | |
| 2008-01-03 | disable binary timestamp coz int vs. float problems | Marko Kreen | |
| 2008-01-02 | disable unconditional compat poll() function | Marko Kreen | |
| 2008-01-02 | move poll compat func to .c file, make fd_set runtime resizeable | Marko Kreen | |
| 2008-01-02 | put 8.2 check into main plproxy.h to avoid random errors on older vers | Marko Kreen | |
| 2007-12-20 | remove debug hacksplproxy_2_0_4_rc2 | Marko Kreen | |
| 2007-12-20 | replace select() with poll() to allow large fd values | Marko Kreen | |
| 2007-12-20 | detect lost fds earlier | Marko Kreen | |
| 2007-12-18 | completely remove func=NULL calls of plproxy_error | Marko Kreen | |
| 2007-12-18 | make plproxy_error survive NULL, also avoid NULL func if possible | Marko Kreen | |
| 2007-12-06 | simplify the PLPROXY_IDLE_CONN_CHECK related code | Marko Kreen | |
| 2007-11-19 | Remote 'statement_timeout' config parameter. | Marko Kreen | |
| It did not work in 2.0.2 and although it works now, it could not work in live env as the SET cannot be combined with main request, thus likely it will be executed on different backend. | |||
| 2007-11-08 | proper quoting for function and result column names | Marko Kreen | |
| 2007-11-08 | composite type has always column names, check is unnecessary | Marko Kreen | |
| 2007-11-05 | explicit type casting for result fields | Marko Kreen | |
| 2007-11-02 | issue remote query with expected result columns filled in | Marko Kreen | |
| This will make plproxy more robust when signatures differ between databases. It is especially helpful for upgrading functions. | |||
| 2007-10-31 | simpler lineno init | Marko Kreen | |
| 2007-10-30 | old flex needs more cleanup | Marko Kreen | |
| 2007-10-29 | put malloc crap directly to scanner.l, parser does not need it | Marko Kreen | |
| 2007-10-29 | malloc debugging for flex | Marko Kreen | |
| 2007-10-29 | experimental support for old flex | Marko Kreen | |
| somehow it breaks the error reporting, need to fix it somehow | |||
