Re: BUG #14164: Postgres allow to insert more data into field than this field allow - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #14164: Postgres allow to insert more data into field than this field allow
Date
Msg-id 13914.1464628209@sss.pgh.pa.us
Whole thread Raw
In response to BUG #14164: Postgres allow to insert more data into field than this field allow  (kes-kes@yandex.ru)
Responses Re: BUG #14164: Postgres allow to insert more data into field than this field allow
Re: BUG #14164: Postgres allow to insert more data into field than this field allow
List pgsql-bugs
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

pgsql-bugs by date:

Previous
From: mtmayr@mtmayr.com
Date:
Subject: BUG #14165: jdbc driver version 9.4
Next
From: "David G. Johnston"
Date:
Subject: Re: BUG #14164: Postgres allow to insert more data into field than this field allow