Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tracking: string and bytea functions #8831

Open
39 of 50 tasks
xiangjinwu opened this issue Mar 28, 2023 · 1 comment
Open
39 of 50 tasks

Tracking: string and bytea functions #8831

xiangjinwu opened this issue Mar 28, 2023 · 1 comment
Labels

Comments

@xiangjinwu
Copy link
Contributor

xiangjinwu commented Mar 28, 2023

https://www.postgresql.org/docs/current/functions-string.html
https://www.postgresql.org/docs/current/functions-binarystring.html

Make sure to test special values: empty string, multi-byte Unicode.

proto ExprType 202..=211, 215, 216, 218, 220, 223..=232, 235..=244, 310..=399

Standard varchar

Standard bytea

  • ||
  • bit_length / octet_length / length
  • position
  • overlay(string PLACING newsubstring FROM start [FOR count])
  • substring / substr
  • trim / btrim / ltrim / rtrim

Standard bit / varbit (type not supported yet)

  • || (varbit)
  • bit_length / octet_length / length
  • position
  • overlay(string PLACING newsubstring FROM start [FOR count])
  • substring

Others varchar

  • md5

Others bytea

Others bit / varbit (type not supported yet)

  • bit_count
  • get_bit / set_bit
  • & / | / # / ~ / << / >>
  • explicit cast between int / bigint

Aggregate

  • bit_and / bit_or / bit_xor

LIKE / SIMILAR / POSIX RegExp

https://www.postgresql.org/docs/current/functions-matching.html

Formatting

https://www.postgresql.org/docs/current/functions-formatting.html

Encoding related

varchar

  • pg_client_encoding
  • normalize / is normalized
  • to_ascii
  • unistr

bytea

Aggregate Function

  • string_agg

Set Returning Function

  • string_to_table
  • regexp_matches
  • regexp_split_to_table
@github-actions github-actions bot added this to the release-0.19 milestone Mar 28, 2023
@xiangjinwu xiangjinwu changed the title Tracking: string functions Tracking: string and bytea functions Mar 29, 2023
@xiangjinwu xiangjinwu removed this from the release-0.19 milestone Apr 4, 2023
@kwannoel kwannoel added the good first issue Good for newcomers label Apr 19, 2023
@BanBuDu0
Copy link
Contributor

I finished encdec some time ago.
I think I will keep contributing all of the bytea functions one by one, if no one is doing the same work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants