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

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

Build:
Build:
LAST BUILD BRANCH: BABEL-5577
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 18 Jan 2024 06:18AM UTC
Jobs 1
Files 113
Run time 10s
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

18 Jan 2024 05:46AM UTC coverage: 72.329% (+0.008%) from 72.321%
7565885129

push

github

web-flow
Fix database  does not exists error when is_member(), schema_id() function gets called in parallel query mode. (#2242)

This commit solves the issue of parallel worker not being able to obtain correct logical database name. Whenever get_cur_db_name() is called, it returns static char current_db_name[] which is initialised as empty. Now, parallel workers are not aware of the database name. For them, it is empty whenever get_cur_db_name() gets called. Hence, we were getting the following error:

database "" does not exist
So, to communicate the logical database name and more data related to babelfish we have introduced a struct BabelfishFixedParallelState. Currently BabelfishFixedParallelState has only 1 field, i.e., logical_db_name, we can add more fields to it whenever necessary. Then we will write the logical_db_name in DSM during initialisation (in InitializeParallelDSM) using a hook. Another hook is used while trying to fetch the logical database name in ParallelWorkerMain().

In this way we are introduction a mechanism through which we can communicate any babelfish related information to parallel workers.

Engine PR: https://github.com/babelfish-for-postgresql/postgresql_modified_for_babelfish/pull/289 
Issues Resolved
BABEL-4538, BABEL-4481, BABEL-4421

Signed-off-by: Shameem Ahmed <shameemahmed20apr2000@gmail.com>

39781 of 55000 relevant lines covered (72.33%)

57563.68 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7565885129.1 18 Jan 2024 06:18AM UTC 113
72.33
GitHub Action Run
Source Files on build 7565885129
  • Tree
  • List 113
  • Changed 37
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #7565885129
  • e0091d77 on github
  • Prev Build on BABEL_3_X_DEV (#7563094365)
  • Next Build on BABEL_3_X_DEV (#7567281464)
  • 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

© 2025 Coveralls, Inc