Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b7QiM-0000Pg-Qz for pgsql-bugs@arkaria.postgresql.org; Mon, 30 May 2016 17:10:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b7QiL-00019L-9P for pgsql-bugs@arkaria.postgresql.org; Mon, 30 May 2016 17:10:53 +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 1b7Qhi-0000Re-Ei for pgsql-bugs@postgresql.org; Mon, 30 May 2016 17:10:14 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b7Qhf-0003kc-24 for pgsql-bugs@postgresql.org; Mon, 30 May 2016 17:10:13 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u4UHA9gC013915; Mon, 30 May 2016 13:10:10 -0400 From: Tom Lane To: kes-kes@yandex.ru cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14164: Postgres allow to insert more data into field than this field allow In-reply-to: <20160530085041.19432.93208@wrigleys.postgresql.org> References: <20160530085041.19432.93208@wrigleys.postgresql.org> Comments: In-reply-to kes-kes@yandex.ru message dated "Mon, 30 May 2016 08:50:41 -0000" Date: Mon, 30 May 2016 13:10:09 -0400 Message-ID: <13914.1464628209@sss.pgh.pa.us> X-Pg-Spam-Score: -3.3 (---) 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 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