Skip to content

Local development postgres is configured differently to production #489

@BernieSumption

Description

@BernieSumption

Bug report

Describe the bug

I mentioned this in #198 but I think it might deserve its own issue. I discovered that ICU is enabled in local development and tests (supabase start) but not in production.

The issue is not that ICU is disabled in production - it's the deviation between the two environments, which damages my confidence that a build that passes tests will be bug-free in production.

Now that I've discovered one difference, I'm wondering whether there are more and if I need to set up a "staging" project to run integration tests before deploying to production.

To Reproduce

This code fails in production and works locally:

    CREATE COLLATION test_icu (
      provider = icu,
      locale = 'und-u-ks-level2',
      deterministic = false
    );

Expected behavior

The two environments should produce the same result for this and all other queries.

System information

  • OS: macOS 12.5.1
  • Browser: n/a
  • Version of supabase-js: n/a
  • Version of Node.js: v16.13.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions