• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

babelfish-for-postgresql / babelfish_extensions / 8374875091
74%
BABEL_5_X_DEV: 77%

Build:
Build:
LAST BUILD BRANCH: fix_script_3x
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 21 Mar 2024 01:03PM UTC
Jobs 1
Files 114
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

21 Mar 2024 12:24PM UTC coverage: 72.936% (+0.02%) from 72.921%
8374875091

push

github

web-flow
Fix issues with datatypes for Logical Replication (#2268) (#2428)

This commit fixes following issues:

1. (Var)binary columns are not replicated correctly since input function considers
the value as a raw ASCII string although the value is actually already in binary format.
Fixed this by using IsLogicalWorker() with existing TSQLHexConstTypmod
check in varbinaryin function to correctly take binary input sent by the publisher.
2. SQL_VARIANT columns are replicated correctly as far as the data contents are
concerned, but the meta data is lost in the process which is because sql_variant output
function returns the value in the respective datatype in string format which when fed
back to the sql_variant input function gets treated as a varchar value.
Fixed this by replicating sql_variant values as bytea. We will use MyReplicationSlot
and MyWalSnd in sqlvariantout function on publisher and IsLogicalWorker() in
sqlvariantin function on subscriber to identify if we are in logical replication context.
3. On the subscriber side, IsLogicalWorker() is sufficient for native PG applyworker
but will not work with external providers like pglogical, so will rely on SessionReplicationRole
being replica since most of the providers seem to set this GUC.

Additionally, this adds support to run logical replication tests in github action along with
JDBC framework.

Task: BABEL-3427, BABEL-4049
Signed-off-by: Rishabh Tanwar ritanwar@amazon.com

Signed-off-by: Rishabh Tanwar ritanwar@amazon.com

6 of 6 new or added lines in 2 files covered. (100.0%)

41163 of 56437 relevant lines covered (72.94%)

62882.29 hits per line

Jobs
ID Job ID Ran Files Coverage
1 8374875091.1 21 Mar 2024 01:03PM UTC 114
72.94
GitHub Action Run
Source Files on build 8374875091
  • Tree
  • List 114
  • Changed 92
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #8374875091
  • 3b54ee12 on github
  • Prev Build on BABEL_3_X_DEV (#8370436153)
  • Next Build on BABEL_3_X_DEV (#8388159141)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc