Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing community changes #54

Draft
wants to merge 170 commits into
base: BABEL_3_4_STABLE
Choose a base branch
from

Conversation

Signed-off-by: Jason Teng <[email protected]>
Jason Teng added 2 commits November 28, 2023 17:14
…ator.

Engine commit 8576af873f2dee524237bdb5a5e72be5e7900276 changes some
names related to RelFileNode fields, so change them in the extension as
well.

Task: BABEL-4592

Signed-off-by: Jason Teng <[email protected]>
Signed-off-by: Jason Teng <[email protected]>
The new node implementation in PG16 is incompatible
with how the PIVOT clause was originally written
(specifically it tried to use a raw char* List which
cannot be copied). This was not an issue earlier due to
the fact that the newly added fields were not included
in copyfuncs, but that is no longer an option with the new
node implementation.

Additionally, views now no longer cause a parser issue,
but on the other hand they cause a server crash when they are
attempted to be called, so for now try to detect the bad cases and
raise an error.

Signed-off-by: Jason Teng <[email protected]>
@@ -3839,6 +3839,12 @@ bbf_pivot(PG_FUNCTION_ARGS)
oldcontext = MemoryContextSwitchTo(tsql_outmost_context);
PG_TRY();
{
if (!tsql_outmost_estat->pivot_parsetree_list)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Somehow when a PIVOT is used within a view, this value is NULL, which would cause a segfault in the following line of code without this check. We should probably dig down to find out why this list is being passed as NULL for views.

Jason Teng and others added 2 commits November 29, 2023 02:54
Jason Teng and others added 24 commits December 14, 2023 23:02
This just edits contrib/babelfishpg_tds/test/t/002_tdskerberos.pl
to match the changes in 001_auth.pl from community commit 6633cfb216 in
the engine.

Signed-off-by: Jason Teng <[email protected]>
Signed-off-by: Jason Teng <[email protected]>
Signed-off-by: Jason Teng <[email protected]>
Rather than use superuser or babelfish SA for role administration, use a
new role with only CREATEROLE privileges to administrate Babelfish
roles.

Signed-off-by: Jason Teng <[email protected]>
Signed-off-by: Jason Teng <[email protected]>
Signed-off-by: Jason Teng <[email protected]>
Signed-off-by: Jason Teng <[email protected]>
Signed-off-by: Jason Teng <[email protected]>
Signed-off-by: Jason Teng <[email protected]>
Signed-off-by: Jason Teng <[email protected]>
Signed-off-by: Rishabh Tanwar <[email protected]>
Signed-off-by: Rishabh Tanwar <[email protected]>
Signed-off-by: Rishabh Tanwar <[email protected]>
Signed-off-by: Jason Teng <[email protected]>
Signed-off-by: Jason Teng <[email protected]>
@Sairakan Sairakan force-pushed the pg16-cherry-pick-bff-1 branch from 1309524 to 43c065f Compare December 19, 2023 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants