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

Upgrade to pg13 & mruby 3.0 (w/ load_avg script) #15

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Spaceghost
Copy link

Hello,

Can I get a review on these upgrades and help usher a release along?
I'm interested in contributing to this project and offering some additions I'd like to work on.

~spaceghost

Copy link
Owner

@franckverrot franckverrot left a comment

Choose a reason for hiding this comment

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

Thanks for this MR! Added some comments, I'm not entirely sure why they happened.

Also, why are we removing the Dockerfile and test scripts?

Thanks again.

@@ -0,0 +1,36 @@
# DROP EXTENSION holycorn CASCADE;
Copy link
Owner

Choose a reason for hiding this comment

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

Could we move this to the examples directory?

@@ -424,9 +433,6 @@ static TupleTableSlot * rbIterateForeignScan(ForeignScanState *node) {
case MRB_TT_EXCEPTION:
elog(ERROR, "MRB_TT_EXCEPTION not supported (yet?)");
break;
case MRB_TT_FILE:
Copy link
Owner

Choose a reason for hiding this comment

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

What has motivated that change?

@@ -327,12 +336,12 @@ static TupleTableSlot * rbIterateForeignScan(ForeignScanState *node) {
} else {
slot->tts_nvalid = RARRAY_LEN(output);

slot->tts_isempty = false;
// slot->tts_isempty = false;
Copy link
Owner

Choose a reason for hiding this comment

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

Any particular reason for this commenting?

slot->tts_isnull = (bool *)palloc(sizeof(bool) * slot->tts_nvalid);
slot->tts_values = (Datum *)palloc(sizeof(Datum) * slot->tts_nvalid);

if (slot->tts_nvalid <= 0) { //TODO: the size can't be < 0 but being defensive is OK :-)
slot->tts_isempty = true;
// slot->tts_isempty = true;
Copy link
Owner

Choose a reason for hiding this comment

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

Ditto.

@@ -3,7 +3,7 @@ MODULE_big = holycorn

PG_CPPFLAGS = -g -Ivendor/mruby/include -lm
EXTENSION = holycorn
SHLIB_LINK = vendor/mruby/build/i686-pc-linux-gnu/lib/libmruby.a vendor/mruby/build/i686-pc-linux-gnu/mrbgems/mruby-redis/hiredis/libhiredis.a
SHLIB_LINK = vendor/mruby/build/host/lib/libmruby.a
Copy link
Owner

Choose a reason for hiding this comment

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

Why are we removing support for mruby-redis?

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