Re: [HACKERS] proposal: SQL parser integration to PL/pgSQL

2009-05-25 Thread Pavel Stehule
2009/5/25 Pavel Stehule : > 2009/5/24 Tom Lane : >> Pavel Stehule writes: >>> ==Steps== >>> 1. add hook to analyser (transform stage) to substitute unknown >>> columnref by param - when analyser detect unknown columnref, then call >>> callback, that returns possible para node or NULL (when externa

Re: [HACKERS] proposal: SQL parser integration to PL/pgSQL

2009-05-24 Thread Pavel Stehule
2009/5/24 Tom Lane : > Pavel Stehule writes: >> ==Steps== >> 1. add hook to analyser (transform stage) to substitute unknown >> columnref by param - when analyser detect unknown columnref, then call >> callback, that returns possible para node or NULL (when external >> environment doesn't have a v

Re: [HACKERS] proposal: SQL parser integration to PL/pgSQL

2009-05-24 Thread Tom Lane
Pavel Stehule writes: > ==Steps== > 1. add hook to analyser (transform stage) to substitute unknown > columnref by param - when analyser detect unknown columnref, then call > callback, that returns possible para node or NULL (when external > environment doesn't have a variable). Returned param sho

[HACKERS] proposal: SQL parser integration to PL/pgSQL

2009-05-24 Thread Pavel Stehule
==Steps== 1. add hook to analyser (transform stage) to substitute unknown columnref by param - when analyser detect unknown columnref, then call callback, that returns possible para node or NULL (when external environment doesn't have a variable). Returned param should be typed or unknown (for poly