Re: BUG #14164: Postgres allow to insert more data into field than this field allow

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: kes-kes(at)yandex(dot)ru
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #14164: Postgres allow to insert more data into field than this field allow
Date: 2016-05-30 17:10:09
Message-ID: 13914.1464628209@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

kes-kes(at)yandex(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message David G. Johnston 2016-05-30 18:02:19 Re: BUG #14164: Postgres allow to insert more data into field than this field allow
Previous Message mtmayr 2016-05-30 14:02:40 BUG #14165: jdbc driver version 9.4