You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Workaround for LC_MONETARY for Amazon Redshift #476
With the v3.0 rewrite taking this long and people needing to use Redshift, we should add a temporary connection string param to avoid sending the LC_MONETARY parameter at startup...
@franciscojunior do you think you'll have time to do this on the 2.2 branch? @mateusaubin's fork did it with at compilation-time with #if, we'd need to do it with a "redshift" connection param instead...
I just did a initial work on this issue #477 . Based on your comment, (#163 (comment)) I think the only change needed was actually the handling of the startup parameter.
Now, we need to find some people who could give it a try and let us know if it is working ok. :)
Please, let me know if you find any error or want me to change anything.
Hmm, since we probably won't send this parameter anyway in 3.0, I don't
know if it makes much to include this in v2.
Den 8 feb 2015 20:25 skrev "Francisco Figueiredo Jr." < [email protected]>:
I just did a initial work on this issue. Based on your comment, (#163
(comment) #163 (comment)) I
think the only change needed was actually the handling of the startup
parameter.
Now, we need to find some people who could give it a try and let us know
if it is working ok. :)
Please, let me know if you find any error or want me to change anything.
—
Reply to this email directly or view it on GitHub #476 (comment).
Yeah, it's more of a stopgap. When we originally discussed these issues I think that at least I thought 3.0 might be a "lighter task" that would be completed sooner (since then we switched to binary, extended protocol, etc....).
@mateusaubin, @franciscojunior has committed a workaround for the lc_monetary issue - if the "amazonredshift" connection parameter is set to true lc_monetary isn't sent. Since we (currently) have no redshift instance to test on, any chance you can grab the latest 2.2 version and test it?
client_encoding: UTF8
datestyle: ISO, MDY
gconf_case_sensitive: on
integer_datetimes: on
is_superuser: on
server_encoding: UNICODE
server_version: 8.0.2
session_authorization: emil
TimeZone: UTC
timezone_abbreviations: Default
padb_version: .
padb_revision:
max_numeric_precision: 38
max_varchar_size: 65535
Parameter status for a normal PostgreSQL db:
application_name:
client_encoding: UTF8
DateStyle: ISO, MDY
integer_datetimes: on
IntervalStyle: postgres
is_superuser: off
server_encoding: UTF8
server_version: 9.3.4
session_authorization: npgsql_tests
standard_conforming_strings: off
TimeZone: CET
Redshift also doesn't support the "typarray" column which is used in TypeHandlerRegistry, since it is based on PostgreSQL 8.0 and that column was introduced in 8.3. Note the padb_version and padb_revision (Redshift is based on ParAccel database).
Activity
franciscojunior commentedon Feb 8, 2015
Agreed!
I remember there is a patch which adds support for it, as it also seems to
require a change to the E ' ' string construction (conformance strings ).
roji commentedon Feb 8, 2015
Great.
@franciscojunior do you think you'll have time to do this on the 2.2 branch? @mateusaubin's fork did it with at compilation-time with #if, we'd need to do it with a "redshift" connection param instead...
franciscojunior commentedon Feb 8, 2015
Sure! I'm on it!
franciscojunior commentedon Feb 8, 2015
Hi, @roji !
I just did a initial work on this issue #477 . Based on your comment, (#163 (comment)) I think the only change needed was actually the handling of the startup parameter.
Now, we need to find some people who could give it a try and let us know if it is working ok. :)
Please, let me know if you find any error or want me to change anything.
Emill commentedon Feb 8, 2015
Hmm, since we probably won't send this parameter anyway in 3.0, I don't
know if it makes much to include this in v2.
Den 8 feb 2015 20:25 skrev "Francisco Figueiredo Jr." <
[email protected]>:
franciscojunior commentedon Feb 8, 2015
The idea would be to allow people to use the latest 2.2.x version while waiting for the 3.0.
Emill commentedon Feb 8, 2015
Ok.
2015-02-08 20:39 GMT+01:00 Francisco Figueiredo Jr. <
[email protected]>:
franciscojunior commentedon Feb 8, 2015
Another motivation is this thread: https://groups.google.com/d/msg/npgsql-help/46Vuk7PIj3g/lTzhsWbxYtUJ
Where Adao shows a thread in the aws community where Amazon doesn't recommend Npgsql anymore because of SSL issues regarding renegotiation. We fixed that by sending the renegotiation parameter to 0, but as we also have this lc_monetary parameter problem, people can't use a newer version with this ssl issue fixed.
roji commentedon Feb 8, 2015
Yeah, it's more of a stopgap. When we originally discussed these issues I think that at least I thought 3.0 might be a "lighter task" that would be completed sooner (since then we switched to binary, extended protocol, etc....).
So it would be a temporary param...
roji commentedon Feb 8, 2015
@mateusaubin, @franciscojunior has committed a workaround for the lc_monetary issue - if the "amazonredshift" connection parameter is set to true lc_monetary isn't sent. Since we (currently) have no redshift instance to test on, any chance you can grab the latest 2.2 version and test it?
Emill commentedon Feb 26, 2015
FYI:
Parameter status for Redshift:
Parameter status for a normal PostgreSQL db:
Redshift also doesn't support the "typarray" column which is used in TypeHandlerRegistry, since it is based on PostgreSQL 8.0 and that column was introduced in 8.3. Note the padb_version and padb_revision (Redshift is based on ParAccel database).
roji commentedon Feb 27, 2015
Thanks for this info @Emill... We'll need to find a workaround for typearray in TypeHandlerRegistry, I'll try to take a look...
roji commentedon Feb 27, 2015
Another thing to check is the UNICODE server_encoding in Redshift, vs. UTF8 for normal PG...
roji commentedon Feb 27, 2015
Guys, any objection to releasing 2.2.5? We have the Redshift issue and another important fix. Anything else someone wants to do before we release?
franciscojunior commentedon Feb 28, 2015
+1 for the 2.2.5 release.
roji commentedon Feb 28, 2015
I'd like to also take a look at #505 before releasing 2.2.5, let's wait a few more days...