Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b7SYn-0008Or-BA for pgsql-bugs@arkaria.postgresql.org; Mon, 30 May 2016 19:09:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b7SYm-0007hV-Hx for pgsql-bugs@arkaria.postgresql.org; Mon, 30 May 2016 19:09:08 +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.84_2) (envelope-from ) id 1b7Rvk-0003er-D6 for pgsql-bugs@postgresql.org; Mon, 30 May 2016 18:28:48 +0000 Received: from forward2o.cmail.yandex.net ([37.9.109.243]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b7Rvh-0006Ti-7A for pgsql-bugs@postgresql.org; Mon, 30 May 2016 18:28:47 +0000 Received: from mxback10o.mail.yandex.net (mxback10o.mail.yandex.net [37.140.190.24]) by forward2o.cmail.yandex.net (Yandex) with ESMTP id 93C572101B; Mon, 30 May 2016 21:28:39 +0300 (MSK) Received: from web7o.yandex.ru (web7o.yandex.ru [95.108.205.107]) by mxback10o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id WHNp82tXVF-ScfGifvR; Mon, 30 May 2016 21:28:38 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1464632918; bh=jKwj0cQndi+gB5ze1IH3BSGJq2Z1kbaz6iTFztHU6qA=; h=X-Yandex-Sender-Uid:From:Envelope-From:To:Cc:In-Reply-To: References:Subject:MIME-Version:Message-Id:X-Mailer:Date: Content-Transfer-Encoding:Content-Type; b=vNu+RIxUNCil6CTbmtPAnOBukXDboYtV6R29TSmQj7buafYeNhbYEueuPa/iYvL7I zKuY24lefFihuuvfGhUpYfOqNCzMRfoC2gI5OnKkzkMea0XpYHyZXMS++Lhw1GcAQg DURkF66NHik7vi5CAGySzY5T6hWRtZbki8+FAf8Y= Authentication-Results: mxback10o.mail.yandex.net; dkim=pass header.i=@yandex.ru X-Yandex-Suid-Status: 1 0,1 0,1 17274060 X-Yandex-Sender-Uid: 7777926 Received: by web7o.yandex.ru with HTTP; Mon, 30 May 2016 21:28:38 +0300 From: KES Envelope-From: kes-kes@yandex.ua To: Tom Lane Cc: "pgsql-bugs@postgresql.org" In-Reply-To: <13914.1464628209@sss.pgh.pa.us> References: <20160530085041.19432.93208@wrigleys.postgresql.org> <13914.1464628209@sss.pgh.pa.us> Subject: Re: BUG #14164: Postgres allow to insert more data into field than this field allow MIME-Version: 1.0 Message-Id: <654401464632918@web7o.yandex.ru> X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Mon, 30 May 2016 21:28:38 +0300 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=koi8-r X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org To my mind, postgres should not rely on third party code and write broken data to the disk. I suppose this may override other records (even those the user have no access) which are stored close to this broken one if data in the 'text' field of mysql are large enough. And, yes, mysql_fdw, should also do checks for data constistency 30.05.2016, 20:10, "Tom Lane" : > kes-kes@yandex.ru writes: >> šBecause of type of column of source and destination tables are equal >> špostgres does not check actual data so very long data at text field of mysql >> šdatabase is inserted into limited field at postgres DB. > > I would say this is a bug in mysql_fdw, not Postgres proper. In general > it's the responsibility of an FDW to ensure that data it passes back > meets the constraints of the foreign table declaration. > > ššššššššššššššššššššššššregards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs