Skip to content

ICU is not supported in this build #898

@mindplay-dk

Description

@mindplay-dk

Are you building pglite without ICU support?

When running this query in the REPL:

CREATE DATABASE mydb
  ENCODING = 'UTF8'
  LOCALE_PROVIDER = 'icu'
  ICU_LOCALE = 'und'
  TEMPLATE = template0;

I get:

ICU is not supported in this build

Would it be possible to provide it as an extension? I'm afraid maybe it's not.

I realize ICU may add substantially to the binary footprint, and I'm guessing you omitted this for size?

But without it, PGLite works basically for English and not much else - any multi lingual application is going to require a Unicode collation, so that users can sort and search as expected. Even in English-only software, user names often have special characters, so this matters for sorting and searching even then.

I would guess this adds at least 5 MB of footprint, so this would likely triple your footprint. Not that 10 MB is a lot in this day and age. And PGLite has uses outside of the browser, on the server. (Not that sorting and searching is any less important on the client side, but...)

Would you consider shipping two builds?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions