Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Node Pg Copy Streams | 312 | 569 | 92 | 2 months ago | 27 | September 05, 2022 | 3 | JavaScript | ||
COPY FROM / COPY TO for node-postgres. Stream from one database to another, and stuff. | ||||||||||
Amazonriver | 162 | 1 | 4 years ago | 5 | December 03, 2019 | 6 | apache-2.0 | Go | ||
amazonriver 是一个将postgresql的实时数据同步到es或kafka的服务 | ||||||||||
Rpgffi | 72 | 3 | 4 years ago | 8 | November 21, 2017 | 1 | Rust | |||
R(Rust) PG(Postgresql) FFI (Foreign Function Interface) | ||||||||||
Pg2kinesis | 54 | 4 years ago | 1 | mit | Python | |||||
pg2kinesis uses logical decoding in Postgres 9.4 or later to capture a consistent, continuous stream of events from the database and publishes them to an AWS Kinesis stream in a format of your choosing. | ||||||||||
Logicaldecoding | 17 | 7 years ago | mit | Java | ||||||
Parses PostgreSQL Logical Decoding output | ||||||||||
Pylogicaldecoding | 16 | 8 years ago | 10 | Python | ||||||
Python interface to PostgreSQL logical decoding | ||||||||||
Decoding Json | 12 | 7 years ago | 7 | C | ||||||
logical decoding output plugin for postgresql | ||||||||||
Postgres Bytea | 10 | 19,926 | 6 | a year ago | 3 | June 11, 2020 | mit | JavaScript | ||
Postgres bytea parser | ||||||||||
Pg_types | 9 | 1 | 3 years ago | 4 | November 21, 2020 | 2 | apache-2.0 | Erlang | ||
Erlang library for encoding and decoding postgres data types | ||||||||||
Fluent Plugin Pg Logical | 7 | 5 years ago | 1 | February 05, 2018 | 3 | other | Ruby | |||
Fluentd input plugin to track of changes on PostgreSQL server using logical decoding. |
Decoding UTF-T texts in PostgreSQL
This small extension program permits to decode the text tables of Infor baan IV or ERP LN. Those texts are encoded in UTF-T, so they need to be converted into UTF-8 for being used in a database.
While PostgreSQL is not currently supported by ERP LN, we connect it to baan or LN database using foreign data wrapper. This way we may develop applications on PostgreSQL.
In order to compile this extension, verify that you have pg_config
in your path (it
should be part of the postgresql development tools).
Then, execute:
gcc -I$(pg_config --includedir) -fPIC -MMD -MP -MF pgutft.o.d -o pgutft.o pgutft.c
gcc -o libpgUTF-T.so pgutft.o -shared -fPIC
cp pgutft.o $(pg_config --pkglibdir)
once the library is installed in the postgresql extension directory, connect to your database as super user and execute
CREATE FUNCTION utft_to_utf8(bytea) RETURNS text
AS 'libpgUTF-T.so', 'utft_to_utf8'
LANGUAGE C STRICT;
If you want to let other users uses it, grant them the access to the function this way:
GRANT ALL ON FUNCTION utft_to_utf8(bytea) TO
username;
if your text has many lines, join them as bitea, then pass it to utft_to_utf8()
function:
select utft_to_utf8(text_from_baan_table);