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 1gHawh-0005Ym-Qk for pgsql-general@arkaria.postgresql.org; Tue, 30 Oct 2018 20:49:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gHawf-0003VD-1P for pgsql-general@arkaria.postgresql.org; Tue, 30 Oct 2018 20:49:01 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gHawd-0003V0-T5 for pgsql-general@lists.postgresql.org; Tue, 30 Oct 2018 20:49:00 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gHawY-0001c5-TH for pgsql-general@lists.postgresql.org; Tue, 30 Oct 2018 20:48:58 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id E0C0522137; Tue, 30 Oct 2018 16:48:53 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 30 Oct 2018 16:48:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=q 4clg/EDd29DO8UTqlkiYgVcUf4wNOFnEFjKieMRM8g=; b=zyGfkEaOl2EdxiLX8 6tHLSLP8aWf9HiLhnpvE9U/PAFCC19Hpp8VOYJDtUvTkYHagqeArKCyTLuFJDZA7 u9arzRz37F3tkPp7Z5N9adFbVivd0DYhBbkIu9Bh4swIQR2R1wEbvKI7EszJVLXH atqEQErCahjnhHCsKwStD1+ffC/5LVkqaUuUx5GA5SbwtHfv6KS4U1KFpOtiQTN+ QQnpjWlq5Q2482KQT/xsTDIhUQ9FEvqf68T3jnMJpSSKv7YKFg8DSPtd35/WSJnE BpmSa0mAU3L8eou6PiU8N2Erl+Rox3JkhxEODg4qUia2NiI4NNKwUyjZDcsqjIAA JbQpw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=q4clg/EDd29DO8UTqlkiYgVcUf4wNOFnEFjKieMRM 8g=; b=w26qvo4Te4HKp8ZLIeutXOyuoRN8wfSF1NsUa4Eo0FopeJM8/GjDPgpEl ELXfW5t3sU1k6DlEVXMCUthK4N5JC0Y5k8F2nK4CkhLXVoIKvAXX2n3o4vFelyvC +IKPzAzvCWNU2+Z1UvFK5aw+Ckj+xMNMTxLTzOUHVKzDllWXTNrtVdxQTgnwl3Xc j5lBajqq2vkQNv4jz4h9xGMwO1iiRdnuB0NSzYGFEJvnmIHQn/Y7A5UU9hGltYXh 0Fs6g2Uh47ZVhhbMXp71RQFKze3FR0MWxyj3RzvIkWFfuKgQ2ydhwrWWoXMh7O5P 09VxrPM73eJErhCSgvyDx5aoMV7Ow== X-ME-Sender: X-ME-Proxy: Received: from ranger.suse (c-73-239-117-238.hsd1.wa.comcast.net [73.239.117.238]) by mail.messagingengine.com (Postfix) with ESMTPA id B8447E4696; Tue, 30 Oct 2018 16:48:52 -0400 (EDT) Subject: Re: rw_redis_fdw: SQL Errors when statement is within a function To: GPT Cc: Christoph Moench-Tegeder , pgsql-general@lists.postgresql.org References: <20181025101948.r2hsnsm2ysn7q3ic@alap3.anarazel.de> <20181025215749.6yy3aparryceuker@squirrel.exwg.net> <20181026212725.33rqwraa73wpzq5f@squirrel.exwg.net> <20181027221321.zil4ktkmpkxbpmzv@squirrel.exwg.net> <2d87c1f0-acc8-7b53-0154-9f29d34f98b0@aklaver.com> <20dd03bc-228e-1584-67e1-6bf45c238675@aklaver.com> From: Adrian Klaver Message-ID: <0cfe9381-ee97-7c29-baad-28fbda0480a1@aklaver.com> Date: Tue, 30 Oct 2018 13:48:51 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 10/30/18 9:15 AM, GPT wrote: > Good afternoon! >> ... >> Postgres did not behave in a 'poor' way, the extension just did not >> interpret the results correctly. > Eh! Eh! Adrian/Christoph one minute please because this is something > new (at least in the very clear way you formulate it now and I can > understand it easily)! > The statement was sent correctly from the module to PG; PG returned > the correct set of data to the module; BUT module failed to > interpret/present the data to me! > > Q1: Is this what you are telling me? > a) Yes > b) No a) Yes > > Q2: Module sent the statement to the PG in a way A which PG does > understand. Did the PG sent back to the module in a way A or B or ... > which module understands? > a) Yes > b) No Not sure of exactly where the breakdown in communication happened, that would need input from the extension developer. From what I gather the extension reparse's the query at some point and failed to take into account that the internal representation of the query may change after a number of repetitions of the query. > > Q3: And which part has "triggered" (so, is responsible for) the wrong > errors to appear on my screen, > a) PG, > b) the module, > c) the java driver, > d) PL/SQL, > e) undefined, > f) NULL or > g) I do not know / I do not respond (joke!)? b) the module. See below for explanation: https://github.com/nahanni/rw_redis_fdw/commit/05f5f3247569e6c428360cc4270606a91e57c6ff > >> >> ... Postgres has no way of knowing what >> happens after its data is passed on. > In this case, I do not disagree at all! >> >> You are looking for Postgres to >> follow its responses all the way through the software stack and tell you >> if the response is being misused. That is not going to happen. > For God sake! No, I am not! As soon as the correct data left the > PG-space in the format that the statement requested, and the KEY was > not NULL, of course, I do not blame PG. > > Q4: If I used psql, I would get the correct data or not? The query would run correctly, you would not be able to move data to Redis though. >> >> You did ... I am >> not seeing what the problem in the process is? > There is not any problem in the process at all. The process is > excellent. Now, I realise that our communication channels/frequencies > maybe are different. We have exchanged so many mails because we are > not able to understand each other. >> >> ... >> It is not a joke ... > I do agree! That's why I said it's a joke! Ah, again different frequencies. >> >> ... >> Except the problem you ran into:) > + Eh, "you" added the new plan! Don't be unfair to the developer! Not trying to be unfair, just pointing out things change and code needs to be tested against the changes. >> >> ... >> There is also: >> >> http://www.firebirdsql.org/ >> https://www.mysql.com/ > There are more! Eh eh! "You" fooled me by writing that it is the most > advanced open source database in the world! I believed in "you" and > "your" words! That is the projects motto, it has nothing to do with me:) > Mysql site writes "The world's most popular open source database". I > am not gonna get fooled again so easily! I see motto's/slogans as marketing and I consider most marketing as a form of lying. >> >> ... >> Which is exactly where you ran into a problem, so I question the easy >> part. Still, go for it. > I do not get it! Different frequencies... I was referring to this: "But, when the application is finished, it will be very easy to maintain the application-DB interface and use any other DB. It is a matter of translation." The problem you had was a matter of translation. Translation is always going to be tricky, especially the more translations you have to do in a project. >> ... >> Pretty quickly from what I saw of their responses to your issues. > The enlightenment has not been quickly but easy easy we shall manage > to become together! >> > Have a nice evening! > > Tia > -- Adrian Klaver adrian.klaver@aklaver.com