pgloader icon indicating copy to clipboard operation
pgloader copied to clipboard

Text fields : value truncated if > 2048 lenght

Open loicdesguin opened this issue 1 year ago • 4 comments

Hello,

Using Pgloader to transfer data from a MSSQL source to a postgresql destination, I'm facing a truncation of the data transfered from a field nvarchar(2147483647) in MSSQL to a text field (Definition of the field are done by the application using the database)

All the value exceeding a length of 2048 are truncated to this size.

With an update / direct insert of the value, the destination column is well storing the data, so it looks like it's not a field size limitation in the destination.

I tried set a parameter "text size = 10000000000000" in the section [source] of the /etc/freetds/freetds.conf file but no impact.

image

Do you have an idea of the origin of this limitation and where increase it ? Thanks

Loïc

loicdesguin avatar Nov 04 '24 13:11 loicdesguin

I have faced the same issue. Is there any workaround?

JoshukLite avatar Mar 14 '25 14:03 JoshukLite

I solved the problem with the parameter : text size =

in the [source] section of the file freetds.conf

Regards

Loïc

loicdesguin avatar Mar 14 '25 14:03 loicdesguin

Okay, I see, thanks. Is this somewhere in the documentation?

JoshukLite avatar Mar 14 '25 15:03 JoshukLite

if anyone has the solution to this I'm struggling with it also.

patrickklaeren avatar Sep 28 '25 16:09 patrickklaeren