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

babelfish-for-postgresql / babelfish_extensions / 7584618481
76%
BABEL_5_X_DEV: 77%

Build:
Build:
LAST BUILD BRANCH: fix_script_injection
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 19 Jan 2024 02:25PM UTC
Jobs 1
Files 113
Run time 12s
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

19 Jan 2024 01:46PM UTC coverage: 71.842% (+0.007%) from 71.835%
7584618481

push

github

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

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

Task: BABEL-4538, BABEL-4481, BABEL-4421
Signed-off-by: Shameem Ahmed <shmeeh@amazon.com>

39809 of 55412 relevant lines covered (71.84%)

58862.7 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7584618481.1 19 Jan 2024 02:25PM UTC 113
71.84
GitHub Action Run
Source Files on build 7584618481
  • Tree
  • List 113
  • Changed 36
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #7584618481
  • 7a13b40f on github
  • Prev Build on BABEL_4_X_DEV (#7580889832)
  • Next Build on BABEL_4_X_DEV (#7624486460)
  • 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