Movatterモバイル変換


[0]ホーム

URL:



Facebook
Postgres Pro
Facebook
Downloads
F.29. mchar
Prev UpAppendix F. Additional Supplied Modules and Extensions Shipped inpostgrespro-std-14-contribHome Next

F.29. mchar

Themchar module provides additional data types for compatibility with Microsoft SQL Server (MS SQL).

F.29.1. Overview

This module has been designed to improve1C Enterprise support, most popular Russian CRM and ERP system.

It implements types MCHAR and MVARCHAR, which are bug-to-bug compatible with MS SQL CHAR and VARCHAR respectively. Additionally, these types use the ICU library for comparison and case conversion, so their behavior is identical across different operating systems.

Postgres Pro also includescitext extension which provides types similar to MCHAR. But this extension doesn't emulate MS-SQL behavior concerning end-of-value whitespace.

Differences from Postgres Pro standard CHAR and VARCHAR are:

  • Case insensitive comparison

  • Handling of the whitespace at the end of string

  • These types are always stored as two-byte unicode value regardless of database encoding.

F.29.2. Additional types

  • mchar — analog of the MS SQL char type

  • mvarchar — analog of the MS SQL varchar type

F.29.3. MCHAR and MVARCHAR features

  • Defineslength(str) function

  • Definessubstr(str, pos[, length]) function

  • Defines|| operator, which would be applied to concatenate any (mchar and mvarchar) arguments

  • Defines set of operators:<,<=,=,>=,> for case-insensitive comparison (ICU)

  • Defines set of operators:&<,&<=,&=,&>=,&> to case-sensitive comparison (ICU)

  • Implicit cast betweenmchar andmvarchar types

  • B-tree and Hash-index support

  • TheLIKE [ESCAPE] operator support

  • TheSIMILAR TO [ESCAPE] operator support

  • The~ operator (POSIX regexp) support

  • Index support for theLIKE operator

F.29.4. Authors


      Oleg Bartunov <oleg@sai.msu.ru>
      Teodor Sigaev <teodor@sigaev.ru>
    


Prev Up Next
F.28. ltree Home F.30. online_analyze
pdfepub
Go to Postgres Pro Standard 14
By continuing to browse this website, you agree to the use of cookies. Go toPrivacy Policy.

[8]ページ先頭

©2009-2025 Movatter.jp