Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kIt0A-0003jG-0y for pgsql-general@arkaria.postgresql.org; Thu, 17 Sep 2020 12:27:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kIt08-0008Qb-QZ for pgsql-general@arkaria.postgresql.org; Thu, 17 Sep 2020 12:27:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kIt08-0008Ky-DI for pgsql-general@lists.postgresql.org; Thu, 17 Sep 2020 12:27:00 +0000 Received: from sonic304-21.consmr.mail.ne1.yahoo.com ([66.163.191.147]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kIt03-0002WM-C4 for pgsql-general@lists.postgresql.org; Thu, 17 Sep 2020 12:26:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1600345611; bh=ScPoIuWxZN3CmfQHU9wG0mlMqqk7KzOWpiKh7uy78P8=; h=Date:From:To:Subject:References:From:Subject; b=Pk5cQIcwVdQcHWmy72cA1ebZvITub1De6xc2PFOZJNmmGFQTOufZlFvStg9ZuCbRORwQqtRf207PTcYRqZg9TpkLDlUBa/Pc9382OyLlPWQPRc9ndBnqMcFdtm4EKhHOkGiZHuqACIIjnteQwnBEPcPK7x62z0Umr/9qxPmBYKwCvyRyAtKjmjLPpBWg5sDTPQ4vMmUX0mJyBEa28vlm+FQroC52s3QIS0bEx5MYotDE8wr+7T8jC80BpxWFhmJWr7VNMJZBdphE/zU/fFdQgUHe4aBjKWd0JbMggvv42dRPM4rIkzlb2OvKEqESSCtLpkO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3H q9s57JFzfp8HkndTio5SlwgUpgPIgA_N2eOGcQh9TVVertbq6tHzy4ylE1OCr5qpVLzOD8ZI9n.Y m3pIiyODtZnmLU_dw3tHNSQOsNU7TPjogF8ExOAmHNU9pHdZ2OzfmYtawjIPlkzfQ4sEsCgJJ4CA W705xTTmgEEMu07CgPDse4XHC0UwgP0OLQgdhEifJ0e9qiMMC7mgPkEjgekFjpaZ7B9IwPartSob J_nO_sGbIuh3k4zPPjiyKxFul2JVUAHgD5Le6SuaCDb_UPrkAkzuUr6nsvIGyncRWH5H9HQb6cxA j10cTP1fxIYe8OTk06qp4zHlYJez46FGxrevhQS_UwPmVtl.BRB9Zttb6z07lj.Ngb92ZY5bpI2I v6MLmYwagcqoG2atmc2XcpWV8SKWBeoK_bLUbpW29n3bZA0MQtlRN Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.ne1.yahoo.com with HTTP; Thu, 17 Sep 2020 12:26:51 +0000 Date: Thu, 17 Sep 2020 12:26:47 +0000 (UTC) From: Ravi Krishna To: bentenzha@outlook.com, pgsql-general@lists.postgresql.org Message-ID: <649650653.3389440.1600345607165@mail.yahoo.com> Subject: Re: Obvious data mismatch in View2 which basically SELECT * from View1 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3389439_945617108.1600345607164" References: <649650653.3389440.1600345607165.ref@mail.yahoo.com> X-Mailer: WebService/1.1.16583 aolandroid Mozilla/5.0 (Linux; Android 7.1.1; Z982 Build/NMF26V; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/85.0.4183.101 Mobile Safari/537.36 AolApp/5.14.0.2.2567 Content-Length: 1051 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_3389439_945617108.1600345607164 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit >I haven't replaced the broken View2 yet. >Hope someone can point me to some >further investigation. Did you look at the actual definition of view2. Like all RDBMS PG materializes the Ddl as it existed at the time of creation and converts it into an in line sql. There is a possibility it may be different than what you think. ------=_Part_3389439_945617108.1600345607164 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit


>I haven't replaced the broken View2 yet. >Hope someone can point me to some >further investigation.

Did you look at the actual definition of view2. Like all RDBMS PG materializes the Ddl as it existed at the time of creation and converts it into an in line sql.
There is a possibility it may be different than what you think.

------=_Part_3389439_945617108.1600345607164--