Skip to content

Workaround for LC_MONETARY for Amazon Redshift #476

Closed

Description

@roji

See #163.

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...

Activity

  1. self-assigned this
    on Feb 8, 2015
  2. added this to the 2.2.5 milestone on Feb 8, 2015
  3. franciscojunior commented on Feb 8, 2015

    @franciscojunior
    Member

    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 ).

  4. roji commented on Feb 8, 2015

    @roji
    MemberAuthor

    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...

  5. franciscojunior commented on Feb 8, 2015

    @franciscojunior
    Member

    Sure! I'm on it!

  6. franciscojunior commented on Feb 8, 2015

    @franciscojunior
    Member

    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.

  7. Emill commented on Feb 8, 2015

    @Emill
    Contributor

    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]>:

    Hi, @roji https://github.com/roji !

    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).

  8. franciscojunior commented on Feb 8, 2015

    @franciscojunior
    Member

    The idea would be to allow people to use the latest 2.2.x version while waiting for the 3.0.

  9. Emill commented on Feb 8, 2015

    @Emill
    Contributor

    Ok.

    2015-02-08 20:39 GMT+01:00 Francisco Figueiredo Jr. <
    [email protected]>:

    The idea would be to allow people to use the latest 2.2.x version while
    waiting for the 3.0.

    —
    Reply to this email directly or view it on GitHub
    #476 (comment).

  10. franciscojunior commented on Feb 8, 2015

    @franciscojunior
    Member

    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.

  11. roji commented on Feb 8, 2015

    @roji
    MemberAuthor

    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...

  12. roji commented on Feb 8, 2015

    @roji
    MemberAuthor

    @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?

  13. Emill commented on Feb 26, 2015

    @Emill
    Contributor

    FYI:
    Parameter status for Redshift:

    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).

  14. roji commented on Feb 27, 2015

    @roji
    MemberAuthor

    Thanks for this info @Emill... We'll need to find a workaround for typearray in TypeHandlerRegistry, I'll try to take a look...

  15. roji commented on Feb 27, 2015

    @roji
    MemberAuthor

    Another thing to check is the UNICODE server_encoding in Redshift, vs. UTF8 for normal PG...

  16. roji commented on Feb 27, 2015

    @roji
    MemberAuthor

    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?

  17. removed this from the 2.2.5 milestone on Feb 28, 2015
  18. franciscojunior commented on Feb 28, 2015

    @franciscojunior
    Member

    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?

    +1 for the 2.2.5 release.

  19. roji commented on Feb 28, 2015

    @roji
    MemberAuthor

    I'd like to also take a look at #505 before releasing 2.2.5, let's wait a few more days...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions