Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1et8iz-0003ve-KJ for pgsql-general@arkaria.postgresql.org; Tue, 06 Mar 2018 09:17:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1et8ix-0006Uq-Ss for pgsql-general@arkaria.postgresql.org; Tue, 06 Mar 2018 09:17:31 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1et8ix-0006Uh-Dq for pgsql-general@lists.postgresql.org; Tue, 06 Mar 2018 09:17:31 +0000 Received: from mail.postgrespro.ru ([93.174.131.138]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1et8ip-00023s-2Q for pgsql-general@lists.postgresql.org; Tue, 06 Mar 2018 09:17:29 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id F1B0321C1C7D; Tue, 6 Mar 2018 12:17:19 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at postgrespro.ru X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=x tagged_above=-99 required=4 WHITELISTED tests=[] autolearn=unavailable Received: from [192.168.27.41] (gw.postgrespro.ru [93.174.131.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mail.postgrespro.ru (Postfix) with ESMTPSA id A495821C1C60; Tue, 6 Mar 2018 12:17:19 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1520327839; bh=bPYhr5pJDW/7rXLwBXyriyxja2nb+LksG3GYWIUlCs0=; h=Subject:To:Cc:References:From:Date:In-Reply-To; b=mJEKnuf4wHjPL/AntCl6+7CTHXN1mNmhRMh6N7r99U5zin2bX3Hd+uj6Fv5IW6fHK gXO3tltJx+M6BOB71M0POGY93ArCKpbejKrrpwt9rQhIWbfYDortdeuLHWRqXn9MeG UIZzUgGXNHHXHV+nXFxXZnBfkx/aqsZyGCDsSp2o= Subject: Re: psql variables in the DO command To: Pavel Stehule Cc: pgsql-general References: <5bae153c-ade4-ad24-bd46-857993240cfd@postgrespro.ru> <36771268-3624-8f20-9e31-6598c15a1ee8@postgrespro.ru> From: Pavel Luzanov Message-ID: <1e2709d2-260f-0039-14e8-155f217327f7@postgrespro.ru> Date: Tue, 6 Mar 2018 12:17:19 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------4EFCAD5757A46354B106FF6E" Content-Language: ru-RU List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------4EFCAD5757A46354B106FF6E Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 05.03.2018 18:35, Pavel Stehule wrote: > I am slowly working on prototype. The work is simple, when variables > are just scalars. But it is much harder, when we allow composite > variables. When prototype will be done, I invite any cooperation - > there are lot of question - and one very hard - where and how the > variable should be stored (values) - now I have workaround, but it is > pretty ugly code. I'm not a big expert on postgres internals, but ready to participate. ----- Pavel Luzanov Postgres Professional: http://www.postgrespro.com The Russian Postgres Company --------------4EFCAD5757A46354B106FF6E Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit On 05.03.2018 18:35, Pavel Stehule wrote:
I am slowly working on prototype. The work is simple, when variables are just scalars. But it is much harder, when we allow composite variables. When prototype will be done, I invite any cooperation - there are lot of question - and one very hard - where and how the variable should be stored (values) - now I have workaround, but it is pretty ugly code.
I'm not a big expert on postgres internals, but ready to participate.

-----
Pavel Luzanov
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company
--------------4EFCAD5757A46354B106FF6E--